Skip to content

Add Docusaurus documentation site with Mermaid support#1

Merged
chrisns merged 9 commits into
mainfrom
feat/docusaurus-docs-site
Feb 4, 2026
Merged

Add Docusaurus documentation site with Mermaid support#1
chrisns merged 9 commits into
mainfrom
feat/docusaurus-docs-site

Conversation

@chrisns
Copy link
Copy Markdown
Member

@chrisns chrisns commented Feb 4, 2026

Summary

  • Adds a Docusaurus 3.5.2 documentation site in the website/ directory
  • Configures Mermaid diagram rendering for all architecture diagrams
  • Sets up GitHub Actions for automatic deployment to GitHub Pages
  • Adds Dependabot with grouped dependency updates

Features

  • Mermaid support: All diagrams render as interactive SVGs
  • Auto-deploy: Push to main triggers deployment to GitHub Pages
  • No duplication: Docs are copied at build time from ../docs/ (gitignored)
  • Dark mode: Respects system preference

Local Development

cd website
npm install
npm start

Site will be available at http://localhost:3000/ndx-try-arch/

After Merge

Enable GitHub Pages in repo settings:

Test Plan

  • npm start runs successfully
  • All 39 doc pages render without crashes
  • Mermaid diagrams display correctly
  • Sidebar navigation works
  • Dark mode toggle works

- Add Docusaurus 3.5.2 site in website/ directory
- Configure Mermaid diagram rendering with @docusaurus/theme-mermaid
- Add GitHub Actions workflow for GitHub Pages deployment
- Add Dependabot configuration with grouped updates
- Add prepare-docs.js script to transform docs at build time:
  - Adds frontmatter (id, title, sidebar_position)
  - Escapes MDX special characters ({}, <>)
- Source docs remain unchanged - transformation happens at build
- Update .gitignore for website build artifacts

Run locally with:
  cd website && npm install && npm start
@chrisns chrisns force-pushed the feat/docusaurus-docs-site branch from ec7a175 to 9cf7ddc Compare February 4, 2026 12:15
@chrisns chrisns enabled auto-merge February 4, 2026 12:48
@chrisns chrisns added this pull request to the merge queue Feb 4, 2026
github-merge-queue Bot pushed a commit that referenced this pull request Feb 4, 2026
* feat: Add Docusaurus documentation site with Mermaid support

- Add Docusaurus 3.5.2 site in website/ directory
- Configure Mermaid diagram rendering with @docusaurus/theme-mermaid
- Add GitHub Actions workflow for GitHub Pages deployment
- Add Dependabot configuration with grouped updates
- Add prepare-docs.js script to transform docs at build time:
  - Adds frontmatter (id, title, sidebar_position)
  - Escapes MDX special characters ({}, <>)
- Source docs remain unchanged - transformation happens at build
- Update .gitignore for website build artifacts

Run locally with:
  cd website && npm install && npm start

* fix: Update footer to GDS/DSIT and add build info with git SHA link

* ci: Temporarily deploy from feature branch for testing

* feat: Redirect homepage to /docs/

* fix: Use useBaseUrl for redirect to respect baseUrl

* ci: Restore main-only deployment

* ci: Run build on PRs, deploy only on main
@chrisns chrisns removed this pull request from the merge queue due to a manual request Feb 4, 2026
@chrisns chrisns added this pull request to the merge queue Feb 4, 2026
github-merge-queue Bot pushed a commit that referenced this pull request Feb 4, 2026
* feat: Add Docusaurus documentation site with Mermaid support

- Add Docusaurus 3.5.2 site in website/ directory
- Configure Mermaid diagram rendering with @docusaurus/theme-mermaid
- Add GitHub Actions workflow for GitHub Pages deployment
- Add Dependabot configuration with grouped updates
- Add prepare-docs.js script to transform docs at build time:
  - Adds frontmatter (id, title, sidebar_position)
  - Escapes MDX special characters ({}, <>)
- Source docs remain unchanged - transformation happens at build
- Update .gitignore for website build artifacts

Run locally with:
  cd website && npm install && npm start

* fix: Update footer to GDS/DSIT and add build info with git SHA link

* ci: Temporarily deploy from feature branch for testing

* feat: Redirect homepage to /docs/

* fix: Use useBaseUrl for redirect to respect baseUrl

* ci: Restore main-only deployment

* ci: Run build on PRs, deploy only on main
@chrisns chrisns removed this pull request from the merge queue due to a manual request Feb 4, 2026
@chrisns chrisns enabled auto-merge February 4, 2026 13:00
@chrisns chrisns added this pull request to the merge queue Feb 4, 2026
@chrisns chrisns removed this pull request from the merge queue due to a manual request Feb 4, 2026
The merge queue requires workflows to listen for the merge_group event
to run checks on the temporary merge branch.
@chrisns chrisns added this pull request to the merge queue Feb 4, 2026
Merged via the queue into main with commit 86588eb Feb 4, 2026
2 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