summaryrefslogtreecommitdiff
path: root/releasenotes/source/conf.py
diff options
context:
space:
mode:
authorDean Troyer <dtroyer@gmail.com>2016-06-03 16:56:55 -0500
committerDean Troyer <dtroyer@gmail.com>2016-06-06 10:21:47 -0500
commit658dc23f26e6313dc56eba373f0406e1eac4efdd (patch)
tree4fd30461261d24621c33aff94ff6f90e50e60338 /releasenotes/source/conf.py
parent55a7ba890d9c3a53b7728efe41053b79ba1e60d3 (diff)
downloadpython-openstackclient-658dc23f26e6313dc56eba373f0406e1eac4efdd.tar.gz
Fix release note links to (now) external docs
Moving the old release notes into the Reno releasenots tree broke the embedded :doc: roles. Restore these using sphinx.ext.extlinks to manage the URL to the OSC docs. Add the following aliases: * lpbug - generic Launchpad bug :lpbug:`123456` * oscbp - OSC blueprints :oscbp:`Blue Print <bp-name>` * oscdoc - OSC Docs :oscdoc:`Comamnd List <command-list>` Change-Id: Iecfdd666d961c35f0ccb3b9f10df1d2620cb099f
Diffstat (limited to 'releasenotes/source/conf.py')
-rw-r--r--releasenotes/source/conf.py20
1 files changed, 20 insertions, 0 deletions
diff --git a/releasenotes/source/conf.py b/releasenotes/source/conf.py
index 1b6929e2..12ed68df 100644
--- a/releasenotes/source/conf.py
+++ b/releasenotes/source/conf.py
@@ -40,8 +40,28 @@
extensions = [
'oslosphinx',
'reno.sphinxext',
+ 'sphinx.ext.extlinks',
]
+# Set aliases for extlinks
+# * lpbug - generic Launchpad bug :lpbug:`123456`
+# * oscbp - OSC blueprints :oscbp:`Blue Print <bp-name>`
+# * oscdoc - OSC Docs :oscdoc:`Comamnd List <command-list>`
+extlinks = {
+ 'lpbug': (
+ 'https://bugs.launchpad.net/bugs/%s',
+ 'Bug ',
+ ),
+ 'oscbp': (
+ 'https://blueprints.launchpad.net/python-openstackclient/+spec/%s',
+ '',
+ ),
+ 'oscdoc': (
+ 'http://docs.openstack.org/developer/python-openstackclient/%s.html',
+ '',
+ ),
+}
+
# Add any paths that contain templates here, relative to this directory.
templates_path = ['_templates']