Skip to content

Commit 12c8fd6

Browse files
committed
Use the package version in the documentation
1 parent c766eff commit 12c8fd6

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

docs/conf.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@
1010
from pathlib import Path
1111
from subprocess import run
1212

13+
import sphinxext.opengraph
14+
1315
# -- Path setup --------------------------------------------------------------
1416

1517
sys.path.insert(0, str(Path(__file__).parent.parent))
@@ -22,8 +24,7 @@
2224
"2025-%Y, the Sphinx developers",
2325
)
2426

25-
# The full version, including alpha/beta/rc tags
26-
release = "1.0"
27+
version = sphinxext.opengraph.__version__
2728

2829

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

0 commit comments

Comments
 (0)