Skip to content

docs: migrate mkdocs site to Docusaurus#181

Merged
cdot65 merged 1 commit into
mainfrom
cdot65/docusaurus-migration
Jun 21, 2026
Merged

docs: migrate mkdocs site to Docusaurus#181
cdot65 merged 1 commit into
mainfrom
cdot65/docusaurus-migration

Conversation

@cdot65

@cdot65 cdot65 commented Jun 21, 2026

Copy link
Copy Markdown
Owner

Summary

Migrates the documentation site from mkdocs-material to Docusaurus (classic preset, TypeScript) in docs-site/, deployed to GitHub Pages.

What changed

  • New site in docs-site/ (Docusaurus 3.x). Docs served at the site root (routeBasePath: '/'), deep-purple/amber theme carried over.
  • Content ported — all Getting Started, Guides (incl. DLP + Cookbook), Developer, and About pages. mkdocs admonitions (!!! note) → Docusaurus :::callouts; the ??? example collapsible → <details>. Homepage rewritten as index.mdx.
  • Mermaid via @docusaurus/theme-mermaid.
  • .md parsed as CommonMark (markdown.format: 'detect') so the code-heavy guides and TypeDoc output stay MDX-safe; .mdx (homepage) still gets JSX.
  • API reference still generated by TypeDoc + typedoc-plugin-markdown, now into docs-site/docs/reference/api/ (git-ignored, regenerated in CI).
  • CImkdocs-deploy.yml replaced by docs-deploy.yml (npm cidocs:checkdocs:api → docusaurus build → Pages). docs:serve / docs:build now drive Docusaurus.
  • Deprecation — removed mkdocs.yml and old docs/. Preserved planning specs + excalidraw diagrams under dev-docs/.
  • Excluded docs-site/ from root ESLint/Prettier (it has its own tooling).

Verification

  • npm run docs:build (TypeDoc + Docusaurus) builds clean — onBrokenLinks: throw, zero broken links.
  • Mermaid diagrams render (processed by theme, not left as code blocks).
  • Pre-commit gate green: lint, format:check, typecheck, 1303 tests.

Manual step required

GitHub Pages must be set to deploy from Actions: Settings → Pages → Source = "GitHub Actions" (one-time, cannot be set from the workflow).

🤖 Generated with Claude Code

Replace mkdocs-material with a Docusaurus classic (TypeScript) site in
docs-site/. Port all guides/getting-started/developer/about pages; convert
admonitions to :::callouts and the collapsible to <details>. Homepage
rewritten as index.mdx. TypeDoc still generates the API reference markdown
(now into docs-site/docs/reference/api, git-ignored). Mermaid via
theme-mermaid; .md parsed as CommonMark (format: detect) to keep the
code-heavy guides and TypeDoc output MDX-safe.

CI: replace mkdocs-deploy.yml with docs-deploy.yml (npm ci -> docs:check ->
docs:api -> docusaurus build -> Pages). docs:serve/docs:build now drive
Docusaurus. Preserve planning specs + excalidraw diagrams under dev-docs/;
remove mkdocs.yml and old docs/. Exclude docs-site/ from root eslint.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@cdot65 cdot65 merged commit dec3e39 into main Jun 21, 2026
4 checks passed
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