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 +.