diff --git a/.github/workflows/deploy-docs.yml b/.github/workflows/deploy-docs.yml index 6426bf3c84..a9da7a8ec2 100644 --- a/.github/workflows/deploy-docs.yml +++ b/.github/workflows/deploy-docs.yml @@ -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 diff --git a/docs/conf.py b/docs/conf.py index 15d12e5484..a996a09554 100644 --- a/docs/conf.py +++ b/docs/conf.py @@ -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. @@ -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"],