From dd969d2b3a7aa271a0e5a3bce9e55f691d97fa0e Mon Sep 17 00:00:00 2001 From: David Robillard Date: Fri, 4 Nov 2011 22:06:02 +0000 Subject: Add subtitle using doap:shortdesc. --- doc/style.css | 19 +++++++------------ gendoc.py | 2 +- lv2specgen/lv2specgen.py | 1 + lv2specgen/template.html | 3 ++- 4 files changed, 11 insertions(+), 14 deletions(-) diff --git a/doc/style.css b/doc/style.css index 6d6e090..230353c 100644 --- a/doc/style.css +++ b/doc/style.css @@ -51,16 +51,7 @@ h6 { font-size: 100%; font-weight: 450; } -#logoheader { - background-color: #F3F3F3; - border: 0; - border-bottom: 1px solid #DDD; - height: 84px; - margin: 0; - padding: 1px; - z-index: 1; -} -#titleheader { +#header { background-color: #F3F3F3; border: 0; border-bottom: 1px solid #DDD; @@ -70,9 +61,12 @@ h6 { #title { font-size: 200%; font-weight: 700; - margin: .25ex 0 .5ex 0; + margin: .25ex 0 .25ex 0; padding: 0; } +#subtitle { + margin: 0 auto 2ex 0.5ex; +} #logo { height: 63px; margin-left: 1em; @@ -480,7 +474,8 @@ td, th { padding: 0.3ex 1em 0.3ex 1em; } #meta { - margin-left: 0.5ex; + margin: 1ex 0 0 0.5ex; + font-size: small; } #meta tr td, #meta tr th { padding-left: 0; diff --git a/gendoc.py b/gendoc.py index b6279f5..b22bca9 100755 --- a/gendoc.py +++ b/gendoc.py @@ -117,7 +117,7 @@ for dir in ['ext', 'extensions']: -

LV2 Extension Index

+
\n""" 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 @@ -
+
NameDescriptionVersionDate
-- cgit v1.2.1
URI@URI@
Version@REVISION@