aboutsummaryrefslogtreecommitdiffstats
path: root/lv2specgen
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2011-11-04 22:06:02 +0000
committerDavid Robillard <d@drobilla.net>2011-11-04 22:06:02 +0000
commitdd969d2b3a7aa271a0e5a3bce9e55f691d97fa0e (patch)
tree57705a2564dd71a650dc95729dec9092b8f684c4 /lv2specgen
parentfce23180919831fb463fc3f6877940d7fd4437cd (diff)
downloadlv2-dd969d2b3a7aa271a0e5a3bce9e55f691d97fa0e.tar.xz
Add subtitle using doap:shortdesc.
Diffstat (limited to 'lv2specgen')
-rwxr-xr-xlv2specgen/lv2specgen.py1
-rw-r--r--lv2specgen/template.html3
2 files changed, 3 insertions, 1 deletions
diff --git a/lv2specgen/lv2specgen.py b/lv2specgen/lv2specgen.py
index 8138654..13422d2 100755
--- a/lv2specgen/lv2specgen.py
+++ b/lv2specgen/lv2specgen.py
@@ -934,6 +934,7 @@ def specgen(specloc, indir, docdir, style_uri, doc_base, doclinks, instances=Fal
termlist += docTerms('Instance', instalist, m)
template = template.replace('@NAME@', specProperty(m, spec_url, doap.name))
+ template = template.replace('@SUBTITLE@', specProperty(m, spec_url, doap.shortdesc))
template = template.replace('@URI@', spec_url)
template = template.replace('@PREFIX@', spec_pre)
if spec_pre == 'lv2':
diff --git a/lv2specgen/template.html b/lv2specgen/template.html
index d1a91ef..e5399c8 100644
--- a/lv2specgen/template.html
+++ b/lv2specgen/template.html
@@ -17,8 +17,9 @@
<body>
<!-- HEADER -->
- <div id="titleheader">
+ <div id="header">
<h1 id="title">@NAME@</h1>
+ <span id="subtitle">@SUBTITLE@</span>
<table id="meta">
<tr><th>URI</th><td><a href="@URI@">@URI@</a></td></tr>
<tr><th>Version</th><td>@REVISION@</td></tr>