summaryrefslogtreecommitdiff
path: root/sphinx/builders/devhelp.py
diff options
context:
space:
mode:
authorTakeshi KOMIYA <i.tkomiya@gmail.com>2016-07-04 10:46:27 +0900
committerTakeshi KOMIYA <i.tkomiya@gmail.com>2016-07-06 23:25:45 +0900
commit8a45aa5e59b87703803bfb44c696afd06b609335 (patch)
tree87adf714a05cb011b9e6213feefcf9d53c181229 /sphinx/builders/devhelp.py
parentfb7e6a22acc20bbd8c0824e22f6a89cac85281ec (diff)
downloadsphinx-git-8a45aa5e59b87703803bfb44c696afd06b609335.tar.gz
Now all builders and domains work as built-in extensions
Diffstat (limited to 'sphinx/builders/devhelp.py')
-rw-r--r--sphinx/builders/devhelp.py8
1 files changed, 8 insertions, 0 deletions
diff --git a/sphinx/builders/devhelp.py b/sphinx/builders/devhelp.py
index 5382a828a..0f88e9f38 100644
--- a/sphinx/builders/devhelp.py
+++ b/sphinx/builders/devhelp.py
@@ -18,6 +18,7 @@ from os import path
from docutils import nodes
from sphinx import addnodes
+from sphinx.util.osutil import make_filename
from sphinx.builders.html import StandaloneHTMLBuilder
try:
@@ -130,3 +131,10 @@ class DevhelpBuilder(StandaloneHTMLBuilder):
# Dump the XML file
with comp_open(path.join(outdir, outname + '.devhelp'), 'w') as f:
tree.write(f, 'utf-8')
+
+
+def setup(app):
+ app.setup_extension('sphinx.builders.html')
+ app.add_builder(DevhelpBuilder)
+
+ app.add_config_value('devhelp_basename', lambda self: make_filename(self.project), None)