From e49f7089cb7a98833278baa2a1760b2d4c7f5e24 Mon Sep 17 00:00:00 2001 From: "zhang.lei" Date: Mon, 15 Jan 2018 02:25:49 +0000 Subject: [PATCH] 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 --- doc/source/conf.py | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/doc/source/conf.py b/doc/source/conf.py index 5957d33..29af839 100644 --- a/doc/source/conf.py +++ b/doc/source/conf.py @@ -86,20 +86,16 @@ release = version_info.version_string_with_vcs() version = version_info.canonical_version_string() # 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. # Automatically extracted from git log. # bug_tag: Tag for categorizing the bug. Must be set manually. # These variables are passed to the logabug code via html_context. -giturl = ("https://git.openstack.org/cgit/openstack/{0}" - "/tree/doc/source").format(target_name) git_cmd = "/usr/bin/git log | head -n1 | cut -f2 -d' '" gitsha = os.popen(git_cmd).read().strip('\n') bug_project = project.lower() bug_title = "Documentation bug" -html_context = {"gitsha": gitsha, "giturl": giturl, - "bug_tag": "docs", "bug_title": bug_title, - "bug_project": bug_project} +html_context = {"gitsha": gitsha, "bug_tag": "docs", + "bug_title": bug_title, "bug_project": bug_project} # The language for content autogenerated by Sphinx. Refer to documentation # for a list of supported languages.