From 9ab0ba592f3ae7f13f11ee0ba22d5aeb3932d1c2 Mon Sep 17 00:00:00 2001 From: Debian Science Maintainers Date: Sun, 6 Feb 2022 19:08:08 +0000 Subject: [PATCH] Don't try to use a theme we don't have Upstream switched to sphinx_material in 1d7aafad5c3ad634c9ae2122881c1809c2ccbcbe and Debian doesn't have that theme. (I haven't investigated packaging it, which might be a better long-term option.) Author: Rebecca N. Palmer Forwarded: not-needed (except maybe the version fix? or is that no longer needed at all?) Gbp-Pq: Name no_sphinx_material.patch --- docs/source/conf.py | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) diff --git a/docs/source/conf.py b/docs/source/conf.py index db0c70d..76f4355 100644 --- a/docs/source/conf.py +++ b/docs/source/conf.py @@ -21,7 +21,6 @@ import sys import yaml from numpydoc.xref import DEFAULT_LINKS -import sphinx_material from statsmodels import __version__ # -- Monkey Patch ---------------------------------------------------------- @@ -100,7 +99,7 @@ release = __version__ lv = LooseVersion(release) commit = '' -full_version = short_version = version = release +full_version = version = short_version = lv.vstring if '+' in lv.version: short_version = lv.vstring[:lv.vstring.index('+')] commit = lv.version[lv.version.index('+') + 1] @@ -162,10 +161,8 @@ pygments_style = 'default' # The theme to use for HTML and HTML Help pages. See the documentation for # a list of builtin themes. -extensions.append('sphinx_material') -html_theme_path = sphinx_material.html_theme_path() -html_context = sphinx_material.get_html_context() -html_theme = 'sphinx_material' +html_theme = 'nature' +html_context = {} html_title = project html_short_title = project # material theme options (see theme.conf for more information) @@ -239,7 +236,7 @@ html_static_path = ['_static'] # Custom sidebar templates, maps document names to template names. html_sidebars = { - "**": ["logo-text.html", "globaltoc.html", "localtoc.html", "searchbox.html"] + "**": ["globaltoc.html", "localtoc.html", "searchbox.html"] } # Additional templates that should be rendered to pages, maps page names to -- 2.30.2