summaryrefslogtreecommitdiff
path: root/docs/conf.py
diff options
context:
space:
mode:
authorTim Graham <timograham@gmail.com>2019-03-28 20:32:17 -0400
committerGitHub <noreply@github.com>2019-03-28 20:32:17 -0400
commita68c029e224cebe540da7447dbbd27993b4aa793 (patch)
tree37f01cfc4eace55401c768fd35c506669b7b83b0 /docs/conf.py
parent8e675e2bd8366adf5d0b579accfef75a7b1bc3bf (diff)
Used extlinks for Django's source code.
Diffstat (limited to 'docs/conf.py')
-rw-r--r--docs/conf.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/docs/conf.py b/docs/conf.py
index 7df6c853c9..625c383965 100644
--- a/docs/conf.py
+++ b/docs/conf.py
@@ -46,6 +46,8 @@ extensions = [
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', '#'),
}