summaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
authormasklinn <github.com@masklinn.net>2013-11-26 19:45:35 +0100
committermasklinn <github.com@masklinn.net>2013-11-26 19:45:35 +0100
commitf5960f3116c6a615f44133c66cf17ed561d063f8 (patch)
tree1ccc39b5e021d73c9eb82a39f798f896bb5fd453 /docs
parentd764b35bc3910b8f67ff811752df615afa7667f6 (diff)
downloadbabel-f5960f3116c6a615f44133c66cf17ed561d063f8.tar.gz
Add links from changelog entries to their ticket via extlink
Supports links to the new github (``:gh:``) and the old trac (``:trac:``). The prefixes are used to keep the same reference style as pre-extlinks in the final output (aside from a few entries at the bottom of 1.0, trac references were all in the form ``ticket #42``).
Diffstat (limited to 'docs')
-rw-r--r--docs/conf.py8
1 files changed, 7 insertions, 1 deletions
diff --git a/docs/conf.py b/docs/conf.py
index b1467c7..c84ebae 100644
--- a/docs/conf.py
+++ b/docs/conf.py
@@ -27,7 +27,8 @@ sys.path.append(os.path.abspath('_themes'))
# Add any Sphinx extension module names here, as strings. They can be extensions
# coming with Sphinx (named 'sphinx.ext.*') or your custom ones.
extensions = ['sphinx.ext.autodoc',
- 'sphinx.ext.intersphinx']
+ 'sphinx.ext.intersphinx',
+ 'sphinx.ext.extlinks']
# Add any paths that contain templates here, relative to this directory.
templates_path = ['_templates']
@@ -254,3 +255,8 @@ texinfo_documents = [
intersphinx_mapping = {
'http://docs.python.org/2': None,
}
+
+extlinks = {
+ 'gh': ('https://github.com/mitsuhiko/babel/issues/%s', '#'),
+ 'trac': ('http://babel.edgewall.org/ticket/%s', 'ticket #'),
+}