Skip to content

Commit 7975587

Browse files
JoshJosh
authored andcommitted
Move share button below header, add test skill
Share button now sits below the sticky header for better page-level context. Test skill (temporary) validates full build pipeline: auto-discovery, SEO pages, sitemap, llms-full.txt.
1 parent b87f4dd commit 7975587

2 files changed

Lines changed: 49 additions & 3 deletions

File tree

skills/test-skill/SKILL.md

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
---
2+
id: test-skill
3+
name: Test Skill
4+
category: DevOps
5+
description: Temporary test skill to verify the build pipeline auto-discovers new skills correctly.
6+
version: 1.0.0
7+
endpoints: 2
8+
status: beta
9+
dependencies: []
10+
---
11+
12+
# Test Skill
13+
> version: 1.0.0 | requires: [icp-cli >= 0.1.0]
14+
15+
## What This Is
16+
A temporary test skill used to verify the IC Skills build pipeline. This skill should be auto-discovered by generate-skills.js, appear on the website, get its own page with proper SEO meta tags, and show up in the sitemap.
17+
18+
## Prerequisites
19+
- icp-cli >= 0.1.0
20+
21+
## Mistakes That Break Your Build
22+
1. **Not running the build script.** The website auto-generates from SKILL.md frontmatter. If you skip `npm run build`, new skills won't appear.
23+
24+
## Implementation
25+
### Basic Example
26+
```bash
27+
echo "Hello from test skill"
28+
```
29+
30+
## Deploy & Test
31+
```bash
32+
icp network start -d
33+
icp deploy test_canister
34+
```
35+
36+
## Verify It Works
37+
```bash
38+
icp canister call test_canister greet '("world")'
39+
# Expected: ("Hello, world!")
40+
```

src/app.jsx

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -343,7 +343,7 @@ function SkillPage({ skillId, theme, setTheme }) {
343343
}}>v{skill.version}</span>
344344
</div>
345345
</div>
346-
<div style={{ display: "flex", alignItems: "center", gap: "8px" }}>
346+
<div style={{ display: "flex", alignItems: "center", gap: "6px" }}>
347347
<a href={githubUrl} target="_blank" rel="noopener noreferrer"
348348
title="View on GitHub"
349349
style={{
@@ -379,6 +379,14 @@ function SkillPage({ skillId, theme, setTheme }) {
379379

380380
{/* Skill content */}
381381
<main style={{ position: "relative", zIndex: 10, maxWidth: "860px", margin: "0 auto", padding: "40px 32px 80px" }}>
382+
{/* Share bar */}
383+
<div style={{
384+
display: "flex", alignItems: "center", justifyContent: "flex-end",
385+
marginBottom: "24px", gap: "8px",
386+
}}>
387+
<CopyButton text={shareUrl} label="share this page" />
388+
</div>
389+
382390
{/* Metadata bar */}
383391
<div style={{
384392
display: "flex", alignItems: "center", gap: "12px", marginBottom: "32px",
@@ -437,8 +445,6 @@ function SkillPage({ skillId, theme, setTheme }) {
437445
curl -sL {rawUrl}
438446
</code>
439447
<CopyButton text={`curl -sL ${rawUrl}`} />
440-
<span style={{ fontSize: "11px", color: "var(--text-phantom)" }}>{"\u00B7"}</span>
441-
<CopyButton text={shareUrl} label="link" />
442448
</div>
443449

444450
{/* Rendered markdown */}

0 commit comments

Comments
 (0)