Skip to content

Commit eeedb20

Browse files
committed
Fix "report a bug" launchpad project
For docs set the launchpad project users report bugs against to "python-openstacksdk". Users can report bugs using the "bug icon" that will directly link to the launchpad project, it currently goes to "openstack-manuals" which is wrong for this content. This variable is used by openstackdocstheme 1.2.6. Also, update comments for the variables passed to openstackdocstheme. Change-Id: Id036c6373092673ce0c54be1b64ea87d1de89b88 Related-Bug: #1524476
1 parent f47cd8e commit eeedb20

File tree

1 file changed

+11
-5
lines changed

1 file changed

+11
-5
lines changed

doc/source/conf.py

Lines changed: 11 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -55,18 +55,24 @@
5555
# The full version, including alpha/beta/rc tags.
5656
release = '1.0'
5757

58-
# We ask git for the SHA checksum
59-
# The git SHA checksum is used by "log-a-bug"
58+
# A few variables have to be set for the log-a-bug feature.
59+
# giturl: The location of conf.py on Git. Must be set manually.
60+
# gitsha: The SHA checksum of the bug description. Extracted from git log.
61+
# bug_tag: Tag for categorizing the bug. Must be set manually.
62+
# bug_project: Launchpad project to file bugs against.
63+
# These variables are passed to the logabug code via html_context.
6064
giturl = u'http://git.openstack.org/cgit/openstack/python-openstacksdk/tree/doc/source'
6165
git_cmd = "/usr/bin/git log | head -n1 | cut -f2 -d' '"
6266
gitsha = os.popen(git_cmd).read().strip('\n')
63-
# tag that reported bugs will be tagged with when using the "log a bug"
64-
# clickthrough on each page, such as user-guide or install-guide
6567
bug_tag = "docs"
6668
# source tree
6769
pwd = os.getcwd()
6870
# html_context allows us to pass arbitrary values into the html template
69-
html_context = { "pwd":pwd, "gitsha":gitsha, "bug_tag": bug_tag}
71+
html_context = {"pwd": pwd,
72+
"gitsha": gitsha,
73+
"bug_tag": bug_tag,
74+
"giturl": giturl,
75+
"bug_project": "python-openstacksdk"}
7076

7177
# If true, '()' will be appended to :func: etc. cross-reference text.
7278
add_function_parentheses = True

0 commit comments

Comments
 (0)