Correct handling of extensions for extra files

This commit is contained in:
Roland Meister
2010-06-07 22:28:48 +02:00
parent d54377153a
commit 13adb67063
2 changed files with 3 additions and 3 deletions

View File

@@ -34,7 +34,7 @@ epub_author = 'Georg Brandl'
epub_publisher = 'http://sphinx.pocoo.org/'
epub_scheme = 'url'
epub_identifier = epub_publisher
epub_pre_files = [('index', 'Welcome')]
epub_pre_files = [('index.html', 'Welcome')]
epub_exclude_files = ['_static/opensearch.xml', '_static/doctools.js',
'_static/jquery.js', '_static/searchtools.js', '_static/underscore.js',
'_static/basic.css', 'search.html']

View File

@@ -230,13 +230,13 @@ class EpubBuilder(StandaloneHTMLBuilder):
for file, text in reversed(self.config.epub_pre_files):
self.refnodes.insert(0, {
'level': 1,
'refuri': self.esc(file + '.html'),
'refuri': self.esc(file),
'text': ssp(self.esc(text))
})
for file, text in self.config.epub_post_files:
self.refnodes.append({
'level': 1,
'refuri': self.esc(file + '.html'),
'refuri': self.esc(file),
'text': ssp(self.esc(text))
})