From 787cd2dfa4e2419305611bd82d6f00c6306bc85e Mon Sep 17 00:00:00 2001 From: "njzjz-bot[bot]" <48687836+njzjz-bot@users.noreply.github.com> Date: Mon, 28 Oct 2024 01:09:13 -0400 Subject: [PATCH] docs: replace sphinx-rtd-theme with sphinx-book-theme Compared to `sphinx-rtd-theme`, `sphinx-book-theme` is a clean and modern Sphinx theme. Generated by the task: https://github.com/njzjz-bot/njzjz-bot/issues/11. --- doc/conf.py | 4 ++-- pyproject.toml | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/doc/conf.py b/doc/conf.py index d987ddb1..e4304073 100644 --- a/doc/conf.py +++ b/doc/conf.py @@ -33,7 +33,7 @@ "deepmodeling_sphinx", "dargs.sphinx", "myst_parser", - "sphinx_rtd_theme", + "sphinx_book_theme", "sphinx.ext.viewcode", "sphinx.ext.intersphinx", "numpydoc", @@ -55,7 +55,7 @@ # The theme to use for HTML and HTML Help pages. See the documentation for # a list of builtin themes. # -html_theme = "sphinx_rtd_theme" +html_theme = "sphinx_book_theme" # Add any paths that contain custom static files (such as style sheets) here, # relative to this directory. They are copied after the builtin static files, diff --git a/pyproject.toml b/pyproject.toml index 331aedd5..9bbec718 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -51,9 +51,9 @@ dpdisp = "dpdispatcher.dpdisp:main" docs = [ 'sphinx', 'myst-parser', - 'sphinx_rtd_theme>=1.0.0rc1', + 'sphinx-book-theme', 'numpydoc', - 'deepmodeling_sphinx>=0.1.1', + 'deepmodeling-sphinx>=0.3.0', 'dargs>=0.3.1', 'sphinx-argparse<0.5.0', ]