Commit eb31bd9
authored
docs: improve agentdocsspec compliance (#451)
* fix(docs): add cache headers for markdown endpoints and llms.txt
The agentdocsspec checker flagged missing cache headers on .md and .txt
files. Add Cache-Control: public, max-age=300 to match the HTML pages.
* fix(docs): move llms.txt directive earlier in page for agent discovery
The agentdocsspec checker flagged the llms.txt directive as "buried deep
(past 50%)" because the rehype plugin injected it into the Starlight
content area, after the header, nav, and sidebar.
Move the directive to the Banner component (top of <main>) and add a
<link rel="help"> in <head>. Remove the now-unused rehype plugin.
* feat(docs): include version in llms.txt title for versioned builds
When built with a versioned base path (e.g. /0.2/), the llms.txt title
now reads "ICP CLI Documentation (v0.2)" instead of the generic title.
* feat(docs): add IC skills registry link to llms.txt
Point agents to the skills discovery endpoint so they can find
and install specialized IC development skills (icp-cli, canister
security, ICRC ledger, etc.) alongside the documentation.1 parent 459f6d9 commit eb31bd9
File tree
5 files changed
+31
-42
lines changed- docs-site
- plugins
- src/components
5 files changed
+31
-42
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
20 | 20 | | |
21 | 21 | | |
22 | 22 | | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
23 | 30 | | |
24 | 31 | | |
25 | 32 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
5 | | - | |
6 | 5 | | |
7 | 6 | | |
8 | 7 | | |
| |||
17 | 16 | | |
18 | 17 | | |
19 | 18 | | |
20 | | - | |
21 | | - | |
22 | 19 | | |
23 | 20 | | |
24 | 21 | | |
| |||
33 | 30 | | |
34 | 31 | | |
35 | 32 | | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
36 | 44 | | |
37 | 45 | | |
38 | 46 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
66 | 66 | | |
67 | 67 | | |
68 | 68 | | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
69 | 75 | | |
70 | | - | |
| 76 | + | |
71 | 77 | | |
72 | 78 | | |
73 | 79 | | |
| 80 | + | |
| 81 | + | |
74 | 82 | | |
75 | 83 | | |
76 | 84 | | |
| |||
This file was deleted.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
| 6 | + | |
6 | 7 | | |
7 | 8 | | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
8 | 12 | | |
9 | 13 | | |
10 | 14 | | |
| |||
0 commit comments