mirror of
https://github.com/sphinx-doc/sphinx.git
synced 2026-09-03 20:52:55 -05:00
deprecate SphinxRSTFileInput
This commit is contained in:
@@ -48,6 +48,7 @@ Deprecated
|
||||
* ``sphinx.config.check_unicode()``
|
||||
* ``sphinx.ext.autodoc.importer._MockImporter``
|
||||
* ``sphinx.ext.doctest.doctest_encode()``
|
||||
* ``sphinx.io.SphinxRSTFileInput``
|
||||
* ``sphinx.testing.util.remove_unicode_literal()``
|
||||
* ``sphinx.util.force_decode()``
|
||||
* ``sphinx.util.get_matching_docs()`` is deprecated
|
||||
|
||||
@@ -197,6 +197,11 @@ The following is a list of deprecated interfaces.
|
||||
- 3.0
|
||||
- N/A
|
||||
|
||||
* - ``sphinx.io.SphinxRSTFileInput``
|
||||
- 2.0
|
||||
- 3.0
|
||||
- N/A
|
||||
|
||||
* - ``sphinx.writers.latex.LaTeXTranslator._make_visit_admonition()``
|
||||
- 2.0
|
||||
- 3.0
|
||||
|
||||
+3
-1
@@ -252,6 +252,9 @@ class SphinxRSTFileInput(SphinxBaseFileInput):
|
||||
|
||||
def read(self):
|
||||
# type: () -> StringList
|
||||
warnings.warn('SphinxRSTFileInput is deprecated.',
|
||||
RemovedInSphinx30Warning, stacklevel=2)
|
||||
|
||||
inputstring = super(SphinxRSTFileInput, self).read()
|
||||
lines = string2lines(inputstring, convert_whitespace=True)
|
||||
content = StringList()
|
||||
@@ -320,7 +323,6 @@ def read_doc(app, env, filename):
|
||||
def setup(app):
|
||||
# type: (Sphinx) -> Dict[unicode, Any]
|
||||
app.registry.add_source_input(SphinxFileInput)
|
||||
app.registry.add_source_input(SphinxRSTFileInput)
|
||||
|
||||
return {
|
||||
'version': 'builtin',
|
||||
|
||||
Reference in New Issue
Block a user