Skip to content

Docs site agent-readability (a14y) parity with the landing page#361

Merged
clkao merged 1 commit into
mainfrom
spacedock-ensign/docs-a14y-parity
Jun 13, 2026
Merged

Docs site agent-readability (a14y) parity with the landing page#361
clkao merged 1 commit into
mainfrom
spacedock-ensign/docs-a14y-parity

Conversation

@clkao

@clkao clkao commented Jun 13, 2026

Copy link
Copy Markdown
Collaborator

Bring the docs pages to agent-readability parity with the landing — structured-metadata head, mirror frontmatter, a glossary, and language-tagged code on every page.

What changed

  • Inject Open Graph + JSON-LD (TechArticle + BreadcrumbList + dateModified) + a markdown alternate-link on every page, 404-guarded
  • Add the git-revision-date-localized plugin feeding dateModified/last_updated
  • Enrich each .md mirror with YAML frontmatter + a ## Sitemap section via a post-build hook
  • Add a site-wide-linked glossary page
  • Declare code-fence languages (disable Pygments so language-* classes emit)

Evidence

  • a14y 0.2.0 in-scope checks (A–E): all pass on 4 sampled pages; per-page score 58→86
  • mkdocs build --strict: clean, no warnings

ev9

Bring the MkDocs docs pages to a14y scorecard 0.2.0 parity with the
landing page (per-page checks the Astro landing passes but the docs
template never got). Five root-cause fixes:

A. overrides/main.html: inject OG tags, JSON-LD (TechArticle +
   BreadcrumbList + dateModified), and a markdown alternate-link into
   every content page's extrahead, guarded by {% if page %} so the
   404 page's page=None does not abort the strict build.
B. mkdocs.yml + docs/requirements.txt: enable the
   git-revision-date-localized plugin to feed JSON-LD dateModified and
   the mirror last_updated.
C. hooks/enrich_md_mirrors.py: post-build hook that prepends YAML
   frontmatter (title/description/doc_version/last_updated) and appends
   a ## Sitemap section to the per-page .md mirrors llmstxt emits.
D. docs/site/reference/glossary.md + a site-wide footer link + nav entry.
E. pymdownx.highlight use_pygments: false so code renders with
   language-* classes, plus a source sweep adding `text` to the five
   bare opening fences across four published pages.

Proven with the external a14y oracle (CLI 0.4.21, scorecard 0.2.0):
mkdocs build --strict green, served site/, per-page score 58 -> target 90s.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
clkao added a commit that referenced this pull request Jun 13, 2026
@clkao clkao merged commit 424ee31 into main Jun 13, 2026
3 checks passed
clkao added a commit that referenced this pull request Jun 13, 2026
@clkao clkao deleted the spacedock-ensign/docs-a14y-parity branch June 13, 2026 21:18
clkao added a commit that referenced this pull request Jun 13, 2026
…ackaged, docs-a14y shipped (#361), 9 Commander PRs landed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant