Skip to content

Commit 8da04d5

Browse files
authored
Merge pull request #1630 from ocefpaf/docs
Build docs again.
2 parents c7cfd07 + cd44f3d commit 8da04d5

22 files changed

+83
-80
lines changed

.github/workflows/deploy-docs.yml

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
name: Publish Docs
2+
3+
on: ["push", "pull_request"]
4+
5+
jobs:
6+
run:
7+
runs-on: ubuntu-latest
8+
steps:
9+
- uses: actions/checkout@v3
10+
11+
- name: Setup Micromamba
12+
uses: mamba-org/provision-with-micromamba@v14
13+
with:
14+
environment-file: false
15+
16+
- name: Create environment
17+
shell: bash -l {0}
18+
run: |
19+
micromamba create --name TEST python=3 --file requirements.txt --file requirements-dev.txt --channel conda-forge
20+
micromamba activate TEST
21+
pip install -e . --no-deps --force-reinstall
22+
23+
- name: Build documentation
24+
shell: bash -l {0}
25+
run: |
26+
set -e
27+
micromamba activate TEST
28+
cp examples/Quickstart.ipynb docs/quickstart.ipynb
29+
pushd docs
30+
make clean html linkcheck
31+
popd
32+
33+
- name: GitHub Pages action
34+
if: ${{ github.event_name == 'release' }}
35+
uses: peaceiris/actions-gh-pages@v3
36+
with:
37+
github_token: ${{ secrets.GITHUB_TOKEN }}
38+
publish_dir: docs/_build/html/

.github/workflows/test_code.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,14 +8,14 @@ jobs:
88
strategy:
99
matrix:
1010
os: [ubuntu-latest, windows-latest]
11-
python-version: ["3.7", "3.10"]
11+
python-version: ["3.7", "3.11"]
1212
fail-fast: false
1313

1414
steps:
1515
- uses: actions/checkout@v3
1616

1717
- name: Setup Micromamba
18-
uses: mamba-org/provision-with-micromamba@v13
18+
uses: mamba-org/provision-with-micromamba@v14
1919
with:
2020
environment-file: false
2121

.github/workflows/test_code_notebooks.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ jobs:
1010
- uses: actions/checkout@v3
1111

1212
- name: Setup Micromamba
13-
uses: mamba-org/provision-with-micromamba@v13
13+
uses: mamba-org/provision-with-micromamba@v14
1414
with:
1515
environment-file: false
1616

.github/workflows/test_latest_branca.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ jobs:
1010
- uses: actions/checkout@v3
1111

1212
- name: Setup Micromamba
13-
uses: mamba-org/provision-with-micromamba@v13
13+
uses: mamba-org/provision-with-micromamba@v14
1414
with:
1515
environment-file: false
1616

.github/workflows/test_selenium.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ jobs:
1010
- uses: actions/checkout@v3
1111

1212
- name: Setup Micromamba
13-
uses: mamba-org/provision-with-micromamba@v13
13+
uses: mamba-org/provision-with-micromamba@v14
1414
with:
1515
environment-file: false
1616

.github/workflows/test_style_notebooks.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ jobs:
1010
- uses: actions/checkout@v3
1111

1212
- name: Setup Micromamba
13-
uses: mamba-org/provision-with-micromamba@v13
13+
uses: mamba-org/provision-with-micromamba@v14
1414
with:
1515
environment-file: false
1616

.travis.yml

Lines changed: 0 additions & 41 deletions
This file was deleted.

README.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ using Jupyter's nbviewer:
5858

5959
https://nbviewer.jupyter.org/github/python-visualization/folium/tree/main/examples/
6060

61-
https://nbviewer.jupyter.org/github/python-visualization/folium_contrib/tree/master/notebooks/
61+
https://nbviewer.org/github/python-visualization/folium_contrib/tree/main/notebooks/
6262

6363
Contributing
6464
------------

docs/conf.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -245,3 +245,8 @@
245245

246246
# How to display URL addresses: 'footnote', 'no', or 'inline'.
247247
#texinfo_show_urls = 'footnote'
248+
249+
# Ignore tile URLs
250+
linkcheck_ignore = [
251+
r"https://free.*",
252+
]

examples/Quickstart.ipynb

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -349,7 +349,7 @@
349349
"## Vincent/Vega and Altair/VegaLite Markers\n",
350350
"\n",
351351
"`folium` enables passing any HTML object as a popup,\n",
352-
"including [`bokeh`](https://bokeh.pydata.org/en/latest/) plots,\n",
352+
"including [`bokeh`](https://docs.bokeh.org/en/latest/) plots,\n",
353353
"but there is a built-in support for [vincent](https://github.com/wrobstory/vincent) and [altair](https://altair-viz.github.io) visualizations to any marker type, with the visualization as the popover."
354354
]
355355
},
@@ -422,7 +422,7 @@
422422
"cell_type": "markdown",
423423
"metadata": {},
424424
"source": [
425-
"For more information about popups, please visit [Popups.ipynb](https://nbviewer.jupyter.org/github/python-visualization/folium/blob/main/examples/Popups.ipynb)"
425+
"For more information about popups, please visit [Popups.ipynb](https://nbviewer.org/github/python-visualization/folium/blob/main/examples/Popups.ipynb)"
426426
]
427427
},
428428
{
@@ -489,7 +489,7 @@
489489
"source": [
490490
"## Choropleth maps\n",
491491
"\n",
492-
"Choropleth can be easily created by binding the data between Pandas DataFrames/Series and Geo/TopoJSON geometries. [Color Brewer](http://colorbrewer2.org/) sequential color schemes are built-in to the library, and can be passed to quickly visualize different combinations."
492+
"Choropleth can be easily created by binding the data between Pandas DataFrames/Series and Geo/TopoJSON geometries. [Color Brewer](https://colorbrewer2.org/) sequential color schemes are built-in to the library, and can be passed to quickly visualize different combinations."
493493
]
494494
},
495495
{
@@ -759,7 +759,7 @@
759759
"source": [
760760
"For more examples and use cases please take a look at the gallery:\n",
761761
"\n",
762-
"https://nbviewer.jupyter.org/github/python-visualization/folium_contrib/tree/main/notebooks/"
762+
"https://nbviewer.org/github/python-visualization/folium_contrib/tree/main/notebooks/"
763763
]
764764
}
765765
],
@@ -779,7 +779,7 @@
779779
"name": "python",
780780
"nbconvert_exporter": "python",
781781
"pygments_lexer": "ipython3",
782-
"version": "3.9.7"
782+
"version": "3.10.6"
783783
},
784784
"toc": {
785785
"base_numbering": 1,

examples/plugin-Search.ipynb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -281,7 +281,7 @@
281281
"cell_type": "markdown",
282282
"metadata": {},
283283
"source": [
284-
"This looks better. Our min and max values for the colorscale are much closer to the mean value now. Let's run with these values, and make a colorscale. I'm just going to use a sequential light-to-dark color palette from the [ColorBrewer](http://colorbrewer2.org/#type=sequential&scheme=Purples&n=5)."
284+
"This looks better. Our min and max values for the colorscale are much closer to the mean value now. Let's run with these values, and make a colorscale. I'm just going to use a sequential light-to-dark color palette from the [ColorBrewer](https://colorbrewer2.org/#type=sequential&scheme=Purples&n=5)."
285285
]
286286
},
287287
{
@@ -530,7 +530,7 @@
530530
"name": "python",
531531
"nbconvert_exporter": "python",
532532
"pygments_lexer": "ipython3",
533-
"version": "3.10.1"
533+
"version": "3.10.6"
534534
}
535535
},
536536
"nbformat": 4,

folium/features.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -975,7 +975,7 @@ class GeoJsonTooltip(GeoJsonDetail):
975975
Whether the tooltip should follow the mouse.
976976
**kwargs: Assorted.
977977
These values will map directly to the Leaflet Options. More info
978-
available here: https://leafletjs.com/reference-1.6.0#tooltip
978+
available here: https://leafletjs.com/reference.html#tooltip
979979
980980
Examples
981981
--------
@@ -1028,7 +1028,7 @@ class GeoJsonPopup(GeoJsonDetail):
10281028
This will use JavaScript's .toLocaleString() to format 'clean' values
10291029
as strings for the user's location; i.e. 1,000,000.00 comma separators,
10301030
float truncation, etc.
1031-
*Available for most of JavaScript's primitive types (any data you'll
1031+
Available for most of JavaScript's primitive types (any data you'll
10321032
serve into the template).
10331033
style: str, default None.
10341034
HTML inline style properties like font and colors. Will be applied to
@@ -1076,7 +1076,7 @@ class Choropleth(FeatureGroup):
10761076
on which to key the data. The 'columns' keyword does not need to be
10771077
passed for a Pandas series.
10781078
1079-
Colors are generated from color brewer (http://colorbrewer2.org/)
1079+
Colors are generated from color brewer (https://colorbrewer2.org/)
10801080
sequential palettes. By default, linear binning is used between
10811081
the min and the max of the values. Custom binning can be achieved
10821082
with the `bins` parameter.
@@ -1332,7 +1332,7 @@ class DivIcon(MacroElement):
13321332
html : string
13331333
A custom HTML code to put inside the div element.
13341334
1335-
See https://leafletjs.com/reference-1.6.0.html#divicon
1335+
See https://leafletjs.com/reference.html#divicon
13361336
13371337
"""
13381338

@@ -1427,8 +1427,8 @@ class ClickForLatLng(MacroElement):
14271427
format_str : str, default 'lat + "," + lng'
14281428
The javascript string used to format the text copied to clipboard.
14291429
eg:
1430-
format_str = 'lat + "," + lng' >> 46.558860,3.397397
1431-
format_str = '"[" + lat + "," + lng + "]"' >> [46.558860,3.397397]
1430+
format_str = 'lat + "," + lng' >> 46.558860,3.397397
1431+
format_str = '"[" + lat + "," + lng + "]"' >> [46.558860,3.397397]
14321432
alert : bool, default True
14331433
Whether there should be an alert when something has been copied to clipboard.
14341434
"""

folium/folium.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,7 @@ class Map(JSCSSMixin, MacroElement):
141141
Display zoom controls on the map.
142142
**kwargs
143143
Additional keyword arguments are passed to Leaflets Map class:
144-
https://leafletjs.com/reference-1.6.0.html#map
144+
https://leafletjs.com/reference.html#map
145145
146146
Returns
147147
-------

folium/map.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ class FeatureGroup(Layer):
5858
Whether the layer will be shown on opening (only for overlays).
5959
**kwargs
6060
Additional (possibly inherited) options. See
61-
https://leafletjs.com/reference-1.6.0.html#featuregroup
61+
https://leafletjs.com/reference.html#featuregroup
6262
6363
"""
6464
_template = Template(u"""
@@ -104,7 +104,7 @@ class LayerControl(MacroElement):
104104
its layers so that the order is preserved when switching them on/off.
105105
**kwargs
106106
Additional (possibly inherited) options. See
107-
https://leafletjs.com/reference-1.6.0.html#control-layers
107+
https://leafletjs.com/reference.html#control-layers
108108
109109
"""
110110
_template = Template("""
@@ -403,7 +403,7 @@ class Tooltip(MacroElement):
403403
Whether the tooltip should follow the mouse.
404404
**kwargs
405405
These values will map directly to the Leaflet Options. More info
406-
available here: https://leafletjs.com/reference-1.6.0#tooltip
406+
available here: https://leafletjs.com/reference.html#tooltip
407407
408408
"""
409409
_template = Template(u"""
@@ -517,7 +517,7 @@ class CustomPane(MacroElement):
517517
determine which map elements lie over/under it. The default
518518
(625) corresponds to between markers and tooltips. Default
519519
panes and z-indexes can be found at
520-
https://leafletjs.com/reference-1.6.0.html#map-pane
520+
https://leafletjs.com/reference.html#map-pane
521521
pointer_events: bool, default False
522522
Whether or not layers in the pane should interact with the
523523
cursor. Setting to False will prevent interfering with

folium/plugins/beautify_icon.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ class BeautifyIcon(JSCSSMixin, MacroElement):
3333
3434
Examples
3535
--------
36-
Plugin Website: https://github.com/marslan390/BeautifyMarker
36+
Plugin Website: https://github.com/masajid390/BeautifyMarker
3737
>>> BeautifyIcon(text_color='#000', border_color='transparent',
3838
... background_color='#FFF').add_to(marker)
3939
>>> number_icon = BeautifyIcon(text_color='#000', border_color='transparent',

folium/plugins/draw.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ class Draw(JSCSSMixin, MacroElement):
1717
Name of geojson file
1818
position : {'topleft', 'toprigth', 'bottomleft', 'bottomright'}
1919
Position of control.
20-
See https://leafletjs.com/reference-1.6.0.html#control
20+
See https://leafletjs.com/reference.html#control
2121
draw_options : dict, optional
2222
The options used to configure the draw toolbar. See
2323
http://leaflet.github.io/Leaflet.draw/docs/leaflet-draw-latest.html#drawoptions

folium/plugins/polyline_text_path.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ class PolyLineTextPath(JSCSSMixin, MacroElement):
2828
attributes: dict
2929
Object containing the attributes applied to the text tag.
3030
Check valid attributes here:
31-
https://developer.mozilla.org/en-US/docs/Web/SVG/Element/text#Attributes
31+
https://developer.mozilla.org/en-US/docs/Web/SVG/Element/text#attributes
3232
Example: {'fill': '#007DEF', 'font-weight': 'bold', 'font-size': '24'}
3333
3434
See https://github.com/makinacorpus/Leaflet.TextPath for more information.

folium/raster_layers.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -156,7 +156,7 @@ class WmsTileLayer(Layer):
156156
for setting extra tileLayer.wms parameters or as extra parameters in
157157
the WMS request.
158158
159-
See https://leafletjs.com/reference-1.6.0.html#tilelayer-wms
159+
See https://leafletjs.com/reference.html#tilelayer-wms
160160
"""
161161
_template = Template(u"""
162162
{% macro script(this, kwargs) %}
@@ -225,7 +225,7 @@ class ImageOverlay(Layer):
225225
show: bool, default True
226226
Whether the layer will be shown on opening (only for overlays).
227227
228-
See https://leafletjs.com/reference-1.6.0.html#imageoverlay for more
228+
See https://leafletjs.com/reference.html#imageoverlay for more
229229
options.
230230
231231
"""
@@ -311,7 +311,7 @@ class VideoOverlay(Layer):
311311
Whether the layer will be shown on opening (only for overlays).
312312
**kwargs:
313313
Other valid (possibly inherited) options. See:
314-
https://leafletjs.com/reference-1.6.0.html#videooverlay
314+
https://leafletjs.com/reference.html#videooverlay
315315
316316
"""
317317
_template = Template(u"""

0 commit comments

Comments
 (0)