Skip to content

Commit

Permalink
docs: use dynamic version for sphinx version
Browse files Browse the repository at this point in the history
  • Loading branch information
mikeshultz committed Oct 20, 2024
1 parent a12eafd commit 48bbc1b
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
#
import os
import sys
from importlib.metadata import version

sys.path.insert(0, os.path.abspath(".."))

Expand All @@ -22,10 +23,10 @@
copyright = "2024, Mike Shultz"
author = "Mike Shultz"

# The short X.Y version
version = "0.9.1"
# The full version, including alpha/beta/rc tags
release = "0.9.1"
release = version("ledgereth")
# The short X.Y version
version = ".".join(release.split(".")[:2])


# -- General configuration ---------------------------------------------------
Expand Down

0 comments on commit 48bbc1b

Please sign in to comment.