diff options
author | David Robillard <d@drobilla.net> | 2014-08-05 17:20:57 +0000 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2014-08-05 17:20:57 +0000 |
commit | 28e3aa5f942878e2f5bfe9ebdcdd76637354f7bb (patch) | |
tree | c342d7a85baee5a22ae7f6f075c46321ec46793d /plugins | |
parent | 66260cf4c1df72e0b6bb9cb7f8f794a2ecb223d4 (diff) | |
download | lv2-28e3aa5f942878e2f5bfe9ebdcdd76637354f7bb.tar.xz |
Improve book style.
Diffstat (limited to 'plugins')
-rw-r--r-- | plugins/eg05-scope.lv2/examploscope.c | 2 | ||||
-rwxr-xr-x | plugins/literasc.py | 4 | ||||
-rw-r--r-- | plugins/wscript | 7 |
3 files changed, 9 insertions, 4 deletions
diff --git a/plugins/eg05-scope.lv2/examploscope.c b/plugins/eg05-scope.lv2/examploscope.c index b7fb2f3..6d1e953 100644 --- a/plugins/eg05-scope.lv2/examploscope.c +++ b/plugins/eg05-scope.lv2/examploscope.c @@ -164,7 +164,7 @@ connect_port(LV2_Handle handle, This function forges a message for sending a vector of raw data. The object is a http://lv2plug.in/ns/ext/atom#Blank[Blank] with a few properties, like: - [source,txt] + [source,n3] -------- [] a sco:RawAudio ; diff --git a/plugins/literasc.py b/plugins/literasc.py index 7638e6f..0491227 100755 --- a/plugins/literasc.py +++ b/plugins/literasc.py @@ -87,7 +87,7 @@ def format_ttl_source(filename, file): chunk = line else: if is_comment: - output += format_code('txt', chunk) + output += format_code('n3', chunk) in_comment = True chunk = line.strip().lstrip('# ') + ' \n' else: @@ -96,7 +96,7 @@ def format_ttl_source(filename, file): if in_comment: return output + format_text(chunk) else: - return output + format_code('txt', chunk) + return output + format_code('n3', chunk) def gen(out, filenames): for filename in filenames: diff --git a/plugins/wscript b/plugins/wscript index 63d01ae..c3ead30 100644 --- a/plugins/wscript +++ b/plugins/wscript @@ -24,11 +24,16 @@ def build(bld): files += bld.path.ant_glob('%s/*.ttl' % i) files += bld.path.ant_glob('%s/*.c' % i) + # Compile book sources into book.txt asciidoc source bld(rule = bld_book_src, source = files, target = 'book.txt') - bld(rule = 'asciidoc -b html -o ${TGT} ${SRC}', + # Run asciidoc to generate book.html + stylesdir = bld.path.find_node('../doc/').abspath() + pygments_style = bld.path.find_node('../doc/style.css').abspath() + bld(rule = 'asciidoc -a stylesdir=%s -a source-highlighter=pygments -a pygments-style=%s -b html -o ${TGT} ${SRC}' % ( + stylesdir, pygments_style), source = 'book.txt', target = 'book.html') |