From 0c77d7daa157343e681e87aa1aca4720d620b154 Mon Sep 17 00:00:00 2001 From: Jinzhe Zeng Date: Sun, 12 Jan 2025 11:14:01 +0800 Subject: [PATCH 1/3] switch to sphinx_book_theme --- .readthedocs.yaml | 4 ++-- docs/requirements.txt | 4 ++-- docs/source/conf.py | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/.readthedocs.yaml b/.readthedocs.yaml index 0631375c6..8c4f9da2b 100644 --- a/.readthedocs.yaml +++ b/.readthedocs.yaml @@ -1,9 +1,9 @@ version: 2 build: - os: "ubuntu-20.04" + os: "ubuntu-24.04" tools: - python: "3.8" + python: "3.12" python: install: diff --git a/docs/requirements.txt b/docs/requirements.txt index 7ec1624a3..d95272cee 100644 --- a/docs/requirements.txt +++ b/docs/requirements.txt @@ -1,8 +1,8 @@ sphinx>=4.0.2 recommonmark -sphinx-rtd-theme +sphinx-book-theme sphinx_markdown_tables sphinx-argparse myst-parser -deepmodeling-sphinx +deepmodeling-sphinx>=0.3.0 . diff --git a/docs/source/conf.py b/docs/source/conf.py index 2bdcb9168..fe15047f0 100644 --- a/docs/source/conf.py +++ b/docs/source/conf.py @@ -34,7 +34,7 @@ # -- Options for HTML output ------------------------------------------------- # https://www.sphinx-doc.org/en/master/usage/configuration.html#options-for-html-output -html_theme = 'sphinx_rtd_theme' +html_theme = 'sphinx_book_theme' html_logo = 'DeepFlameLOGO.png' From 02e45b33fa4c933a24b7b3233ab5a33c375797af Mon Sep 17 00:00:00 2001 From: Jinzhe Zeng Date: Sun, 12 Jan 2025 11:16:03 +0800 Subject: [PATCH 2/3] Remove unused import in conf.py --- docs/source/conf.py | 1 - 1 file changed, 1 deletion(-) diff --git a/docs/source/conf.py b/docs/source/conf.py index fe15047f0..f8ae7ff16 100644 --- a/docs/source/conf.py +++ b/docs/source/conf.py @@ -14,7 +14,6 @@ # -- General configuration --------------------------------------------------- # https://www.sphinx-doc.org/en/master/usage/configuration.html#general-configuration -import sphinx_rtd_theme extensions = ["deepmodeling_sphinx", 'sphinx_rtd_theme', 'sphinx.ext.duration', From 53cac4f27220452bfeecee5217e726c63f92a0fa Mon Sep 17 00:00:00 2001 From: Jinzhe Zeng Date: Sun, 12 Jan 2025 11:17:31 +0800 Subject: [PATCH 3/3] Remove 'sphinx_rtd_theme' from Sphinx extensions --- docs/source/conf.py | 1 - 1 file changed, 1 deletion(-) diff --git a/docs/source/conf.py b/docs/source/conf.py index f8ae7ff16..a5f2f9fa0 100644 --- a/docs/source/conf.py +++ b/docs/source/conf.py @@ -15,7 +15,6 @@ # https://www.sphinx-doc.org/en/master/usage/configuration.html#general-configuration extensions = ["deepmodeling_sphinx", - 'sphinx_rtd_theme', 'sphinx.ext.duration', 'sphinx.ext.doctest', 'sphinx.ext.autodoc',