summaryrefslogtreecommitdiffstats
path: root/scripts
diff options
context:
space:
mode:
authorJohannes Löthberg <johannes@kyriasis.com>2015-05-10 18:31:45 +0200
committerJohannes Löthberg <johannes@kyriasis.com>2015-05-10 18:31:45 +0200
commitf1b0372d1cad18dd5e70d04d473b0feb469253c7 (patch)
treef6bae34a85276b5380e4a73f12eb8c85f2100e3a /scripts
parent178d76291fd50501092da78bd6cd38fa4b3d0469 (diff)
downloadwebsite-f1b0372d1cad18dd5e70d04d473b0feb469253c7.tar.xz
Add pygments syntax highlighting
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/bupa3
1 files changed, 2 insertions, 1 deletions
diff --git a/scripts/bupa b/scripts/bupa
index e87ca4c..3802982 100755
--- a/scripts/bupa
+++ b/scripts/bupa
@@ -29,7 +29,8 @@ class Page(object):
def reST_to_html(s, id_prefix='id'):
formated = core.publish_parts(s, writer_name='html4css1',
settings_overrides={'footnote_references': 'superscript',
- 'auto_id_prefix': str(id_prefix) + '-',})
+ 'auto_id_prefix': str(id_prefix) + '-',
+ 'syntax_highlight': 'short'})
return formated['fragment']
def filename_to_id(file_name):