From fca677fa438879cbb3ebb828268cb2b976e514d8 Mon Sep 17 00:00:00 2001 From: Tim Graham Date: Tue, 19 Aug 2014 10:22:51 -0400 Subject: Added sphinx extension to ease generation of ticket links. --- docs/conf.py | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) (limited to 'docs/conf.py') 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' -- cgit v1.3