summaryrefslogtreecommitdiffstats
path: root/Documentation/conf.py
diff options
context:
space:
mode:
authorAndrey Smirnov <andrew.smirnov@gmail.com>2019-09-07 17:04:32 -0700
committerSascha Hauer <s.hauer@pengutronix.de>2019-09-09 10:48:59 +0200
commitcd6fe5bd7395c6d0e8bb3629a8d0e376a7984855 (patch)
tree42aeec1e20273edc1e74f41d0300161becad6b6d /Documentation/conf.py
parentc1388eaf5d7021c8519f0dc8943be16d1c126454 (diff)
downloadbarebox-cd6fe5bd7395c6d0e8bb3629a8d0e376a7984855.tar.gz
barebox-cd6fe5bd7395c6d0e8bb3629a8d0e376a7984855.tar.xz
Documentation: Provide default values for version/release
Provide default values for version/release so it would be possible to run Sphinx outside of the build system. Useful for rst-sphinx backend of flycheck in Emacs, for example. Signed-off-by: Andrey Smirnov <andrew.smirnov@gmail.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'Documentation/conf.py')
-rw-r--r--Documentation/conf.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/Documentation/conf.py b/Documentation/conf.py
index ec6ec0470b..bcd8633c91 100644
--- a/Documentation/conf.py
+++ b/Documentation/conf.py
@@ -53,9 +53,9 @@ copyright = u'2014, The barebox project'
# The short X.Y version.
import os
-version = os.environ["KERNELVERSION"]
+version = os.environ.get("KERNELVERSION", 'unknown version')
# The full version, including alpha/beta/rc tags.
-release = os.environ["KERNELRELEASE"]
+release = os.environ.get("KERNELRELEASE", 'unknown release')
# The language for content autogenerated by Sphinx. Refer to documentation
# for a list of supported languages.