Skip to content

Commit 5b0bfec

Browse files
committed
switcher config
1 parent c2b2555 commit 5b0bfec

4 files changed

Lines changed: 60 additions & 4 deletions

File tree

docs/_static/switcher.json

Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
[
2+
{
3+
"version": "v0.14.0 (stable)",
4+
"url": "https://python-visualization.github.io/folium/version-v0.14.0/"
5+
},
6+
{
7+
"version": "v0.12.1",
8+
"url": "https://python-visualization.github.io/folium/version-v0.12.1/"
9+
},
10+
{
11+
"version": "v0.12.0",
12+
"url": "https://python-visualization.github.io/folium/version-v0.12.0/"
13+
},
14+
{
15+
"version": "v0.11.0",
16+
"url": "https://python-visualization.github.io/folium/version-v0.11.0/"
17+
},
18+
{
19+
"version": "v0.10.1",
20+
"url": "https://python-visualization.github.io/folium/version-v0.10.1/"
21+
},
22+
{
23+
"version": "v0.10.0",
24+
"url": "https://python-visualization.github.io/folium/version-v0.10.0/"
25+
},
26+
{
27+
"version": "v0.9.1",
28+
"url": "https://python-visualization.github.io/folium/version-v0.9.1/"
29+
},
30+
{
31+
"version": "v0.9.0",
32+
"url": "https://python-visualization.github.io/folium/version-v0.9.0/"
33+
},
34+
{
35+
"version": "v0.8.3",
36+
"url": "https://python-visualization.github.io/folium/version-v0.8.3/"
37+
},
38+
{
39+
"version": "v0.8.2",
40+
"url": "https://python-visualization.github.io/folium/version-v0.8.2/"
41+
},
42+
{
43+
"version": "v0.8.1",
44+
"url": "https://python-visualization.github.io/folium/version-v0.8.1/"
45+
}
46+
]

docs/_templates/version.html

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
<!-- This will display the version of the docs -->
2+
Folium version {{ version }}

docs/conf.py

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -108,14 +108,21 @@
108108
# Theme options are theme-specific and customize the look and feel of a theme
109109
# further. For a list of options available for each theme, see the
110110
# documentation.
111-
# html_theme_options = {}
111+
html_theme_options = {
112+
"switcher": {
113+
"json_url": "https://python-visualization.github.io/folium/latest/_static/switcher.json",
114+
"version_match": "latest" if ".dev+" in version else version,
115+
},
116+
"navbar_start": ["navbar-logo", "version-switcher"],
117+
"footer_items": ["version", "copyright", "sphinx-version", "theme-version"],
118+
}
112119

113120
# Add any paths that contain custom themes here, relative to this directory.
114121
# html_theme_path = ["_themes"]
115122

116123
# The name for this set of Sphinx documents. If None, it defaults to
117124
# "<project> v<release> documentation".
118-
# html_title = None
125+
html_title = "Folium documentation"
119126

120127
# A shorter title for the navigation bar. Default is the same as html_title.
121128
# html_short_title = None

docs/index.rst

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,9 @@ It enables both the binding of data to a map for ``choropleth`` visualizations
2020
as well as passing rich vector/raster/HTML visualizations as markers on the map.
2121

2222
The library has a number of built-in tilesets from OpenStreetMap,
23-
Mapbox, and Stamen, and supports custom tilesets with Mapbox or Cloudmade API keys.
24-
``folium`` supports both Image, Video, GeoJSON and TopoJSON overlays.
23+
Mapbox, and Stamen, and supports custom tilesets.
24+
``folium`` supports both Image, Video, GeoJSON and TopoJSON overlays and has a
25+
number of vector layers built-in.
2526

2627

2728
Contents

0 commit comments

Comments
 (0)