summaryrefslogtreecommitdiff
path: root/docs/conf.py
diff options
context:
space:
mode:
authorTim Graham <timograham@gmail.com>2019-03-28 20:47:51 -0400
committerTim Graham <timograham@gmail.com>2019-03-28 20:47:51 -0400
commit879cc3da6249e920b8d54518a0ae06de835d7373 (patch)
tree6e92992b42db253dea0da238b89e1897c702f217 /docs/conf.py
parenta68c029e224cebe540da7447dbbd27993b4aa793 (diff)
Moved extlinks in docs config to allow using 'version' variable.
After a stable branch is created, 'master' will change to 'stable/' + version + '.x'.
Diffstat (limited to 'docs/conf.py')
-rw-r--r--docs/conf.py16
1 files changed, 8 insertions, 8 deletions
diff --git a/docs/conf.py b/docs/conf.py
index 625c383965..b51c8c03e2 100644
--- a/docs/conf.py
+++ b/docs/conf.py
@@ -43,14 +43,6 @@ extensions = [
"sphinx.ext.viewcode",
]
-extlinks = {
- 'commit': ('https://github.com/django/django/commit/%s', ''),
- 'cve': ('https://nvd.nist.gov/view/vuln/detail?vulnId=%s', 'CVE-'),
- # A file or directory. GitHub redirects from blob to tree if needed.
- 'source': ('https://github.com/django/django/blob/master/%s', ''),
- '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:
@@ -102,6 +94,14 @@ else:
# The "development version" of Django
django_next_version = '3.0'
+extlinks = {
+ 'commit': ('https://github.com/django/django/commit/%s', ''),
+ 'cve': ('https://nvd.nist.gov/view/vuln/detail?vulnId=%s', 'CVE-'),
+ # A file or directory. GitHub redirects from blob to tree if needed.
+ 'source': ('https://github.com/django/django/blob/master/%s', ''),
+ 'ticket': ('https://code.djangoproject.com/ticket/%s', '#'),
+}
+
# The language for content autogenerated by Sphinx. Refer to documentation
# for a list of supported languages.
# language = None