aboutsummaryrefslogtreecommitdiffstats
path: root/manual/conf.py
diff options
context:
space:
mode:
authorJay Berkenbilt <jberkenbilt@users.noreply.github.com>2023-12-16 17:53:47 +0100
committerGitHub <noreply@github.com>2023-12-16 17:53:47 +0100
commit1d053905852b407eef472b0ef7886d10bb650383 (patch)
treeea3cc619a139a1fc8f96266a8bdb3432e4671400 /manual/conf.py
parent290742b069756218cd9d2075ea18b9fa60fc56ca (diff)
parent762f232146f3edc234c898b48e9daacf72ee9577 (diff)
downloadqpdf-1d053905852b407eef472b0ef7886d10bb650383.tar.zst
Merge pull request #1081 from jberkenbilt/future-build
Future build
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',