summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVu Cong Tuan <tuanvc@vn.fujitsu.com>2017-06-16 21:29:42 +0700
committerVu Cong Tuan <tuanvc@vn.fujitsu.com>2017-06-16 21:30:43 +0700
commit65f76051d5bf2783b6825c733f217f03ef537f78 (patch)
tree3f8a28ff9bf434daa22867b8eb75de63639b2c2d
parent8c54a0cd9dec4aa4571f4e2b1655b301731fd614 (diff)
Fix html_last_updated_fmt for Python3
html_last_updated_fmt option is interpreted as a byte string in python3, causing Sphinx build to break. This patch makes it utf-8 string. Change-Id: Ic85b544a5d91f0f820737480fd123cbebdc94894
Notes
Notes (review): Code-Review+2: Adrian Otto <aotto@aotto.com> Code-Review+2: Shu Muto <shu-mutou@rf.jp.nec.com> Workflow+1: Shu Muto <shu-mutou@rf.jp.nec.com> Verified+2: Jenkins Submitted-by: Jenkins Submitted-at: Mon, 19 Jun 2017 04:43:18 +0000 Reviewed-on: https://review.openstack.org/474875 Project: openstack/magnum-ui Branch: refs/heads/master
-rw-r--r--doc/source/conf.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/doc/source/conf.py b/doc/source/conf.py
index c5a7446..6c2374f 100644
--- a/doc/source/conf.py
+++ b/doc/source/conf.py
@@ -277,8 +277,7 @@ html_static_path = ['_static']
277# html_last_updated_fmt = '%b %d, %Y' 277# html_last_updated_fmt = '%b %d, %Y'
278git_cmd = ["git", "log", "--pretty=format:'%ad, commit %h'", "--date=local", 278git_cmd = ["git", "log", "--pretty=format:'%ad, commit %h'", "--date=local",
279 "-n1"] 279 "-n1"]
280html_last_updated_fmt = subprocess.check_output(git_cmd, 280html_last_updated_fmt = subprocess.check_output(git_cmd).decode('utf-8')
281 stdin=subprocess.PIPE)
282 281
283# If true, SmartyPants will be used to convert quotes and dashes to 282# If true, SmartyPants will be used to convert quotes and dashes to
284# typographically correct entities. 283# typographically correct entities.