File tree Expand file tree Collapse file tree 2 files changed +7
-4
lines changed Expand file tree Collapse file tree 2 files changed +7
-4
lines changed Original file line number Diff line number Diff line change @@ -60,12 +60,14 @@ matrix:
60
60
before_install :
61
61
# Shapely dependency needed to keep from using Shapely's manylinux wheels
62
62
# which use a different geos that what we build cartopy with on Travis
63
+ # We hardcode the sphinx_rtd_theme to lock in our build with patch for
64
+ # version chooser
63
65
- pip install --upgrade pip;
64
66
- pip install --upgrade setuptools;
65
67
- if [[ $TASK == "docs" ]]; then
66
68
if ! git describe --tags; then git fetch --depth=150; fi;
67
69
export EXTRA_INSTALLS="cdm,doc,examples";
68
- export EXTRA_PACKAGES="Cython pillow shapely<1.5.17.post1 sphinx_rtd_theme pytest recommonmark";
70
+ export EXTRA_PACKAGES="Cython pillow shapely<1.5.17.post1 sphinx_rtd_theme==0.2.5b1.post1 pytest recommonmark";
69
71
ls $HOME/local/lib/;
70
72
if [[ ! -f $HOME/local/lib/libproj.so ]]; then
71
73
wget http://download.osgeo.org/proj/proj-4.9.3.tar.gz;
Original file line number Diff line number Diff line change 65
65
}
66
66
67
67
68
-
69
68
# Turn off code and image links for embedded mpl plots
70
69
plot_html_show_source_link = False
71
70
plot_html_show_formats = False
108
107
#
109
108
# The short X.Y version.
110
109
verinfo = metpy .__version__
111
- version = verinfo .split ('+' )[0 ]
110
+ version = verinfo .split ('+' )[0 ]. rsplit ( '.' , maxsplit = 1 )[ 0 ]
112
111
# The full version, including alpha/beta/rc tags.
113
112
release = verinfo
114
113
167
166
def setup (app ):
168
167
app .add_stylesheet ('theme_override.css' )
169
168
169
+
170
170
# Theme options are theme-specific and customize the look and feel of a theme
171
171
# further. For a list of options available for each theme, see the
172
172
# documentation.
173
- html_theme_options = {'canonical_url' : 'https://unidata.github.io/MetPy/latest/' }
173
+ html_theme_options = {'canonical_url' : 'https://unidata.github.io/MetPy/latest/' ,
174
+ 'versions' : {'latest' : '../latest' , 'dev' : '../dev' }}
174
175
175
176
# Add any paths that contain custom themes here, relative to this directory.
176
177
# html_theme_path = []
You can’t perform that action at this time.
0 commit comments