summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorScott Bahling <sbahling@mudgum.net>2013-03-23 18:28:56 +0100
committerScott Bahling <sbahling@mudgum.net>2013-03-23 18:28:56 +0100
commite92d8e5b4459527b13fbe7dfc78e890ddcbf0b7c (patch)
tree25579d33f7ddca048e3f61a33baae774e455b8e8
parentb517bd162198c9c2ef0f645e1722af84475be2ce (diff)
downloadpanfry-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.
-rwxr-xr-xpanfry/document.py5
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'))