Skip to content

Commit

Permalink
feat(doc): geonature version is retrieved from the VERSION file
Browse files Browse the repository at this point in the history
  • Loading branch information
jacquesfize committed Jan 9, 2025
1 parent b52ec4a commit 3bf57c2
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,9 @@
import sys, os

sys.path.insert(0, os.path.abspath("../backend"))
from pathlib import Path

VERSION_GN = Path(__file__).resolve().parent.parent.joinpath("VERSION").read_text().strip()

# -- General configuration ------------------------------------------------

Expand Down Expand Up @@ -73,9 +76,9 @@
# built documents.
#
# The short X.Y version.
version = "2.15.0"
version = VERSION_GN
# The full version, including alpha/beta/rc tags.
release = "2.15.0"
release = VERSION_GN

# The language for content autogenerated by Sphinx. Refer to documentation
# for a list of supported languages.
Expand Down

0 comments on commit 3bf57c2

Please sign in to comment.