Remove the deprecated "giturl" option
From openstackdocstheme 1.18.0, valid Git URLs can be retrieved by openstackdocstheme[1], we do not need giturl option anymore. [1] https://review.openstack.org/532163 Change-Id: I1848f43d337d40248fce3f50554e4b5ba294396c
This commit is contained in:
parent
8daa33e384
commit
1149329d9c
@ -60,12 +60,10 @@ project = u'python-openstacksdk'
|
||||
copyright = u'2017, Various members of the OpenStack Foundation'
|
||||
|
||||
# A few variables have to be set for the log-a-bug feature.
|
||||
# giturl: The location of conf.py on Git. Must be set manually.
|
||||
# gitsha: The SHA checksum of the bug description. Extracted from git log.
|
||||
# bug_tag: Tag for categorizing the bug. Must be set manually.
|
||||
# bug_project: Launchpad project to file bugs against.
|
||||
# These variables are passed to the logabug code via html_context.
|
||||
giturl = u'http://git.openstack.org/cgit/openstack/python-openstacksdk/tree/doc/source'
|
||||
git_cmd = "/usr/bin/git log | head -n1 | cut -f2 -d' '"
|
||||
try:
|
||||
gitsha = os.popen(git_cmd).read().strip('\n')
|
||||
@ -74,13 +72,11 @@ except Exception:
|
||||
gitsha = "unknown"
|
||||
|
||||
bug_tag = "docs"
|
||||
# source tree
|
||||
pwd = os.getcwd()
|
||||
# html_context allows us to pass arbitrary values into the html template
|
||||
html_context = {"pwd": pwd,
|
||||
"gitsha": gitsha,
|
||||
"bug_tag": bug_tag,
|
||||
"giturl": giturl,
|
||||
"bug_project": "python-openstacksdk"}
|
||||
|
||||
# If true, '()' will be appended to :func: etc. cross-reference text.
|
||||
|
Loading…
x
Reference in New Issue
Block a user