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

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

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

Loading…
Cancel
Save