Add timestamp at the bottom of every page

This patch adds the timestamp at the bottom of every page using the
given time format.

Change-Id: Ie54165cc181cd4c959e803438a2bf33b5ec02730
This commit is contained in:
Sharat Sharma 2016-11-25 21:59:35 +05:30
parent a8f8bac7d1
commit a24941a943
2 changed files with 10 additions and 0 deletions

View File

@ -13,6 +13,7 @@
# limitations under the License.
import os
import subprocess
import sys
@ -94,6 +95,14 @@ htmlhelp_basename = '%sdoc' % project
# A list of ignored prefixes for module index sorting.
modindex_common_prefix = ['mistral.']
# If not '', a 'Last updated on:' timestamp is inserted at every page bottom,
# using the given strftime format.
# html_last_updated_fmt = '%b %d, %Y'
git_cmd = ["git", "log", "--pretty=format:'%ad, commit %h'", "--date=local",
"-n1"]
html_last_updated_fmt = subprocess.Popen(
git_cmd, stdout=subprocess.PIPE).communicate()[0]
# The name for this set of Sphinx documents. If None, it defaults to
# "<project> v<release> documentation".
html_title = 'Mistral'

View File

@ -12,6 +12,7 @@ requests-mock>=1.1 # Apache-2.0
sphinx!=1.3b1,<1.4,>=1.2.1 # BSD
sphinxcontrib-httpdomain # BSD
sphinxcontrib-pecanwsme>=0.8 # Apache-2.0
openstackdocstheme>=1.5.0 # Apache-2.0
testrepository>=0.0.18 # Apache-2.0/BSD
testtools>=1.4.0 # MIT
unittest2 # BSD