Repository navigation
docs: migrate documentation from MkDocs to Sphinx + MyST - #83
prateek-dagar wants to merge 1 commit into
Conversation
e4b9497 to
f156e07
Compare
f156e07 to
c3fab63
Compare
|
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 |
|
Hi @nhairs, Thanks for reviewing! Honestly, it was a lot of fun to work on this migration experiment—it actually led to me building and publishing my very first Python package ( I totally understand your decision. While doing the migration, I noticed that while Sphinx is powerful, trying to get it to exactly mimic MkDocs (like generating the clean parameter description tables from If you ever decide you want to fully migrate in the future, please let me know—I would be more than happy to work on it again! In the meantime, if you'd like, I can gladly help work on the proposed short-term solution of pinning the versions or migrating to the actively maintained MkDocs alternatives on Issue #80. I'll go ahead and close this PR to keep your queue clean. Thanks again! |
|
Thanks for your understanding and positive attitude 😃 |
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.