summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorjaseg <git@jaseg.de>2022-06-10 23:00:44 +0200
committerjaseg <git@jaseg.de>2022-06-10 23:00:44 +0200
commit94289b7af4a5c0e7bb99ce94e1d391eda87959f3 (patch)
treeabc13e245a7b4ba931273e71c6493975228da6a1
parent230418705fbcffcb68fffe56463e21ef3996fe2d (diff)
downloadgerbonara-0.10.4.tar.gz
gerbonara-0.10.4.tar.bz2
gerbonara-0.10.4.zip
doc: Fix sphinx buildv0.10.4
-rw-r--r--docs/conf.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/docs/conf.py b/docs/conf.py
index 1571c1d..22720ab 100644
--- a/docs/conf.py
+++ b/docs/conf.py
@@ -11,7 +11,7 @@
# documentation root, use os.path.abspath to make it absolute, like shown here.
import subprocess
-def version():
+def get_version():
res = subprocess.run(['git', 'describe', '--tags', '--match', 'v*'], capture_output=True, check=True, text=True)
version, _, _rest = res.stdout.strip()[1:].partition('-')
return version
@@ -27,7 +27,7 @@ copyright = '2022, Jan Götte'
author = 'jaseg'
# The full version, including alpha/beta/rc tags
-release = version()
+release = get_version()
# -- General configuration ---------------------------------------------------