From e92d8e5b4459527b13fbe7dfc78e890ddcbf0b7c Mon Sep 17 00:00:00 2001 From: Scott Bahling Date: Sat, 23 Mar 2013 18:28:56 +0100 Subject: Default to html5 output Disable numbered sections for multi-page html until we find a way to handle this properly. --- panfry/document.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'panfry') diff --git a/panfry/document.py b/panfry/document.py index d95d447..2b1cf01 100755 --- a/panfry/document.py +++ b/panfry/document.py @@ -218,6 +218,7 @@ class Document: def publish_html(self, pub_path): pandoc.set_cwd(None) + for page in self.pages: print("generating %s..." % page.htmlfile) template_file = NamedTemporaryFile(mode='w', @@ -231,10 +232,12 @@ class Document: doc.add_argument('template=%s' % template_file.name) doc.add_argument('css=%s' % self.css_file) for option in self.pandoc_options: + if option == 'number-sections': + continue doc.add_argument(option) doc.markdown = '%s\n%s' % (self.header.source, self.expand_int_links(page.markdown)) - content = doc.html + content = doc.html5 write_file(os.path.join(pub_path, page.htmlfile), unicode(content, 'utf-8')) -- cgit v1.2.3