Skip to content

Commit

Permalink
Pin Sphinx dependencies for m2r2 compatibility
Browse files Browse the repository at this point in the history
m2r2 has specific version requirements:
- mistune==0.8.4 (for BlockGrammar class, removed in 2.0+)
- docutils==0.16 (for reprunicode attribute)
- sphinx<7.0 (for docutils compatibility)

Earlier attempts to fix this incorrectly focused on sphinx_rtd_theme
versions or tried newer versions of docutils/mistune, but m2r2
specifically requires these older versions due to API dependencies.

[claude-3.5-sonnet in Cursor]
  • Loading branch information
endolith committed Nov 18, 2024
1 parent 6766cc7 commit d608e28
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion docs/requirements.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
sphinx<7.0
docutils==0.16
mistune==0.8.4
m2r2
-e .
numpydoc
m2r2
sphinxcontrib.mermaid
sphinx_rtd_theme
sphinxcontrib-apidoc

0 comments on commit d608e28

Please sign in to comment.