Skip to content

Serve raw Markdown docs pages

Created by: ihsraham

Summary

  • Generate static per-page .md files for every exported docs page during the build.
  • Point the page action button at the current page Markdown URL while keeping /llms-full.txt unchanged.
  • Add generator/output checks for unsafe manifest paths, leaked manifests, HTML/404 bodies, missing Markdown pages, and served-route regressions.
  • Refresh the branch with current develop (11b5a5f) before review.

Validation

  • Node v22.22.2, npm 10.9.7
  • git diff --check
  • npm run test:llm-md
  • npx tsc --noEmit --pretty false
  • npm run quality
  • node scripts/check-llm-md-output.mjs --base-url http://127.0.0.1:8082 after serving dist locally
  • Route smoke: /sdk/all-modules.md returned 200 text/markdown; /sdk/all-modules/ returned 200 text/html; /does-not-exist.md returned 404

Merge request reports