summaryrefslogtreecommitdiff
path: root/Documentation
diff options
context:
space:
mode:
authorPatrick Georgi <patrick@georgi.software>2018-06-06 17:03:21 +0200
committerPatrick Georgi <pgeorgi@google.com>2018-06-07 15:10:43 +0000
commit5ce400178a31cab7598cf6244b906ea435753115 (patch)
treeb88adb1c532f4dfb0863af2e07d5b2931ae5507c /Documentation
parentc57eeb9c8c0f56165c8907ea7b9ae97f0a79b663 (diff)
downloadcoreboot-5ce400178a31cab7598cf6244b906ea435753115.tar.xz
Documentation: inject the current git revision into the website
Change-Id: I79cceca7373f8bdf9bbfba5d84b8fa589afa838b Signed-off-by: Patrick Georgi <patrick@georgi.software> Reviewed-on: https://review.coreboot.org/26897 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Philipp Deppenwiese <zaolin.daisuki@gmail.com>
Diffstat (limited to 'Documentation')
-rw-r--r--Documentation/conf.py7
1 files changed, 4 insertions, 3 deletions
diff --git a/Documentation/conf.py b/Documentation/conf.py
index 8fde81e9b6..b8415c6579 100644
--- a/Documentation/conf.py
+++ b/Documentation/conf.py
@@ -1,4 +1,5 @@
# -*- coding: utf-8 -*-
+import subprocess
# Add any paths that contain templates here, relative to this directory.
templates_path = ['_templates']
@@ -18,10 +19,10 @@ author = u'the coreboot project'
# |version| and |release|, also used in various other places throughout the
# built documents.
#
-# The short X.Y version.
-version = u'4.7'
# The full version, including alpha/beta/rc tags.
-release = u'4.7' # TODO: use 'git describe'
+release = subprocess.check_output(('git', 'describe'))
+# The short X.Y version.
+version = release.split("-")[0]
# The language for content autogenerated by Sphinx. Refer to documentation
# for a list of supported languages.