From 0fa5feddc000f9b3292bb6a27c68593679567cd2 Mon Sep 17 00:00:00 2001 From: Jannis Vajen Date: Mon, 16 Oct 2023 14:21:45 +0200 Subject: [PATCH] Use Furo theme (#1614) --- .readthedocs.yaml | 3 +-- docs/conf.py | 14 +------------- requirements/docs.txt | 3 +++ 3 files changed, 5 insertions(+), 15 deletions(-) create mode 100644 requirements/docs.txt diff --git a/.readthedocs.yaml b/.readthedocs.yaml index 0a90766e..e92e2312 100644 --- a/.readthedocs.yaml +++ b/.readthedocs.yaml @@ -14,5 +14,4 @@ build: python: install: - - method: pip - path: . + - requirements: requirements/docs.txt diff --git a/docs/conf.py b/docs/conf.py index 6d4f6323..7bc02338 100644 --- a/docs/conf.py +++ b/docs/conf.py @@ -94,7 +94,7 @@ # The theme to use for HTML and HTML Help pages. See the documentation for # a list of builtin themes. -html_theme = "default" +html_theme = "furo" # Theme options are theme-specific and customize the look and feel of a theme # further. For a list of options available for each theme, see the @@ -257,15 +257,3 @@ # How to display URL addresses: 'footnote', 'no', or 'inline'. # texinfo_show_urls = 'footnote' - - -# see: -# https://github.com/snide/sphinx_rtd_theme#using-this-theme-locally-then-building-on-read-the-docs -on_rtd = os.environ.get("READTHEDOCS", None) == "True" - -# only import and set the theme if we're building docs locally -if not on_rtd: - import sphinx_rtd_theme - - html_theme = "sphinx_rtd_theme" - html_theme_path = [sphinx_rtd_theme.get_html_theme_path()] diff --git a/requirements/docs.txt b/requirements/docs.txt new file mode 100644 index 00000000..303d17f6 --- /dev/null +++ b/requirements/docs.txt @@ -0,0 +1,3 @@ +Sphinx +furo +.