Revert "Fix the incorrect git source url"

This reverts commit f0744a1675.

Manual configuration should be necessary only in the rarest of cases.
Revert this in preparation for a more automated case.

Change-Id: I18902de42d95d9427165e6f8ffa6cab303ea62ca
Related-Bug: #1732630
This commit is contained in:
Stephen Finucane 2018-01-09 11:04:03 +00:00
parent 0ba64b09e9
commit 62c8f36d93
3 changed files with 1 additions and 14 deletions

View File

@ -78,14 +78,6 @@ Using the theme
bug_project = '721'
bug_tag = ''
#. Set the specific Git URL.
``giturl``
The path to the ``source`` directory of the documentation at ``git.openstack.org``.
If the documentation doesn't locate in ``doc/source`` directory, this option should
be set. Otherwise, the default is
``https://git.openstack.org/cgit/openstack/PROJECT_NAME/tree/doc/source/``.
#. Enable the "last-updated" information by setting the format for the
timestamp::

View File

@ -103,11 +103,8 @@ def _html_page_context(app, pagename, templatename, context, doctree):
logger.warn('Cannot get gitsha from git repository.')
_html_context_data['gitsha'] = 'unknown'
giturl = app.config.giturl
repo_name = app.config.repository_name
if giturl:
_html_context_data['giturl'] = app.config.giturl
elif repo_name:
if repo_name:
_html_context_data['giturl'] = _giturl.format(repo_name)
bug_project = app.config.bug_project
if bug_project:
@ -129,7 +126,6 @@ def setup(app):
app.add_config_value('repository_name', '', 'env')
app.add_config_value('bug_project', '', 'env')
app.add_config_value('bug_tag', '', 'env')
app.add_config_value('giturl', '', 'env')
app.add_html_theme(
'openstackdocs',
os.path.abspath(os.path.dirname(__file__)) + '/theme/openstackdocs',

View File

@ -54,7 +54,6 @@ master_doc = 'index'
# General information about the project.
project = u'OpenStackdocstheme Release Notes'
copyright = u'2017, OpenStack Documentation team'
giturl = u'https://git.openstack.org/cgit/openstack/openstackdocstheme/tree/releasenotes/source'
# Release notes are version independent.
# The full version, including alpha/beta/rc tags.