From 8f4a473aaa45e71323a1c3df030a58ce5fa5d8be Mon Sep 17 00:00:00 2001 From: Ray <7869818+rayrrr@users.noreply.github.com> Date: Tue, 6 Aug 2024 21:20:41 -0400 Subject: [PATCH] Use RtD theme for Sphinx docs Started with `sphinx-quickstart` output then changed it back to the theme we are already using. --- docs/source/conf.py | 5 ++--- docs/source/theme.toml | 3 +++ 2 files changed, 5 insertions(+), 3 deletions(-) create mode 100644 docs/source/theme.toml diff --git a/docs/source/conf.py b/docs/source/conf.py index da84273..c408dad 100644 --- a/docs/source/conf.py +++ b/docs/source/conf.py @@ -19,10 +19,9 @@ templates_path = ['_templates'] exclude_patterns = [] - - # -- Options for HTML output ------------------------------------------------- # https://www.sphinx-doc.org/en/master/usage/configuration.html#options-for-html-output -html_theme = 'alabaster' +html_theme = 'sphinx_rtd_theme' +html_theme_path = ['_theme'] html_static_path = ['_static'] diff --git a/docs/source/theme.toml b/docs/source/theme.toml new file mode 100644 index 0000000..1869c89 --- /dev/null +++ b/docs/source/theme.toml @@ -0,0 +1,3 @@ +[theme] +name = "sphinx_rtd_theme" +base_url = "https://readthedocs.org/projects/sphinx-rtd-theme/"