Skip to content

Commit bbb15ea

Browse files
committed
🔧 Use git tag for versioning the docs
1 parent 24acd40 commit bbb15ea

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

docs/conf.py

+7-3
Original file line numberDiff line numberDiff line change
@@ -21,12 +21,16 @@
2121

2222
# -- Project information -----------------------------------------------------
2323

24+
import os
25+
import re
26+
27+
2428
project = "Python für Data Science"
25-
copyright = "2019–2024, Veit Schiele"
2629
author = "Veit Schiele"
30+
copyright = f"2019–2024, {author}"
2731

2832
# The full version, including alpha/beta/rc tags
29-
release = "1.0.0"
33+
release = re.sub("^v", "", os.popen("git describe --abbrev=0").read().strip())
3034

3135

3236
# -- General configuration ---------------------------------------------------
@@ -86,7 +90,7 @@
8690
# documentation.
8791
#
8892
# Change default HTML title
89-
html_title = "Python für Data Science 1.0.0"
93+
html_title = f"{project} {release}"
9094
#
9195
# html_theme_options = {}
9296
# html_sidebars = {}

0 commit comments

Comments
 (0)