Skip to contentSkip to conversation

Documentation: Provide default values for version/release

PATCH Applied Andrey Smirnov 2 participants 2 messages Sep 8, 2019 – Sep 9, 2019 Documentation

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 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.

---
 Documentation/conf.py | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
Documentation/conf.py +2 -2
index ec6ec0470b..bcd8633c91 100644
@@ -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.
Signature · 7 lines
2.21.0


_______________________________________________
barebox mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/barebox
Applied
#1 lore raw
Quoted 8 lines · Andrey Smirnov

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.

---
 Documentation/conf.py | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

Applied, thanks

Sascha

Signature · 9 lines
Pengutronix e.K.                           |                             |
Industrial Linux Solutions                 | http://www.pengutronix.de/  |
Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0    |
Amtsgericht Hildesheim, HRA 2686           | Fax:   +49-5121-206917-5555 |

_______________________________________________
barebox mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/barebox