summaryrefslogtreecommitdiff
path: root/Documentation
diff options
context:
space:
mode:
Diffstat (limited to 'Documentation')
-rw-r--r--Documentation/conf.py7
-rw-r--r--Documentation/meson.build7
2 files changed, 7 insertions, 7 deletions
diff --git a/Documentation/conf.py b/Documentation/conf.py
index 970edf3d..bffd1d8f 100644
--- a/Documentation/conf.py
+++ b/Documentation/conf.py
@@ -23,11 +23,8 @@ project = 'libcamera'
copyright = '2018-2019, The libcamera documentation authors'
author = u'Kieran Bingham, Jacopo Mondi, Laurent Pinchart, Niklas Söderlund'
-# The short X.Y version
-version = ''
-# The full version, including alpha/beta/rc tags
-release = '0.1'
-
+# Version information is provided by the build environment, through the
+# sphinx command line.
# -- General configuration ---------------------------------------------------
diff --git a/Documentation/meson.build b/Documentation/meson.build
index 629e8531..2db80b39 100644
--- a/Documentation/meson.build
+++ b/Documentation/meson.build
@@ -1,4 +1,4 @@
-doc_install_dir = join_paths(get_option('datadir'), 'doc', 'libcamera-@0@'.format(api_version))
+doc_install_dir = join_paths(get_option('datadir'), 'doc', 'libcamera-@0@'.format(meson.project_version()))
#
# Doxygen
@@ -47,8 +47,11 @@ if sphinx.found()
'index.rst',
]
+ release = 'release=' + meson.project_version()
+
custom_target('documentation',
- command : [sphinx, '-q', '-W', '-b', 'html', meson.current_source_dir(), '@OUTPUT@'],
+ command : [sphinx, '-D', release, '-q', '-W', '-b', 'html',
+ meson.current_source_dir(), '@OUTPUT@'],
input : docs_sources,
output : 'html',
build_by_default : true,