diff options
| author | Grzegorz Bialas <grzegorz@stackhpc.com> | 2024-08-23 15:36:14 +0200 |
|---|---|---|
| committer | Grzegorz Bialas <grzegorz@stackhpc.com> | 2024-08-27 14:09:05 +0200 |
| commit | c0ce3802ab30c2ffc00f34c7a630623821cba83b (patch) | |
| tree | b2859a6a7dfd58a19f9a2d40752dc9af3fb01375 /doc/source/conf.py | |
| parent | ab4a79d552e3d382bd31e8e08a5931c035db2c69 (diff) | |
| download | kolla-ansible-c0ce3802ab30c2ffc00f34c7a630623821cba83b.tar.gz kolla-ansible-c0ce3802ab30c2ffc00f34c7a630623821cba83b.zip | |
Fix links in docs for unmaintained releases
Links in docs for unmaintained branches (Yoga and Zed) are still
pointing to stable/<release> branches in repository. Instead they
should point to unmaintained/<release>. This patch aims to fix that.
Closes-Bug: #2066052
Change-Id: I7e30ee5754ca2ecf9d4a2d3519f9e0bdf3f0aeea
Diffstat (limited to 'doc/source/conf.py')
| -rw-r--r-- | doc/source/conf.py | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/doc/source/conf.py b/doc/source/conf.py index 375c477b1..35138b753 100644 --- a/doc/source/conf.py +++ b/doc/source/conf.py @@ -117,14 +117,26 @@ openstack_projects = [ # Global variables # For replacement, use in docs as |VAR_NAME| (note there's no space around variable name) -# When adding new variables, make sure you add them to GLOBAL_VARIABLE_MAP dictionary as well +# When adding new variables, that you want to use in documentation, make sure you add +# them to GLOBAL_VARIABLE_MAP dictionary as well. KOLLA_OPENSTACK_RELEASE_UNMAINTAINED is +# used only to denote unmaintained branches, and it is not intended to be used for +# replacing anything in documentation. KOLLA_OPENSTACK_RELEASE = openstackdocstheme.ext._get_series_name() +KOLLA_OPENSTACK_RELEASE_UNMAINTAINED = [ + 'yoga', + 'zed', +] + if KOLLA_OPENSTACK_RELEASE == 'latest': KOLLA_OPENSTACK_RELEASE = 'master' KOLLA_BRANCH_NAME = 'master' TESTED_RUNTIMES_GOVERNANCE_URL = 'https://governance.openstack.org/tc/reference/runtimes/' +elif KOLLA_OPENSTACK_RELEASE in KOLLA_OPENSTACK_RELEASE_UNMAINTAINED: + KOLLA_BRANCH_NAME = 'unmaintained/{}'.format(KOLLA_OPENSTACK_RELEASE) + TESTED_RUNTIMES_GOVERNANCE_URL =\ + 'https://governance.openstack.org/tc/reference/runtimes/{}.html'.format(KOLLA_OPENSTACK_RELEASE) else: KOLLA_BRANCH_NAME = 'stable/{}'.format(KOLLA_OPENSTACK_RELEASE) TESTED_RUNTIMES_GOVERNANCE_URL =\ |
