Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
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
2 changes: 2 additions & 0 deletions .github/workflows/deploy-docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0

- name: Setup Micromamba env
uses: mamba-org/setup-micromamba@v1
Expand Down
9 changes: 2 additions & 7 deletions docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -54,15 +54,10 @@
# |version| and |release|, also used in various other places throughout the
# built documents.

# The full version, including alpha/beta/rc tags.

import folium

version = release = folium.__version__
if "+" in version:
version, remainder = release.split("+")
if not remainder.startswith("0"):
version = version + ".dev+" + remainder.split(".")[0]
print(f"Version: {version}")

# The language for content autogenerated by Sphinx. Refer to documentation
# for a list of supported languages.
Expand Down Expand Up @@ -111,7 +106,7 @@
html_theme_options = {
"switcher": {
"json_url": "https://python-visualization.github.io/folium/latest/_static/switcher.json",
"version_match": "latest" if ".dev+" in version else version,
"version_match": "latest" if ".dev" in version else version,
},
"navbar_start": ["navbar-logo", "version-switcher"],
"footer_start": ["version", "copyright", "sphinx-version", "theme-version"],
Expand Down