Skip to content

Commit dc81ae1

Browse files
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

File tree

layouts/_default/baseof.html

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515
{{ partial "amplitude.html" . }}
1616
<body class="{{ .Scratch.Get "class" }}">
1717
{{ partial "googleTagManagerBody.html" . }}
18+
<blockquote class="visually-hidden">For the complete documentation index, see <a href="/llms.txt">llms.txt</a>.</blockquote>
1819
{{ partial "header/header.html" . }}
1920
<div class="wrap container-{{ if .Site.Params.options.fullWidth }}fluid{{ else }}xxl{{ end }}" role="document">
2021
<div class="content">

layouts/index.txt

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,12 @@
2020
- [{{ .Title }}]({{ .Permalink | replaceRE "/$" ".md" }}){{ with .Description }}: {{ . }}{{ end }}
2121
{{ end }}
2222

23+
## Compliance
24+
25+
{{ range where .Site.RegularPages "Section" "compliance" -}}
26+
- [{{ .Title }}]({{ .Permalink | replaceRE "/$" ".md" }}){{ with .Description }}: {{ . }}{{ end }}
27+
{{ end }}
28+
2329
## API Reference
2430

2531
- [Chainguard API (Combined)](https://edu.chainguard.dev/api.json): OpenAPI spec for all Chainguard API versions (JSON)

0 commit comments

Comments
 (0)