Browse Source

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: If4189b08a126f5ee8c513992487fccc08b8871dc
tags/17.0.0.0b3
zhang.lei 1 year ago
parent
commit
e49f7089cb
1 changed files with 2 additions and 6 deletions
  1. 2
    6
      doc/source/conf.py

+ 2
- 6
doc/source/conf.py View File

@@ -86,20 +86,16 @@ release = version_info.version_string_with_vcs()
86 86
 version = version_info.canonical_version_string()
87 87
 
88 88
 # A few variables have to be set for the log-a-bug feature.
89
-#   giturl: The location of conf.py on Git. Must be set manually.
90 89
 #   gitsha: The SHA checksum of the bug description.
91 90
 #           Automatically extracted from git log.
92 91
 #   bug_tag: Tag for categorizing the bug. Must be set manually.
93 92
 # These variables are passed to the logabug code via html_context.
94
-giturl = ("https://git.openstack.org/cgit/openstack/{0}"
95
-          "/tree/doc/source").format(target_name)
96 93
 git_cmd = "/usr/bin/git log | head -n1 | cut -f2 -d' '"
97 94
 gitsha = os.popen(git_cmd).read().strip('\n')
98 95
 bug_project = project.lower()
99 96
 bug_title = "Documentation bug"
100
-html_context = {"gitsha": gitsha, "giturl": giturl,
101
-                "bug_tag": "docs", "bug_title": bug_title,
102
-                "bug_project": bug_project}
97
+html_context = {"gitsha": gitsha, "bug_tag": "docs",
98
+                "bug_title": bug_title, "bug_project": bug_project}
103 99
 
104 100
 # The language for content autogenerated by Sphinx. Refer to documentation
105 101
 # for a list of supported languages.

Loading…
Cancel
Save