diff --git a/docs/_source/conf.py b/docs/_source/conf.py index 3cb20f5..4390a7a 100644 --- a/docs/_source/conf.py +++ b/docs/_source/conf.py @@ -35,10 +35,23 @@ napoleon_numpy_docstring = True napoleon_attr_annotations = True # HTML output -html_theme = "sphinx_rtd_theme" +html_theme = "sphinx_book_theme" html_static_path = ["_static"] html_title = "Aborist API Reference" +# Move the project TOC to the right side. Reading area stays centered; +# left-side primary sidebar is hidden so the right TOC is the single +# navigation surface. +html_theme_options = { + "show_toc_level": 3, + "show_navbar_depth": 2, + "use_sidenotes": True, + "primary_sidebar_end": [], +} +html_sidebars = { + "**": [], # empty left sidebar — unified TOC lives on the right +} + # Suppress warnings for missing references suppress_warnings = ["ref.doc"] diff --git a/docs/_source/requirements.txt b/docs/_source/requirements.txt index 1cd72b0..f17958f 100644 --- a/docs/_source/requirements.txt +++ b/docs/_source/requirements.txt @@ -1,3 +1,3 @@ # Sphinx documentation build dependencies for Read the Docs sphinx>=8.0 -sphinx-rtd-theme>=3.0 +sphinx-book-theme>=1.1