docs: migrate documentation from MkDocs to Sphinx + MyST - #83
Draft
prateek-dagar wants to merge 1 commit into
Draft
prateek-dagar wants to merge 1 commit into
prateek-dagar wants to merge 1 commit into
Conversation
prateek-dagar
force-pushed
the
migrate-docs-to-sphinx
branch
from
September 29, 2026 20:53
e4b9497 to
f156e07
Compare
prateek-dagar
force-pushed
the
migrate-docs-to-sphinx
branch
from
September 29, 2026 21:08
f156e07 to
c3fab63
Compare
Owner
|
Hi @prateek-dagar, Thanks for putting this together. You actually beat me by a few hours in responding to your comment on #80 😅 This is really useful to understand what moving to Sphinx would look like. Which leads me to the decision that I don't think I want to move to Sphinx, and instead pin versions / move to the maintained alternatives - at least for the short term. I'll expand my rationale on #80 |
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Why this pull request is being made
Addresses #80.
In light of the ongoing maintenance uncertainties in the MkDocs/MkDocs-Material ecosystem, this PR permanently migrates the documentation from MkDocs to Sphinx + MyST with the
sphinx-immaterialtheme.Key Changes
mkdocswithSphinxandmyst-parser, preserving all existing.mdfiles without rewriting to ReST.sphinx-immaterialwith color palettes, navigation features, andversion_json: 'versions.json'to maintain seamless compatibility with historical versions ongh-pages.mkdocstringsgenerator script to native Sphinxautodoc/autosummarystubs underdocs/reference/.[testenv:docs]totox.ini(sphinx-build -b html docs site/_build/html).docsverification job to.github/workflows/test-suite.yml.pyproject.tomldev dependency group with required Sphinx packages and removed obsolete MkDocs packages.mkdocs.ymlandscripts/gen_ref_nav.py.Migration Tooling & Note
As part of tackling this transition, I also built an open-source migration tool, sphinx-mkdocs-migrate, specifically to automate deterministic AST conversions from MkDocs to Sphinx + MyST and scaffold
sphinx-immaterial. I used it to perform this migration, and if you get some time, I would really love to get your thoughts and feedback on it!How this was tested
uvx tox -e docs:site/_build/htmlwith 0 directive/document warnings.sitemap.xml) and search index generated.uvx tox -e lint(black,validate-pyproject,pylint10/10,mypy) — all passing.