mirror of
https://github.com/django/django.git
synced 2025-07-04 17:59:13 +00:00
[3.2.x] Bumped minimum Sphinx version to 4.5.0.
Related Sphinx changes: - https://github.com/sphinx-doc/sphinx/pull/8898 - https://github.com/sphinx-doc/sphinx/issues/8326 Backport of ebf25555bbed3e9112d4b726575d60b242daf48a from main.
This commit is contained in:
parent
1a9098166e
commit
4a5d98ee0a
18
docs/conf.py
18
docs/conf.py
@ -32,7 +32,7 @@ sys.path.append(abspath(join(dirname(__file__), "_ext")))
|
|||||||
# -- General configuration -----------------------------------------------------
|
# -- General configuration -----------------------------------------------------
|
||||||
|
|
||||||
# If your documentation needs a minimal Sphinx version, state it here.
|
# If your documentation needs a minimal Sphinx version, state it here.
|
||||||
needs_sphinx = '1.6.0'
|
needs_sphinx = "4.5.0"
|
||||||
|
|
||||||
# Add any Sphinx extension module names here, as strings. They can be extensions
|
# Add any Sphinx extension module names here, as strings. They can be extensions
|
||||||
# coming with Sphinx (named 'sphinx.ext.*') or your custom ones.
|
# coming with Sphinx (named 'sphinx.ext.*') or your custom ones.
|
||||||
@ -70,8 +70,8 @@ source_suffix = '.txt'
|
|||||||
# The encoding of source files.
|
# The encoding of source files.
|
||||||
# source_encoding = 'utf-8-sig'
|
# source_encoding = 'utf-8-sig'
|
||||||
|
|
||||||
# The master toctree document.
|
# The root toctree document.
|
||||||
master_doc = 'contents'
|
root_doc = "contents"
|
||||||
|
|
||||||
# General substitutions.
|
# General substitutions.
|
||||||
project = 'Django'
|
project = 'Django'
|
||||||
@ -102,12 +102,12 @@ else:
|
|||||||
django_next_version = '4.0'
|
django_next_version = '4.0'
|
||||||
|
|
||||||
extlinks = {
|
extlinks = {
|
||||||
'bpo': ('https://bugs.python.org/issue%s', 'bpo-'),
|
"bpo": ("https://bugs.python.org/issue?@action=redirect&bpo=%s", "bpo-%s"),
|
||||||
'commit': ('https://github.com/django/django/commit/%s', ''),
|
"commit": ("https://github.com/django/django/commit/%s", "%s"),
|
||||||
'cve': ('https://nvd.nist.gov/vuln/detail/CVE-%s', 'CVE-'),
|
"cve": ("https://nvd.nist.gov/vuln/detail/CVE-%s", "CVE-%s"),
|
||||||
# A file or directory. GitHub redirects from blob to tree if needed.
|
# A file or directory. GitHub redirects from blob to tree if needed.
|
||||||
'source': ('https://github.com/django/django/blob/main/%s', ''),
|
"source": ("https://github.com/django/django/blob/main/%s", "%s"),
|
||||||
'ticket': ('https://code.djangoproject.com/ticket/%s', '#'),
|
"ticket": ("https://code.djangoproject.com/ticket/%s", "#%s"),
|
||||||
}
|
}
|
||||||
|
|
||||||
# The language for content autogenerated by Sphinx. Refer to documentation
|
# The language for content autogenerated by Sphinx. Refer to documentation
|
||||||
@ -304,7 +304,7 @@ man_pages = [(
|
|||||||
# List of tuples (startdocname, targetname, title, author, dir_entry,
|
# List of tuples (startdocname, targetname, title, author, dir_entry,
|
||||||
# description, category, toctree_only)
|
# description, category, toctree_only)
|
||||||
texinfo_documents = [(
|
texinfo_documents = [(
|
||||||
master_doc, "django", "", "", "Django",
|
root_doc, "django", "", "", "Django",
|
||||||
"Documentation of the Django framework", "Web development", False
|
"Documentation of the Django framework", "Web development", False
|
||||||
)]
|
)]
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user