Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Fix test docs build on Travis with Sphinx 1.3.0 Edit (Lock travis on 1.2.3 for now) #4213

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Mar 12, 2015
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
Fix changed theme name in Sphinx 1.3
Set the theme name to default or classic depending on the version of Sphinx used
  • Loading branch information
jenshnielsen committed Mar 12, 2015
commit e4019d77e42d1e138a126a0f2349ed196305da47
7 changes: 6 additions & 1 deletion lib/matplotlib/sphinxext/tests/tinypages/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@

import sys
from os.path import join as pjoin, abspath
import sphinx
from distutils.version import LooseVersion

# If extensions (or modules to document with autodoc) are in another directory,
# add these directories to sys.path here. If the directory is relative to the
Expand Down Expand Up @@ -99,7 +101,10 @@

# The theme to use for HTML and HTML Help pages. See the documentation for
# a list of builtin themes.
html_theme = 'default'
if LooseVersion(sphinx.__version__) >= LooseVersion('1.3'):
html_theme = 'classic'
else:
html_theme = 'default'

# 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
Expand Down