aboutsummaryrefslogtreecommitdiffstats
path: root/manual/conf.py
diff options
context:
space:
mode:
Diffstat (limited to 'manual/conf.py')
-rw-r--r--manual/conf.py8
1 files changed, 6 insertions, 2 deletions
diff --git a/manual/conf.py b/manual/conf.py
index b95eb3c6..9d4eb5ec 100644
--- a/manual/conf.py
+++ b/manual/conf.py
@@ -15,8 +15,12 @@ sys.path.append(os.path.abspath("./_ext"))
project = 'QPDF'
copyright = '2005-2023, Jay Berkenbilt'
author = 'Jay Berkenbilt'
-# make_dist and the CI build lexically find the release version from this file.
-release = '11.7.0'
+here = os.path.dirname(os.path.realpath(__file__))
+with open(f'{here}/../CMakeLists.txt') as f:
+ for line in f.readlines():
+ if line.strip().startswith('VERSION '):
+ release = line.replace('VERSION', '').strip()
+ break
version = release
extensions = [
'sphinx_rtd_theme',