From 94289b7af4a5c0e7bb99ce94e1d391eda87959f3 Mon Sep 17 00:00:00 2001 From: jaseg Date: Fri, 10 Jun 2022 23:00:44 +0200 Subject: doc: Fix sphinx build --- docs/conf.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'docs') 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 --------------------------------------------------- -- cgit