summaryrefslogtreecommitdiff
path: root/sphinx/builders/dirhtml.py
diff options
context:
space:
mode:
authorTakeshi KOMIYA <i.tkomiya@gmail.com>2019-04-07 19:29:52 +0900
committerTakeshi KOMIYA <i.tkomiya@gmail.com>2019-04-07 19:29:52 +0900
commitdf05d9254d8098534de4db25e9f6de02c78fff2c (patch)
treee170986fe398afc42261695c05ecf85a3ed533a3 /sphinx/builders/dirhtml.py
parentd501bc136ce5069e97a5f347dbc694717dddced8 (diff)
parent70ed093b8b45d19beec391def65125a69cb04518 (diff)
downloadsphinx-git-df05d9254d8098534de4db25e9f6de02c78fff2c.tar.gz
Merge branch '2.0'
Diffstat (limited to 'sphinx/builders/dirhtml.py')
-rw-r--r--sphinx/builders/dirhtml.py9
1 files changed, 9 insertions, 0 deletions
diff --git a/sphinx/builders/dirhtml.py b/sphinx/builders/dirhtml.py
index 7ab6fad98..d5d61c273 100644
--- a/sphinx/builders/dirhtml.py
+++ b/sphinx/builders/dirhtml.py
@@ -11,6 +11,7 @@
from os import path
from sphinx.builders.html import StandaloneHTMLBuilder
+from sphinx.deprecation import RemovedInSphinx40Warning, deprecated_alias
from sphinx.util import logging
from sphinx.util.osutil import SEP, os_path
@@ -55,6 +56,14 @@ class DirectoryHTMLBuilder(StandaloneHTMLBuilder):
self.globalcontext['no_search_suffix'] = True
+# for compatibility
+deprecated_alias('sphinx.builders.html',
+ {
+ 'DirectoryHTMLBuilder': DirectoryHTMLBuilder,
+ },
+ RemovedInSphinx40Warning)
+
+
def setup(app):
# type: (Sphinx) -> Dict[str, Any]
app.setup_extension('sphinx.builders.html')