bpo-40204: Allow pre-Sphinx 3 syntax in the doc (GH-21844)
Enable Sphinx 3.2 "c_allow_pre_v3" option and disable the c_warn_on_allowed_pre_v3 option to make the documentation compatible with Sphinx 2 and Sphinx 3.
This commit is contained in:
parent
6e0b788881
commit
423e77d6de
10
Doc/conf.py
10
Doc/conf.py
|
@ -228,3 +228,13 @@ linkcheck_ignore = [r'https://bugs.python.org/(issue)?\d+',
|
|||
|
||||
# Relative filename of the reference count data file.
|
||||
refcount_file = 'data/refcounts.dat'
|
||||
|
||||
# Sphinx 2 and Sphinx 3 compatibility
|
||||
# -----------------------------------
|
||||
|
||||
# bpo-40204: Allow Sphinx 2 syntax in the C domain
|
||||
c_allow_pre_v3 = True
|
||||
|
||||
# bpo-40204: Disable warnings on Sphinx 2 syntax of the C domain since the
|
||||
# documentation is built with -W (warnings treated as errors).
|
||||
c_warn_on_allowed_pre_v3 = False
|
||||
|
|
|
@ -0,0 +1,3 @@
|
|||
Enable Sphinx 3.2 ``c_allow_pre_v3`` option and disable
|
||||
``c_warn_on_allowed_pre_v3`` option to make the documentation compatible
|
||||
with Sphinx 2 and Sphinx 3.
|
Loading…
Reference in New Issue