mirror of
https://github.com/sphinx-doc/sphinx.git
synced 2025-02-25 18:55:22 -06:00
Correct handling of extensions for extra files
This commit is contained in:
@@ -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']
|
||||
|
||||
@@ -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))
|
||||
})
|
||||
|
||||
|
||||
Reference in New Issue
Block a user