diff --git a/sphinx/builder.py b/sphinx/builder.py index deb9aa123..851eea783 100644 --- a/sphinx/builder.py +++ b/sphinx/builder.py @@ -711,13 +711,16 @@ class PickleHTMLBuilder(StandaloneHTMLBuilder): return docname + SEP def handle_page(self, pagename, ctx, templatename='page.html', - outfilename=None): + outfilename=None, event_arg=None): ctx['current_page_name'] = pagename sidebarfile = self.config.html_sidebars.get(pagename) if sidebarfile: ctx['customsidebar'] = sidebarfile if not outfilename: outfilename = path.join(self.outdir, os_path(pagename) + self.out_suffix) + + self.app.emit('html-page-context', pagename, templatename, ctx, event_arg) + ensuredir(path.dirname(outfilename)) f = open(outfilename, 'wb') try: @@ -758,10 +761,6 @@ class PickleHTMLBuilder(StandaloneHTMLBuilder): # touch 'last build' file, used by the web application to determine # when to reload its environment and clear the cache open(path.join(self.outdir, LAST_BUILD_FILENAME), 'w').close() - # copy configuration file if not present - if not path.isfile(path.join(self.outdir, 'webconf.py')): - shutil.copyfile(path.join(path.dirname(__file__), 'web', 'webconf.py'), - path.join(self.outdir, 'webconf.py')) class HTMLHelpBuilder(StandaloneHTMLBuilder): diff --git a/sphinx/quickstart.py b/sphinx/quickstart.py index 0831cd967..5fb5123cd 100644 --- a/sphinx/quickstart.py +++ b/sphinx/quickstart.py @@ -257,9 +257,7 @@ pickle: \tmkdir -p %(rbuilddir)s/pickle %(rbuilddir)s/doctrees \t$(SPHINXBUILD) -b pickle $(ALLSPHINXOPTS) %(rbuilddir)s/pickle \t@echo -\t@echo "Build finished; now you can process the pickle files or run" -\t@echo " sphinx-web %(rbuilddir)s/pickle" -\t@echo "to start the sphinx-web server." +\t@echo "Build finished; now you can process the pickle files." web: pickle