summaryrefslogtreecommitdiff
path: root/sphinx/builders/singlehtml.py
diff options
context:
space:
mode:
authorTakeshi KOMIYA <i.tkomiya@gmail.com>2019-04-05 01:05:22 +0900
committerTakeshi KOMIYA <i.tkomiya@gmail.com>2019-04-05 01:16:25 +0900
commit9dfbfbf16b9873de3ff94984e40b5bc41e28005e (patch)
treeee891c47020ab9564f518bd4b596fbb96a34f4f4 /sphinx/builders/singlehtml.py
parentd34302a41514f82075dea8d1e6b1088f6e57768a (diff)
downloadsphinx-git-9dfbfbf16b9873de3ff94984e40b5bc41e28005e.tar.gz
Fix #6245: circular import error on importing SerializingHTMLBuilder
Diffstat (limited to 'sphinx/builders/singlehtml.py')
-rw-r--r--sphinx/builders/singlehtml.py9
1 files changed, 9 insertions, 0 deletions
diff --git a/sphinx/builders/singlehtml.py b/sphinx/builders/singlehtml.py
index 1ee5a37b1..068d1c1c2 100644
--- a/sphinx/builders/singlehtml.py
+++ b/sphinx/builders/singlehtml.py
@@ -13,6 +13,7 @@ from os import path
from docutils import nodes
from sphinx.builders.html import StandaloneHTMLBuilder
+from sphinx.deprecation import RemovedInSphinx40Warning, deprecated_alias
from sphinx.environment.adapters.toctree import TocTree
from sphinx.locale import __
from sphinx.util import logging
@@ -201,6 +202,14 @@ class SingleFileHTMLBuilder(StandaloneHTMLBuilder):
self.handle_page('opensearch', {}, 'opensearch.xml', outfilename=fn)
+# for compatibility
+deprecated_alias('sphinx.builders.html',
+ {
+ 'SingleFileHTMLBuilder': SingleFileHTMLBuilder,
+ },
+ RemovedInSphinx40Warning)
+
+
def setup(app):
# type: (Sphinx) -> Dict[str, Any]
app.setup_extension('sphinx.builders.html')