Commit dc81ae1
authored
AFDocs report - low-hanging fixes (#3238)
## Type of change
**Documentation Infrastructure Update**
- Add visually-hidden llms.txt directive blockquote to every page via
baseof.html
- Add compliance and vulnerabilities sections to llms.txt index template
## What should this PR do?
Improve agent-friendliness of the documentation site by fixing two
failing checks from an AFDocs audit.
## Why are we making this change?
An AFDocs scorecard flagged two actionable failures: no page included a
directive pointing agents to llms.txt, and the llms.txt index was
missing the compliance and vulnerabilities content sections. These gaps
reduce discoverability and coverage for AI agents consuming the
documentation.
## What are the acceptance criteria?
- Every page's HTML source contains a blockquote linking to /llms.txt
- The rendered llms.txt includes ## Compliance and ## Vulnerabilities
sections with links to their respective pages
- The blockquote is not visibly rendered on any page (Bootstrap
visually-hidden class)
## How should this PR be tested?
1. Check the preview link and navigate to any doc page — view source and
confirm the visually-hidden blockquote is present near the top of <body>
2. Visit /llms.txt on the preview and confirm the Compliance and
Vulnerabilities sections appear with populated links
---------
Signed-off-by: Mark Drake <mark@chainguard.dev>1 parent 46eb3a0 commit dc81ae1
2 files changed
Lines changed: 7 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
15 | 15 | | |
16 | 16 | | |
17 | 17 | | |
| 18 | + | |
18 | 19 | | |
19 | 20 | | |
20 | 21 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
20 | 20 | | |
21 | 21 | | |
22 | 22 | | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
23 | 29 | | |
24 | 30 | | |
25 | 31 | | |
| |||
0 commit comments