BMAD-METHOD/docs/how-to
Alex Verkhovsky 6064903878 refactor(docs): migrate from Docusaurus to Astro+Starlight
Replace Docusaurus with Astro and the Starlight documentation theme
for improved performance, better customization, and modern tooling.

Build pipeline changes:
- New build-docs.js orchestrates link checking, artifact generation,
  and Astro build in sequence
- Add check-doc-links.js for validating internal links and anchors
- Generate llms.txt and llms-full.txt for LLM-friendly documentation
- Create downloadable source bundles (bmad-sources.zip, bmad-prompts.zip)
- Suppress MODULE_TYPELESS_PACKAGE_JSON warning in Astro build
- Output directly to build/site for cleaner deployment

Website architecture:
- Add rehype-markdown-links.js plugin to transform .md links to routes
- Add site-url.js helper for GitHub Pages URL resolution with strict
  validation (throws on invalid GITHUB_REPOSITORY format)
- Custom Astro components: Banner, Header, MobileMenuFooter
- Symlink docs/ into website/src/content/docs for Starlight

Documentation cleanup:
- Remove Docusaurus _category_.json files (Starlight uses frontmatter)
- Convert all docs to use YAML frontmatter with title field
- Move downloads.md from website/src/pages to docs/
- Consolidate style guide and workflow diagram docs
- Add 404.md and tutorials/index.md
2026-01-06 22:11:10 -08:00
..
brownfield refactor(docs): migrate from Docusaurus to Astro+Starlight 2026-01-06 22:11:10 -08:00
customization refactor(docs): migrate from Docusaurus to Astro+Starlight 2026-01-06 22:11:10 -08:00
installation refactor(docs): migrate from Docusaurus to Astro+Starlight 2026-01-06 22:11:10 -08:00
troubleshooting refactor(docs): migrate from Docusaurus to Astro+Starlight 2026-01-06 22:11:10 -08:00
workflows refactor(docs): migrate from Docusaurus to Astro+Starlight 2026-01-06 22:11:10 -08:00
index.md refactor(docs): migrate from Docusaurus to Astro+Starlight 2026-01-06 22:11:10 -08:00