summaryrefslogtreecommitdiff
path: root/docs/conf.py
diff options
context:
space:
mode:
authorTim Graham <timograham@gmail.com>2014-08-19 10:22:51 -0400
committerTim Graham <timograham@gmail.com>2014-08-19 17:40:50 -0400
commitfca677fa438879cbb3ebb828268cb2b976e514d8 (patch)
treeee3e5308704b19afaea94ba37b8cab761084f74f /docs/conf.py
parent5f2542f12a90cfcfb7be776424ef2f7b200df006 (diff)
Added sphinx extension to ease generation of ticket links.
Diffstat (limited to 'docs/conf.py')
-rw-r--r--docs/conf.py10
1 files changed, 9 insertions, 1 deletions
diff --git a/docs/conf.py b/docs/conf.py
index af84ce7e7c..11b6d9afdd 100644
--- a/docs/conf.py
+++ b/docs/conf.py
@@ -31,7 +31,12 @@ needs_sphinx = '1.0'
# Add any Sphinx extension module names here, as strings. They can be extensions
# coming with Sphinx (named 'sphinx.ext.*') or your custom ones.
-extensions = ["djangodocs", "sphinx.ext.intersphinx", "sphinx.ext.viewcode"]
+extensions = [
+ "djangodocs",
+ "sphinx.ext.intersphinx",
+ "sphinx.ext.viewcode",
+ "ticket_role",
+]
# Spelling check needs an additional module that is not installed by default.
# Add it only if spelling check is requested so docs can be generated without it.
@@ -349,3 +354,6 @@ epub_cover = ('', 'epub-cover.html')
# If false, no index is generated.
#epub_use_index = True
+
+# -- ticket options ------------------------------------------------------------
+ticket_url = 'https://code.djangoproject.com/ticket/%s'