diff --git a/doc/conf.py b/doc/conf.py index 0c50cecb7..95474259e 100644 --- a/doc/conf.py +++ b/doc/conf.py @@ -38,7 +38,9 @@ author = 'Max Kellermann' # built documents. # # The short X.Y version. -version = '0.23.10' +with open('../meson.build') as f: + import re + version = re.match(r".*version:\s*'([^']+)'", f.readline()).group(1) # The full version, including alpha/beta/rc tags. #release = version + '~git'