mirror of
https://github.com/sphinx-doc/sphinx.git
synced 2025-02-25 18:55:22 -06:00
Deprecate string style base for env.doc2path()
This commit is contained in:
parent
8bd2f921f9
commit
0e4c23fc35
1
CHANGES
1
CHANGES
@ -16,6 +16,7 @@ Deprecated
|
|||||||
----------
|
----------
|
||||||
|
|
||||||
* The ``suffix`` argument of ``env.doc2path()`` is deprecated.
|
* The ``suffix`` argument of ``env.doc2path()`` is deprecated.
|
||||||
|
* The string style ``base`` argument of ``env.doc2path()`` is deprecated.
|
||||||
* ``sphinx.ext.doctest.doctest_encode()``
|
* ``sphinx.ext.doctest.doctest_encode()``
|
||||||
* ``sphinx.testing.util.remove_unicode_literal()``
|
* ``sphinx.testing.util.remove_unicode_literal()``
|
||||||
|
|
||||||
|
@ -121,6 +121,11 @@ The following is a list of deprecated interface.
|
|||||||
- 4.0
|
- 4.0
|
||||||
- N/A
|
- N/A
|
||||||
|
|
||||||
|
* - string style ``base`` argument of ``BuildEnvironment.doc2path()``
|
||||||
|
- 2.0
|
||||||
|
- 4.0
|
||||||
|
- ``os.path.join()``
|
||||||
|
|
||||||
* - ``sphinx.ext.doctest.doctest_encode()``
|
* - ``sphinx.ext.doctest.doctest_encode()``
|
||||||
- 2.0
|
- 2.0
|
||||||
- 4.0
|
- 4.0
|
||||||
|
@ -342,6 +342,9 @@ class BuildEnvironment(object):
|
|||||||
if suffix:
|
if suffix:
|
||||||
warnings.warn('The suffix argument for doc2path() is deprecated.',
|
warnings.warn('The suffix argument for doc2path() is deprecated.',
|
||||||
RemovedInSphinx40Warning)
|
RemovedInSphinx40Warning)
|
||||||
|
if base not in (True, None):
|
||||||
|
warnings.warn('The string style base argument for doc2path() is deprecated.',
|
||||||
|
RemovedInSphinx40Warning)
|
||||||
|
|
||||||
docname = docname.replace(SEP, path.sep)
|
docname = docname.replace(SEP, path.sep)
|
||||||
if suffix is None:
|
if suffix is None:
|
||||||
|
Loading…
Reference in New Issue
Block a user