summaryrefslogtreecommitdiffstats
path: root/scripts
diff options
context:
space:
mode:
authorJohannes Löthberg <johannes@kyriasis.com>2014-10-20 17:17:21 +0200
committerJohannes Löthberg <johannes@kyriasis.com>2014-10-20 17:17:21 +0200
commit3e0a06445b130a68f9a2401b5d8b52e9283b92ec (patch)
treebaf06cfe86bc7f83be276339cba480587c3d51e1 /scripts
parent26f838287a059e7642f10df9d5c0abd80fa3e490 (diff)
downloadwebsite-3e0a06445b130a68f9a2401b5d8b52e9283b92ec.tar.xz
bupa: use fragment instead of html_body to get rid of document divs
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/bupa4
1 files changed, 1 insertions, 3 deletions
diff --git a/scripts/bupa b/scripts/bupa
index d0630f5..7220ceb 100755
--- a/scripts/bupa
+++ b/scripts/bupa
@@ -6,12 +6,10 @@ Options:
"""
from jinja2 import Environment, FileSystemLoader
import glob, yaml, docopt
-
from docutils import core
-from docutils.writers.html4css1 import Writer
def reST_to_html(s):
- return core.publish_parts(s, writer_name='html4css1')['html_body']
+ return core.publish_parts(s, writer_name='html4css1')['fragment']
def filename_to_id(file_name):
return int(file_name.split('/')[-1].