summaryrefslogtreecommitdiff
path: root/docs/conf.py
diff options
context:
space:
mode:
Diffstat (limited to 'docs/conf.py')
-rw-r--r--docs/conf.py12
1 files changed, 6 insertions, 6 deletions
diff --git a/docs/conf.py b/docs/conf.py
index 32d4cc6682..a276b17ac8 100644
--- a/docs/conf.py
+++ b/docs/conf.py
@@ -38,12 +38,16 @@ needs_sphinx = '1.6.0'
# coming with Sphinx (named 'sphinx.ext.*') or your custom ones.
extensions = [
"djangodocs",
+ 'sphinx.ext.extlinks',
"sphinx.ext.intersphinx",
"sphinx.ext.viewcode",
- "ticket_role",
- "cve_role",
]
+extlinks = {
+ 'cve': ('https://nvd.nist.gov/view/vuln/detail?vulnId=%s', 'CVE-'),
+ 'ticket': ('https://code.djangoproject.com/ticket/%s', '#'),
+}
+
# 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.
if 'spelling' in sys.argv:
@@ -365,7 +369,3 @@ epub_cover = ('', 'epub-cover.html')
# If false, no index is generated.
# epub_use_index = True
-
-# -- custom extension options --------------------------------------------------
-cve_url = 'https://nvd.nist.gov/view/vuln/detail?vulnId=%s'
-ticket_url = 'https://code.djangoproject.com/ticket/%s'