summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRyota MIBU <r-mibu@cq.jp.nec.com>2016-08-21 13:45:18 +0000
committerGerrit Code Review <gerrit@172.30.200.206>2016-08-21 13:45:18 +0000
commita6032ccb3f438ecca5059223fcf630926888c4c0 (patch)
tree2d4fad0d0aa78fa12f3ae75d79db1e0b4b243d79
parentce17ebe54844509678de7d8d7c58fdbc136dd134 (diff)
parent7e24b564adec5c913109ca485024b58b32e11ef6 (diff)
Merge "add version, builddate and copyright in sidebar"
-rw-r--r--etc/pagemenu.html3
-rwxr-xr-xscripts/docs-build.sh1
2 files changed, 4 insertions, 0 deletions
diff --git a/etc/pagemenu.html b/etc/pagemenu.html
index 67601b655..f5c951ae0 100644
--- a/etc/pagemenu.html
+++ b/etc/pagemenu.html
@@ -17,5 +17,8 @@
{# Note: single HTML won't have source rst #}
<li><a href="//pdfcrowd.com/url_to_pdf/">Save to PDF</a></li>
{%- endif %}
+ <li>Version: {{version}}</li>
+ <li>Build Date: {{last_updated}}</li>
+ <li>&copy; {{copyright}}</li>
</ul>
</div>
diff --git a/scripts/docs-build.sh b/scripts/docs-build.sh
index 7d8abf1ca..f3fd68980 100755
--- a/scripts/docs-build.sh
+++ b/scripts/docs-build.sh
@@ -125,6 +125,7 @@ function prepare_config() {
add_config "$_conf" 'master_doc' "'index'"
add_config "$_conf" 'pygments_style' "'sphinx'"
add_config "$_conf" 'html_use_index' "False"
+ add_config "$_conf" 'html_last_updated_fmt' "'%b %d, %Y'"
add_config "$_conf" 'html_logo' "'opnfv-logo.png'"
add_config "$_conf" 'latex_domain_indices' "False"
add_config "$_conf" 'latex_logo' "'opnfv-logo.png'"