Skip to content

Commit

Permalink
Fix doc versions (#1238)
Browse files Browse the repository at this point in the history
  • Loading branch information
ivirshup authored Jul 12, 2024
1 parent c440b1c commit 196418f
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,13 +10,13 @@
copyright = '2022, Chan Zuckerberg Initiative'
author = 'Chan Zuckerberg Initiative'

from packaging.version import Version
import git

repo = git.Repo(search_parent_directories=True)
tags = [t for t in repo.tags if t.tag is not None]
tags = sorted(tags, key=lambda t: t.tag.tagged_date)
latest_tag = tags[-1]
all_versions = sorted([Version(t.name) for t in repo.tags])

version = str(latest_tag)
version = str(all_versions[-1])

# -- General configuration ---------------------------------------------------
# https://www.sphinx-doc.org/en/master/usage/configuration.html#general-configuration
Expand All @@ -28,7 +28,7 @@
'sphinx.ext.napoleon',
'sphinx.ext.autosummary',
'myst_parser'
]
]

autosummary_generate = True

Expand Down

0 comments on commit 196418f

Please sign in to comment.