From 2d76fd9cff4fbf87ef1cbe82783e11ba4f156d26 Mon Sep 17 00:00:00 2001 From: Andreas Jaeger Date: Sun, 21 Apr 2019 16:13:45 +0200 Subject: [PATCH] Update for OpenDev change Use the new OpenDev URLs everywhere, follow move of repositories. Change-Id: I3dd8c6deff91c4cc3b8958977e73f371bdeb82a0 --- README.rst | 2 +- bin/docstheme-build-translated.sh | 2 +- doc/source/index.rst | 5 +++-- openstackdocstheme/ext.py | 2 +- openstackdocstheme/theme/openstackdocs/static/js/docs.js | 2 +- releasenotes/notes/opendev-5c528b2b4c737d59.yaml | 4 ++++ tox.ini | 2 +- 7 files changed, 12 insertions(+), 7 deletions(-) create mode 100644 releasenotes/notes/opendev-5c528b2b4c737d59.yaml diff --git a/README.rst b/README.rst index 5b22dc61..122db126 100644 --- a/README.rst +++ b/README.rst @@ -39,5 +39,5 @@ References * Free software: Apache License, Version 2.0 * Documentation: https://docs.openstack.org/openstackdocstheme/latest/ * Release notes: https://docs.openstack.org/releasenotes/openstackdocstheme/ -* Source: https://git.openstack.org/cgit/openstack/openstackdocstheme +* Source: https://opendev.org/openstack/openstackdocstheme * Bugs: https://launchpad.net/openstack-doc-tools diff --git a/bin/docstheme-build-translated.sh b/bin/docstheme-build-translated.sh index c0f4d9b6..2ce336d1 100755 --- a/bin/docstheme-build-translated.sh +++ b/bin/docstheme-build-translated.sh @@ -165,7 +165,7 @@ for locale in `find ${DIRECTORY}/source/locale/ -maxdepth 1 -type d` ; do # Note that this is the counterpart to how we push # translations to the server. The code lives in - # http://git.openstack.org/cgit/openstack-infra/openstack-zuul-jobs/tree/roles/prepare-zanata-client/files/common_translation_update.sh + # https://opendev.org/openstack/openstack-zuul-jobs/src/roles/prepare-zanata-client/files/common_translation_update.sh # in function extract_messages_doc: # While Sphinx generates a single pot file per source file in the top # directory, is generates a file per directory for any subdirectory. diff --git a/doc/source/index.rst b/doc/source/index.rst index 76652f81..76510c96 100644 --- a/doc/source/index.rst +++ b/doc/source/index.rst @@ -49,7 +49,8 @@ Using the theme html_theme = 'openstackdocs' -#. Set the options to link to the git repository and bug tracker. +#. Set the options to link to the git repository on + ``https://opendev.org`` and bug tracker. ``repository_name`` The prefix and repo name. For example, @@ -82,7 +83,7 @@ Using the theme One example for a project using StoryBoard:: # openstackdocstheme options - repository_name = 'openstack-infra/infra-manual' + repository_name = 'openstack/infra-manual' use_storyboard = True #. Remove the options that will be automatically configured by the theme. diff --git a/openstackdocstheme/ext.py b/openstackdocstheme/ext.py index fc015547..eaa1fe43 100644 --- a/openstackdocstheme/ext.py +++ b/openstackdocstheme/ext.py @@ -28,7 +28,7 @@ from openstackdocstheme import paths _series = None _project = None -_giturl = 'https://git.openstack.org/cgit/{}/tree/{}' +_giturl = 'https://opendev.org/{}/src/{}' _html_context_data = None logger = logging.getLogger(__name__) diff --git a/openstackdocstheme/theme/openstackdocs/static/js/docs.js b/openstackdocstheme/theme/openstackdocs/static/js/docs.js index 17dad4dc..64f380d2 100644 --- a/openstackdocstheme/theme/openstackdocs/static/js/docs.js +++ b/openstackdocstheme/theme/openstackdocs/static/js/docs.js @@ -102,7 +102,7 @@ $('div.deprecated > p').prepend('