diff options
author | Takeshi KOMIYA <i.tkomiya@gmail.com> | 2019-04-07 19:29:52 +0900 |
---|---|---|
committer | Takeshi KOMIYA <i.tkomiya@gmail.com> | 2019-04-07 19:29:52 +0900 |
commit | df05d9254d8098534de4db25e9f6de02c78fff2c (patch) | |
tree | e170986fe398afc42261695c05ecf85a3ed533a3 /sphinx/builders/singlehtml.py | |
parent | d501bc136ce5069e97a5f347dbc694717dddced8 (diff) | |
parent | 70ed093b8b45d19beec391def65125a69cb04518 (diff) | |
download | sphinx-git-df05d9254d8098534de4db25e9f6de02c78fff2c.tar.gz |
Merge branch '2.0'
Diffstat (limited to 'sphinx/builders/singlehtml.py')
-rw-r--r-- | sphinx/builders/singlehtml.py | 9 |
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') |