path: root/Documentation
diff options
authorAndrey Smirnov <>2019-09-07 17:04:32 -0700
committerSascha Hauer <>2019-09-09 10:48:59 +0200
commitcd6fe5bd7395c6d0e8bb3629a8d0e376a7984855 (patch)
tree42aeec1e20273edc1e74f41d0300161becad6b6d /Documentation
parentc1388eaf5d7021c8519f0dc8943be16d1c126454 (diff)
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 <> Signed-off-by: Sascha Hauer <>
Diffstat (limited to 'Documentation')
1 files changed, 2 insertions, 2 deletions
diff --git a/Documentation/ b/Documentation/
index ec6ec04..bcd8633 100644
--- a/Documentation/
+++ b/Documentation/
@@ -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.