<p>Patrick Georgi has uploaded this change for <strong>review</strong>.</p><p><a href="https://review.coreboot.org/26897">View Change</a></p><pre style="font-family: monospace,monospace; white-space: pre-wrap;">Documentation: inject the current git revision into the website<br><br>Change-Id: I79cceca7373f8bdf9bbfba5d84b8fa589afa838b<br>Signed-off-by: Patrick Georgi <patrick@georgi.software><br>---<br>M Documentation/conf.py<br>1 file changed, 4 insertions(+), 3 deletions(-)<br><br></pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;">git pull ssh://review.coreboot.org:29418/coreboot refs/changes/97/26897/1</pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;"><span>diff --git a/Documentation/conf.py b/Documentation/conf.py</span><br><span>index 8fde81e..b8415c6 100644</span><br><span>--- a/Documentation/conf.py</span><br><span>+++ b/Documentation/conf.py</span><br><span>@@ -1,4 +1,5 @@</span><br><span> # -*- coding: utf-8 -*-</span><br><span style="color: hsl(120, 100%, 40%);">+import subprocess</span><br><span> </span><br><span> # Add any paths that contain templates here, relative to this directory.</span><br><span> templates_path = ['_templates']</span><br><span>@@ -18,10 +19,10 @@</span><br><span> # |version| and |release|, also used in various other places throughout the</span><br><span> # built documents.</span><br><span> #</span><br><span style="color: hsl(0, 100%, 40%);">-# The short X.Y version.</span><br><span style="color: hsl(0, 100%, 40%);">-version = u'4.7'</span><br><span> # The full version, including alpha/beta/rc tags.</span><br><span style="color: hsl(0, 100%, 40%);">-release = u'4.7' # TODO: use 'git describe'</span><br><span style="color: hsl(120, 100%, 40%);">+release = subprocess.check_output(('git', 'describe'))</span><br><span style="color: hsl(120, 100%, 40%);">+# The short X.Y version.</span><br><span style="color: hsl(120, 100%, 40%);">+version = release.split("-")[0]</span><br><span> </span><br><span> # The language for content autogenerated by Sphinx. Refer to documentation</span><br><span> # for a list of supported languages.</span><br><span></span><br></pre><p>To view, visit <a href="https://review.coreboot.org/26897">change 26897</a>. To unsubscribe, or for help writing mail filters, visit <a href="https://review.coreboot.org/settings">settings</a>.</p><div itemscope itemtype="http://schema.org/EmailMessage"><div itemscope itemprop="action" itemtype="http://schema.org/ViewAction"><link itemprop="url" href="https://review.coreboot.org/26897"/><meta itemprop="name" content="View Change"/></div></div>

<div style="display:none"> Gerrit-Project: coreboot </div>
<div style="display:none"> Gerrit-Branch: master </div>
<div style="display:none"> Gerrit-MessageType: newchange </div>
<div style="display:none"> Gerrit-Change-Id: I79cceca7373f8bdf9bbfba5d84b8fa589afa838b </div>
<div style="display:none"> Gerrit-Change-Number: 26897 </div>
<div style="display:none"> Gerrit-PatchSet: 1 </div>
<div style="display:none"> Gerrit-Owner: Patrick Georgi <pgeorgi@google.com> </div>