Skip to content

Commit cb94c3a

Browse files
committed
Added search.html to epub_exclude_files
Added search.html to epub_exclude_files to avoid these errors: Epubcheck Version 3.0 Validating against EPUB version 2.0 ERROR: pythonguide.epub/search.html(17,57): attribute "id" not allowed here; expected attribute "charset", "defer", "src" or "xml:space" ERROR: pythonguide.epub/search.html(51,32): element "form" not allowed anywhere; expected the element end-tag, text or element "a", "abbr", "acronym", "address", "applet", "b", "bdo", "big", "blockquote", "br", "cite", "code", "del", "dfn", "div", "dl", "em", "h1", "h2", "h3", "h4", "h5", "h6", "hr", "i", "iframe", "img", "ins", "kbd", "map", "noscript", "ns:svg", "object", "ol", "p", "pre", "q", "samp", "script", "small", "span", "strong", "sub", "sup", "table", "tt", "ul" or "var" (with xmlns:ns="http://www.w3.org/2000/svg") ERROR: pythonguide.epub/search.html(54,66): element "form" not allowed anywhere; expected the element end-tag, text or element "a", "abbr", "acronym", "address", "applet", "b", "bdo", "big", "blockquote", "br", "cite", "code", "del", "dfn", "div", "dl", "em", "h1", "h2", "h3", "h4", "h5", "h6", "hr", "i", "iframe", "img", "ins", "kbd", "map", "noscript", "ns:svg", "object", "ol", "p", "pre", "q", "samp", "script", "small", "span", "strong", "sub", "sup", "table", "tt", "ul" or "var" (with xmlns:ns="http://www.w3.org/2000/svg") It should be noted that ePub does not use javascript for anything (or any scripting), so all those other pages with the quick search function do bad things to ePub files. I'll send through the rest of the errors in a separate issue.
1 parent 10d0370 commit cb94c3a

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

docs/conf.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -231,7 +231,7 @@
231231
epub_title = u'pythonguide'
232232
epub_author = u'Kenneth Reitz'
233233
epub_publisher = u'Kenneth Reitz'
234-
epub_copyright = u'2010, Kenneth Reitz'
234+
epub_copyright = u'2014, Kenneth Reitz'
235235

236236
# The language of the text. It defaults to the language option
237237
# or en if the language is not set.
@@ -256,7 +256,9 @@
256256
#epub_post_files = []
257257

258258
# A list of files that should not be packed into the epub file.
259-
#epub_exclude_files = []
259+
epub_exclude_files = [
260+
('search.html', 'Search'),
261+
]
260262

261263
# The depth of the table of contents in toc.ncx.
262264
#epub_tocdepth = 3

0 commit comments

Comments
 (0)