mirror of
https://github.com/sphinx-doc/sphinx.git
synced 2025-02-25 18:55:22 -06:00
Merge pull request #9238 from tk0miya/drop_old_deprecated_alias
refactor: Remove expired deprecated_alias
This commit is contained in:
commit
fe68f4381f
@ -13,7 +13,6 @@ from typing import Any, Dict
|
|||||||
|
|
||||||
from sphinx.application import Sphinx
|
from sphinx.application import Sphinx
|
||||||
from sphinx.builders.html import StandaloneHTMLBuilder
|
from sphinx.builders.html import StandaloneHTMLBuilder
|
||||||
from sphinx.deprecation import RemovedInSphinx40Warning, deprecated_alias
|
|
||||||
from sphinx.util import logging
|
from sphinx.util import logging
|
||||||
from sphinx.util.osutil import SEP, os_path
|
from sphinx.util.osutil import SEP, os_path
|
||||||
|
|
||||||
@ -46,17 +45,6 @@ class DirectoryHTMLBuilder(StandaloneHTMLBuilder):
|
|||||||
return outfilename
|
return outfilename
|
||||||
|
|
||||||
|
|
||||||
# for compatibility
|
|
||||||
deprecated_alias('sphinx.builders.html',
|
|
||||||
{
|
|
||||||
'DirectoryHTMLBuilder': DirectoryHTMLBuilder,
|
|
||||||
},
|
|
||||||
RemovedInSphinx40Warning,
|
|
||||||
{
|
|
||||||
'DirectoryHTMLBuilder': 'sphinx.builders.dirhtml.DirectoryHTMLBuilder',
|
|
||||||
})
|
|
||||||
|
|
||||||
|
|
||||||
def setup(app: Sphinx) -> Dict[str, Any]:
|
def setup(app: Sphinx) -> Dict[str, Any]:
|
||||||
app.setup_extension('sphinx.builders.html')
|
app.setup_extension('sphinx.builders.html')
|
||||||
|
|
||||||
|
@ -16,7 +16,6 @@ from docutils.nodes import Node
|
|||||||
|
|
||||||
from sphinx.application import Sphinx
|
from sphinx.application import Sphinx
|
||||||
from sphinx.builders.html import StandaloneHTMLBuilder
|
from sphinx.builders.html import StandaloneHTMLBuilder
|
||||||
from sphinx.deprecation import RemovedInSphinx40Warning, deprecated_alias
|
|
||||||
from sphinx.environment.adapters.toctree import TocTree
|
from sphinx.environment.adapters.toctree import TocTree
|
||||||
from sphinx.locale import __
|
from sphinx.locale import __
|
||||||
from sphinx.util import logging, progress_message
|
from sphinx.util import logging, progress_message
|
||||||
@ -187,18 +186,6 @@ class SingleFileHTMLBuilder(StandaloneHTMLBuilder):
|
|||||||
self.handle_page('opensearch', {}, 'opensearch.xml', outfilename=fn)
|
self.handle_page('opensearch', {}, 'opensearch.xml', outfilename=fn)
|
||||||
|
|
||||||
|
|
||||||
# for compatibility
|
|
||||||
deprecated_alias('sphinx.builders.html',
|
|
||||||
{
|
|
||||||
'SingleFileHTMLBuilder': SingleFileHTMLBuilder,
|
|
||||||
},
|
|
||||||
RemovedInSphinx40Warning,
|
|
||||||
{
|
|
||||||
'SingleFileHTMLBuilder':
|
|
||||||
'sphinx.builders.singlehtml.SingleFileHTMLBuilder',
|
|
||||||
})
|
|
||||||
|
|
||||||
|
|
||||||
def setup(app: Sphinx) -> Dict[str, Any]:
|
def setup(app: Sphinx) -> Dict[str, Any]:
|
||||||
app.setup_extension('sphinx.builders.html')
|
app.setup_extension('sphinx.builders.html')
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user