Commit 44ef34db authored by Max Kellermann's avatar Max Kellermann

doc/conf.py: read version number from meson.build

parent 5781f223
...@@ -38,7 +38,9 @@ author = 'Max Kellermann' ...@@ -38,7 +38,9 @@ author = 'Max Kellermann'
# built documents. # built documents.
# #
# The short X.Y version. # 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. # The full version, including alpha/beta/rc tags.
#release = version + '~git' #release = version + '~git'
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment