[Python-checkins] r62633 - doctools/trunk/sphinx/builder.py
georg.brandl
python-checkins at python.org
Fri May 2 12:02:35 CEST 2008
Author: georg.brandl
Date: Fri May 2 12:02:35 2008
New Revision: 62633
Log:
Fix sidebar handling in the pickle builder.
Modified:
doctools/trunk/sphinx/builder.py
Modified: doctools/trunk/sphinx/builder.py
==============================================================================
--- doctools/trunk/sphinx/builder.py (original)
+++ doctools/trunk/sphinx/builder.py Fri May 2 12:02:35 2008
@@ -626,9 +626,9 @@
def handle_page(self, pagename, ctx, templatename='page.html',
outfilename=None):
ctx['current_page_name'] = pagename
- sidebarfile = self.config.html_sidebars.get(pagename, '')
+ sidebarfile = self.config.html_sidebars.get(pagename)
if sidebarfile:
- ctx['customsidebar'] = path.join(self.srcdir, sidebarfile)
+ ctx['customsidebar'] = sidebarfile
if not outfilename:
outfilename = path.join(self.outdir, os_path(pagename) + '.fpickle')
ensuredir(path.dirname(outfilename))
More information about the Python-checkins
mailing list