Don't try to use a theme we don't have
authorDebian Science Maintainers <debian-science-maintainers@lists.alioth.debian.org>
Sun, 20 Feb 2022 20:03:58 +0000 (20:03 +0000)
committerRebecca N. Palmer <rebecca_palmer@zoho.com>
Sun, 20 Feb 2022 20:03:58 +0000 (20:03 +0000)
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 <rebecca_palmer@zoho.com>
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

index db0c70d50e377725016eded49c0c17e9f122da8d..76f435519b2831181424a985b4c7eebdf931e161 100644 (file)
@@ -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