Fix doc generation for python 3
The html_last_updated_fmt sphinx setting was providing a byte string where sphinx expected a str, which produced warnings (and therefore failures): WARNING: The config value `html_last_updated_fmt' has type `bytes', expected to ['str']. The solution provided is copied from cinder's solution. https://review.openstack.org/#/c/433081 Change-Id: I4dcce0779598aca028d4b102ab72ec207b039a0e
This commit is contained in:
parent
3d17d4d4f7
commit
90e1d5ce2b
|
@ -158,8 +158,8 @@ pygments_style = 'sphinx'
|
|||
# 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]
|
||||
html_last_updated_fmt = subprocess.check_output(
|
||||
git_cmd).decode('utf-8')
|
||||
|
||||
# If true, SmartyPants will be used to convert quotes and dashes to
|
||||
# typographically correct entities.
|
||||
|
|
Loading…
Reference in New Issue