Skip to content

Commit

Permalink
Fix RTD build (#386)
Browse files Browse the repository at this point in the history
* Require nbconvert>=7.1.0

Fixes:
```
  File "/home/docs/checkouts/readthedocs.org/user_builds/parpe/envs/385/lib/python3.11/site-packages/nbconvert/exporters/templateexporter.py", line 25, in <module>
    from lxml.html.clean import clean_html
  File "/home/docs/checkouts/readthedocs.org/user_builds/parpe/envs/385/lib/python3.11/site-packages/lxml/html/clean.py", line 18, in <module>
    raise ImportError(
ImportError: lxml.html.clean module is now a separate project lxml_html_clean.
Install lxml[html_clean] or lxml_html_clean directly.
```

* m2r2 -> myst-parser

Fixes:
```
  File "/home/docs/checkouts/readthedocs.org/user_builds/parpe/envs/386/lib/python3.11/site-packages/m2r2.py", line 14, in <module>
    from docutils.core import ErrorString
ImportError: cannot import name 'ErrorString' from 'docutils.core' (/home/docs/checkouts/readthedocs.org/user_builds/parpe/envs/386/lib/python3.11/site-packages/docutils/core.py)
```
  • Loading branch information
dweindl authored Sep 16, 2024
1 parent a65bbc8 commit d2c341f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion doc/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@
# 'recommonmark',
'nbsphinx',
'IPython.sphinxext.ipython_console_highlighting',
'm2r2',
'myst_parser',
]

# Add any paths that contain templates here, relative to this directory.
Expand Down
3 changes: 2 additions & 1 deletion doc/requirements_doc.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,10 @@ sphinx_rtd_theme>=1.2.0
breathe>=4.35.0
exhale>=0.2.3
ipython>=8.13.2
m2r2>=0.2.7
myst-parser
sphinx-autodoc-typehints>=1.10.3
nbsphinx==0.9.1
nbconvert>=7.1.0
-e git+https://github.com/svenevs/exhale.git@a1a8551321e246e3ab81f5456e04a8159804595b#egg=exhale

# to import parpe package:
Expand Down

0 comments on commit d2c341f

Please sign in to comment.