Commit f41c1ba0 authored by Stefan Behnel's avatar Stefan Behnel

fall back to 'default' Sphinx doc theme on old Sphinx versions that lack the 'nature' theme

--HG--
extra : transplant_source : %3E%C7%7C%E0I%E9%84%03%8A%EF%F0z%84%20d%E9%C1%12%AF%3E
parent 86fada22
...@@ -138,7 +138,13 @@ intersphinx_mapping = {'python': ('http://docs.python.org/3/', None)} ...@@ -138,7 +138,13 @@ intersphinx_mapping = {'python': ('http://docs.python.org/3/', None)}
# The theme to use for HTML and HTML Help pages. See the documentation for # The theme to use for HTML and HTML Help pages. See the documentation for
# a list of builtin themes. # a list of builtin themes.
html_theme = 'nature' html_theme = 'default'
try:
import sphinx
if os.path.isdir(os.path.join(os.path.dirname(sphinx.__file__), 'themes', 'nature')):
html_theme = 'nature'
except (ImportError, AttributeError):
pass # use default theme
# Theme options are theme-specific and customize the look and feel of a theme # Theme options are theme-specific and customize the look and feel of a theme
# further. For a list of options available for each theme, see the # further. For a list of options available for each theme, see the
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment