Skip to content

Commit c90a1d3

Browse files
committed
Docs gen works with Python 3.10+
Signed-off-by: M Q <[email protected]>
1 parent 4460a8f commit c90a1d3

File tree

2 files changed

+28
-27
lines changed

2 files changed

+28
-27
lines changed

docs/requirements.txt

Lines changed: 22 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,24 @@
1-
Sphinx==4.1.2
2-
sphinx-autobuild==2021.3.14
3-
myst-nb==0.17.2 # this version is fine in python 3.9 and avoids pulling in multiple nbformat packages
4-
myst-parser==0.18.0
1+
Sphinx>=4.5.0
2+
sphinx-autobuild
3+
myst-nb>=0.17.2 # this version is fine in python 3.9 and avoids pulling in multiple nbformat packages
4+
myst-parser>=0.18.0
55
lxml_html_clean # needed by myst-nb
6-
linkify-it-py==1.0.1 # https://myst-parser.readthedocs.io/en/latest/syntax/optional.html?highlight=linkify#linkify
7-
sphinx-togglebutton==0.2.3
8-
sphinx-copybutton==0.4.0
9-
sphinxcontrib-bibtex<2.0.0 # https://github.com/executablebooks/jupyter-book/issues/1137
10-
sphinxcontrib-spelling==7.2.1 # https://sphinxcontrib-spelling.readthedocs.io/en/latest/index.html
11-
sphinx-thebe==0.0.10
12-
sphinx-panels==0.6.0
13-
ablog==0.10.19
14-
docutils==0.16 # 0.17 causes error. https://github.com/executablebooks/MyST-Parser/issues/343
15-
pydata_sphinx_theme==0.6.3
16-
sphinxemoji==0.1.8
6+
linkify-it-py>=1.0.1 # https://myst-parser.readthedocs.io/en/latest/syntax/optional.html?highlight=linkify#linkify
7+
sphinx-togglebutton
8+
sphinx-copybutton
9+
sphinxcontrib-bibtex>=2.4.1 # Version 2.4.1+ supports Python 3.10
10+
sphinxcontrib-spelling # https://sphinxcontrib-spelling.readthedocs.io/en/latest/index.html
11+
sphinx-thebe
12+
sphinx-panels
13+
ablog
14+
pydata_sphinx_theme>=0.13.0
15+
sphinxemoji
1716
torch>=1.12.0
18-
sphinx-autodoc-typehints==1.12.0
19-
sphinxcontrib-applehelp==1.0.2
20-
sphinxcontrib-devhelp==1.0.2
21-
sphinxcontrib-htmlhelp==2.0.0
22-
sphinxcontrib-jsmath==1.0.1
23-
sphinxcontrib-qthelp==1.0.3
24-
sphinxcontrib-serializinghtml==1.1.5
25-
sphinxcontrib-mermaid==0.7.1
17+
sphinx-autodoc-typehints
18+
sphinxcontrib-applehelp
19+
sphinxcontrib-devhelp
20+
sphinxcontrib-htmlhelp
21+
sphinxcontrib-jsmath
22+
sphinxcontrib-qthelp
23+
sphinxcontrib-serializinghtml
24+
sphinxcontrib-mermaid

docs/source/conf.py

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -91,6 +91,7 @@
9191
"sphinx_autodoc_typehints",
9292
"sphinxcontrib.mermaid",
9393
]
94+
bibtex_bibfiles = ['refs.bib']
9495

9596
autoclass_content = "both"
9697
add_module_names = True
@@ -222,16 +223,17 @@
222223
# -- Options for myst-nb -------------------------------------------------
223224
#
224225
# (reference: https://myst-nb.readthedocs.io/en/latest/)
225-
# Prevent the following error
226-
# MyST NB Configuration Error:
227-
# `nb_render_priority` not set for builder: doctest
228-
nb_render_priority = {"doctest": ()}
229226
# Prevent creating jupyter_execute folder in dist
230227
# https://myst-nb.readthedocs.io/en/latest/use/execute.html#executing-in-temporary-folders # noqa
231228
execution_in_temp = True
232229
jupyter_execute_notebooks = "off"
233230

234231

232+
# -- Options for sphinxcontrib.bibtex -------------------------------------------------
233+
#
234+
# (reference: https://sphinxcontrib-bibtex.readthedocs.io/)
235+
bibtex_bibfiles = [] # Add bibliography files here if needed
236+
235237
# -- Options for sphinxcontrib.spelling -------------------------------------------------
236238
#
237239
# (reference: https://sphinxcontrib-spelling.readthedocs.io/en/latest/customize.html)

0 commit comments

Comments
 (0)