mirror of
https://github.com/django/django.git
synced 2025-10-06 16:50:52 +00:00
Replaced CVE/ticket roles with extlinks.
This commit is contained in:
parent
7b7fb2eca5
commit
44f98f7880
3 changed files with 6 additions and 72 deletions
12
docs/conf.py
12
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'
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue