summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRyota MIBU <r-mibu@cq.jp.nec.com>2016-08-11 20:12:11 +0900
committerRyota MIBU <r-mibu@cq.jp.nec.com>2016-08-11 20:45:15 +0900
commit7e24b564adec5c913109ca485024b58b32e11ef6 (patch)
tree59ebb552a5af3b13266b58ef42a5bb248cb24728
parent6314e937d1e03fe71edc695a0148b5d3e77071ad (diff)
add version, builddate and copyright in sidebar
Change-Id: I652de718ebc1084230499eb7bc19e2fd9ab90159 Signed-off-by: Ryota MIBU <r-mibu@cq.jp.nec.com>
-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'"