From cb94c3af229b9283fac221720ad76f408efa6924 Mon Sep 17 00:00:00 2001 From: Ben McGinnes Date: Mon, 14 Apr 2014 11:24:05 +1000 Subject: [PATCH] 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. --- docs/conf.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/docs/conf.py b/docs/conf.py index 92534d9..b4d1833 100644 --- a/docs/conf.py +++ b/docs/conf.py @@ -231,7 +231,7 @@ man_pages = [ epub_title = u'pythonguide' epub_author = u'Kenneth Reitz' epub_publisher = u'Kenneth Reitz' -epub_copyright = u'2010, Kenneth Reitz' +epub_copyright = u'2014, Kenneth Reitz' # The language of the text. It defaults to the language option # or en if the language is not set. @@ -256,7 +256,9 @@ epub_copyright = u'2010, Kenneth Reitz' #epub_post_files = [] # A list of files that should not be packed into the epub file. -#epub_exclude_files = [] +epub_exclude_files = [ + ('search.html', 'Search'), +] # The depth of the table of contents in toc.ncx. #epub_tocdepth = 3