File tree 2 files changed +7
-2
lines changed
lib/matplotlib/sphinxext/tests/tinypages
2 files changed +7
-2
lines changed Original file line number Diff line number Diff line change @@ -24,7 +24,7 @@ matrix:
24
24
env : BUILD_DOCS=true
25
25
26
26
install :
27
- - pip install -q --use-mirrors nose python-dateutil $NUMPY pep8 pyparsing pillow sphinx
27
+ - pip install -q --use-mirrors nose python-dateutil $NUMPY pep8 pyparsing pillow sphinx==1.2.3
28
28
- sudo apt-get update && sudo apt-get -qq install inkscape libav-tools gdb mencoder
29
29
# We use --no-install-recommends to avoid pulling in additional large latex docs that we don't need
30
30
Original file line number Diff line number Diff line change 14
14
15
15
import sys
16
16
from os .path import join as pjoin , abspath
17
+ import sphinx
18
+ from distutils .version import LooseVersion
17
19
18
20
# If extensions (or modules to document with autodoc) are in another directory,
19
21
# add these directories to sys.path here. If the directory is relative to the
99
101
100
102
# The theme to use for HTML and HTML Help pages. See the documentation for
101
103
# a list of builtin themes.
102
- html_theme = 'default'
104
+ if LooseVersion (sphinx .__version__ ) >= LooseVersion ('1.3' ):
105
+ html_theme = 'classic'
106
+ else :
107
+ html_theme = 'default'
103
108
104
109
# Theme options are theme-specific and customize the look and feel of a theme
105
110
# further. For a list of options available for each theme, see the
You can’t perform that action at this time.
0 commit comments