From: Debian Science Maintainers Date: Fri, 24 Apr 2020 14:17:04 +0000 (+0100) Subject: Don't try to use a theme we don't have X-Git-Tag: archive/raspbian/0.11.1-2+rpi1~1^2~10 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=0bb172b756bb16b6d17bc8e228fa945b663a2e05;p=statsmodels.git 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 --- diff --git a/docs/source/conf.py b/docs/source/conf.py index 1ad2ce3..9b21ae5 100644 --- a/docs/source/conf.py +++ b/docs/source/conf.py @@ -18,8 +18,6 @@ import sys import yaml from os.path import dirname, join -import sphinx_material - from statsmodels import __version__ # -- Monkey Patch ---------------------------------------------------------- @@ -99,7 +97,7 @@ from distutils.version import LooseVersion 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] @@ -158,10 +156,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) @@ -232,7 +228,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