From 184788a7e9ebf3ba427a4c7f0698ac22fca56e98 Mon Sep 17 00:00:00 2001 From: Frank Li Date: Fri, 1 Mar 2024 11:58:14 +0800 Subject: [PATCH] seems that read-the-docs has changed their default themes, try to fix it. --- .readthedocs.yaml | 6 +++--- conf.py | 8 ++++---- requirements.txt | 1 + 3 files changed, 8 insertions(+), 7 deletions(-) create mode 100644 requirements.txt diff --git a/.readthedocs.yaml b/.readthedocs.yaml index a17e9b7..8933d40 100644 --- a/.readthedocs.yaml +++ b/.readthedocs.yaml @@ -30,6 +30,6 @@ sphinx: # Optional but recommended, declare the Python requirements required # to build your documentation # See https://docs.readthedocs.io/en/stable/guides/reproducible-builds.html -# python: -# install: -# - requirements: docs/requirements.txt \ No newline at end of file +python: + install: + - requirements: requirements.txt \ No newline at end of file diff --git a/conf.py b/conf.py index 3c6a1a9..b8b9f48 100644 --- a/conf.py +++ b/conf.py @@ -19,10 +19,10 @@ pygments_style = 'sphinx' import os on_rtd = os.environ.get('READTHEDOCS', None) == 'True' -if not on_rtd: # only import and set the theme if we're building docs locally - import sphinx_rtd_theme - html_theme = 'sphinx_rtd_theme' - html_theme_path = [sphinx_rtd_theme.get_html_theme_path()] +# if not on_rtd: # only import and set the theme if we're building docs locally +import sphinx_rtd_theme +html_theme = 'sphinx_rtd_theme' +html_theme_path = [sphinx_rtd_theme.get_html_theme_path()] # otherwise, readthedocs.org uses their theme by default, so no need to specify it diff --git a/requirements.txt b/requirements.txt new file mode 100644 index 0000000..59709ec --- /dev/null +++ b/requirements.txt @@ -0,0 +1 @@ +sphinx-rtd-theme==2.0.0