Skip to content

docs: migrate from MkDocs/GitHub Pages to GitBook#391

Merged
angpt merged 5 commits intomainfrom
feat/gitbook-docs
Apr 27, 2026
Merged

docs: migrate from MkDocs/GitHub Pages to GitBook#391
angpt merged 5 commits intomainfrom
feat/gitbook-docs

Conversation

@angpt
Copy link
Copy Markdown
Contributor

@angpt angpt commented Apr 15, 2026

Replaces the MkDocs + GitHub Pages docs pipeline with a GitBook-based one.

  • Source of truth stays in docs/ on main — no change to authoring workflow
  • scripts/convert_to_gitbook.py : copies docs/ → site/, converts MkDocs-specific syntax (admonitions, tabs, footnotes, file snippets) to GitBook-compatible markdown, and writes SUMMARY.md
  • .github/workflows/docs.yml now runs the script on push to main and rsyncs the output to an orphan gitbook-docs branch, which GitBook reads from
  • mkdocs.yml removed, along with the docs dep group from pyproject.toml (mkdocs, mkdocs-material, mkdocs-include-markdown-plugin)

To test locally: python scripts/convert_to_gitbook.py — output lands in site/

angpt and others added 3 commits April 15, 2026 11:06
- Add scripts/convert_to_gitbook.py to copy docs/ → site/, inline
  --8<-- snippets, convert admonitions/tabs/footnotes to GitBook syntax,
  and write SUMMARY.md
- Add .gitbook.yaml and .gitbook-branch-readme.md
- Replace docs.yml workflow: runs conversion script and rsyncs site/
  to gitbook-docs branch on push to main
- Remove mkdocs.yml and mkdocs dep group from pyproject.toml
- Update Justfile docs target to run conversion script
- Update <picture> elements in README.md and docs/index.md to GitBook-
  recommended dark/light mode syntax

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@codecov-commenter
Copy link
Copy Markdown

codecov-commenter commented Apr 15, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
see 11 files with indirect coverage changes

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

angpt added 2 commits April 20, 2026 12:30
- Replace regex-heavy conversion script with simple copy + snippet inliner
- Add check_docs.py for internal link/anchor validation
- Wire docs-check and docs-build into just docs
- Update CI workflow to call just docs for local/CI parity
Copy link
Copy Markdown
Member

@besaleli besaleli left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm such a fan!!

@angpt angpt merged commit 1f6e2fa into main Apr 27, 2026
4 checks passed
@angpt angpt deleted the feat/gitbook-docs branch April 27, 2026 20:33
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.

3 participants