diff options
| author | Scott Bahling <sbahling@mudgum.net> | 2013-03-23 18:28:56 +0100 |
|---|---|---|
| committer | Scott Bahling <sbahling@mudgum.net> | 2013-03-23 18:28:56 +0100 |
| commit | e92d8e5b4459527b13fbe7dfc78e890ddcbf0b7c (patch) | |
| tree | 25579d33f7ddca048e3f61a33baae774e455b8e8 /panfry | |
| parent | b517bd162198c9c2ef0f645e1722af84475be2ce (diff) | |
| download | panfry-e92d8e5b4459527b13fbe7dfc78e890ddcbf0b7c.tar.gz panfry-e92d8e5b4459527b13fbe7dfc78e890ddcbf0b7c.tar.xz panfry-e92d8e5b4459527b13fbe7dfc78e890ddcbf0b7c.zip | |
Default to html5 output
Disable numbered sections for multi-page html until
we find a way to handle this properly.
Diffstat (limited to 'panfry')
| -rwxr-xr-x | panfry/document.py | 5 |
1 files changed, 4 insertions, 1 deletions
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')) |
