Skip to content

Commit 9db127b

Browse files
authored
docs: replace sphinx-rtd-theme with sphinx-book-theme (#270)
Compared to `sphinx-rtd-theme`, `sphinx-book-theme` is a clean and modern Sphinx theme. Generated by the task: njzjz-bot/njzjz-bot#11.
1 parent 067c60f commit 9db127b

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

docs/conf.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@
3232
"deepmodeling_sphinx",
3333
"dargs.sphinx",
3434
"myst_parser",
35-
"sphinx_rtd_theme",
35+
"sphinx_book_theme",
3636
"sphinx.ext.viewcode",
3737
"sphinx.ext.intersphinx",
3838
"numpydoc",
@@ -54,7 +54,7 @@
5454
# The theme to use for HTML and HTML Help pages. See the documentation for
5555
# a list of builtin themes.
5656
#
57-
html_theme = "sphinx_rtd_theme"
57+
html_theme = "sphinx_book_theme"
5858

5959
# Add any paths that contain custom static files (such as style sheets) here,
6060
# relative to this directory. They are copied after the builtin static files,

pyproject.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,10 +45,10 @@ dpgen2 = "dpgen2.entrypoint.main:main"
4545
docs = [
4646
'sphinx',
4747
'recommonmark',
48-
'sphinx_rtd_theme>=1.0.0rc1',
48+
'sphinx-book-theme',
4949
'numpydoc',
5050
'myst_parser',
51-
'deepmodeling_sphinx',
51+
'deepmodeling-sphinx>=0.3.0',
5252
'sphinx-argparse<0.5.0',
5353
"dargs>=0.4.1",
5454
]

0 commit comments

Comments
 (0)