[coreboot-gerrit] Change in coreboot[master]: Documentation: inject the current git revision into the website
Patrick Georgi (Code Review)
gerrit at coreboot.org
Wed Jun 6 17:05:36 CEST 2018
Patrick Georgi has uploaded this change for review. ( https://review.coreboot.org/26897
Change subject: Documentation: inject the current git revision into the website
......................................................................
Documentation: inject the current git revision into the website
Change-Id: I79cceca7373f8bdf9bbfba5d84b8fa589afa838b
Signed-off-by: Patrick Georgi <patrick at georgi.software>
---
M Documentation/conf.py
1 file changed, 4 insertions(+), 3 deletions(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/97/26897/1
diff --git a/Documentation/conf.py b/Documentation/conf.py
index 8fde81e..b8415c6 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 @@
# |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.
--
To view, visit https://review.coreboot.org/26897
To unsubscribe, or for help writing mail filters, visit https://review.coreboot.org/settings
Gerrit-Project: coreboot
Gerrit-Branch: master
Gerrit-MessageType: newchange
Gerrit-Change-Id: I79cceca7373f8bdf9bbfba5d84b8fa589afa838b
Gerrit-Change-Number: 26897
Gerrit-PatchSet: 1
Gerrit-Owner: Patrick Georgi <pgeorgi at google.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.coreboot.org/pipermail/coreboot-gerrit/attachments/20180606/4fbe1313/attachment.html>
More information about the coreboot-gerrit
mailing list