diff options
author | Armin Ronacher <armin.ronacher@active-4.com> | 2008-06-26 08:22:26 +0000 |
---|---|---|
committer | Armin Ronacher <armin.ronacher@active-4.com> | 2008-06-26 08:22:26 +0000 |
commit | ba99598c656dc608222b9ff68d10d45f686852bd (patch) | |
tree | 114db1ad7d9d6fd468e30e855cdf48b8be01c789 /sphinx/builder.py | |
parent | eca63279c59793bc48e7ed2e25b17c119a9bb110 (diff) | |
download | sphinx-git-ba99598c656dc608222b9ff68d10d45f686852bd.tar.gz |
Removed last "web" bits from the pickle builder.
Diffstat (limited to 'sphinx/builder.py')
-rw-r--r-- | sphinx/builder.py | 9 |
1 files changed, 4 insertions, 5 deletions
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): |