From 963586cc78ede5705e7467624c7b345b22651015 Mon Sep 17 00:00:00 2001 From: Mike Bayer Date: Wed, 26 Jun 2024 14:34:53 -0400 Subject: [PATCH] switch to book theme Change-Id: I034a5a9511fa2c0eecedb979ea965d53632416d1 --- docs/build/Makefile | 2 +- docs/build/_static/site_custom_css.css | 3 +++ docs/build/conf.py | 13 +++++++------ docs/build/requirements.txt | 3 +++ 4 files changed, 14 insertions(+), 7 deletions(-) diff --git a/docs/build/Makefile b/docs/build/Makefile index c87a87a4..e2641609 100644 --- a/docs/build/Makefile +++ b/docs/build/Makefile @@ -4,7 +4,7 @@ # You can set these variables from the command line. SPHINXOPTS = SPHINXBUILD = sphinx-build -AUTOBUILD = sphinx-autobuild --port 8080 --watch ../../lib +AUTOBUILD = sphinx-autobuild --port 8080 --watch ../../alembic PAPER = BUILDDIR = output diff --git a/docs/build/_static/site_custom_css.css b/docs/build/_static/site_custom_css.css index e69de29b..8703512e 100644 --- a/docs/build/_static/site_custom_css.css +++ b/docs/build/_static/site_custom_css.css @@ -0,0 +1,3 @@ +.sidebar-toggle { + display: none !important +} diff --git a/docs/build/conf.py b/docs/build/conf.py index 90a334e6..859a9ef8 100644 --- a/docs/build/conf.py +++ b/docs/build/conf.py @@ -146,9 +146,7 @@ pygments_style = "sphinx" # The theme to use for HTML and HTML Help pages. Major themes that come with # Sphinx are currently 'default' and 'sphinxdoc'. -html_theme = "nature" - -html_style = "nature_override.css" +html_theme = "sphinx_book_theme" # Theme options are theme-specific and customize the look and feel of a theme @@ -181,6 +179,8 @@ html_style = "nature_override.css" # so a file named "default.css" will overwrite the builtin "default.css". html_static_path = ["_static"] +html_css_files = ["site_custom_css.css"] + # If not '', a 'Last updated on:' timestamp is inserted at every page bottom, # using the given strftime format. # html_last_updated_fmt = '%b %d, %Y' @@ -192,10 +192,11 @@ html_static_path = ["_static"] # Custom sidebar templates, maps document names to template names. html_sidebars = { "**": [ + "navbar-logo.html", "site_custom_sidebars.html", - "localtoc.html", - "searchbox.html", - "relations.html", + "icon-links.html", + "search-button-field.html", + "sbt-sidebar-nav.html", ] } diff --git a/docs/build/requirements.txt b/docs/build/requirements.txt index bf162865..6925fcd3 100644 --- a/docs/build/requirements.txt +++ b/docs/build/requirements.txt @@ -7,3 +7,6 @@ Mako importlib-metadata;python_version<"3.9" importlib-resources;python_version<"3.9" sphinx_copybutton==0.5.1 +sphinx-book-theme + + -- 2.47.2