diff options
| author | Tim Graham <timograham@gmail.com> | 2019-03-28 20:32:17 -0400 |
|---|---|---|
| committer | Tim Graham <timograham@gmail.com> | 2019-03-28 20:39:38 -0400 |
| commit | 2fb602f58181fa07e416474a35fef1945a6f8df3 (patch) | |
| tree | de9f06e9f71b13c47f8e1ea93ff9a5da24ae1fa4 /docs/conf.py | |
| parent | ffdacc5879fcfb5b1857340ac874314de9aa490e (diff) | |
[2.2.x] Used extlinks for Django's source code.
Backport of a68c029e224cebe540da7447dbbd27993b4aa793 from master.
Diffstat (limited to 'docs/conf.py')
| -rw-r--r-- | docs/conf.py | 14 |
1 files changed, 8 insertions, 6 deletions
diff --git a/docs/conf.py b/docs/conf.py index 4306abd6dd..11d637cb5c 100644 --- a/docs/conf.py +++ b/docs/conf.py @@ -43,12 +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-'), - '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: @@ -100,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/stable/' + version + '.x/%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 |
