From 4c606a36fbda4f8c649282f1c52d9a3bf80b3f56 Mon Sep 17 00:00:00 2001 From: David Robillard Date: Thu, 10 Mar 2011 03:52:10 +0000 Subject: Clean up style and terseify header. --- doc/style.css | 39 +++++++++++++++++++-------------------- lv2specgen/lv2specgen.py | 33 +++++++++++++++++++-------------- lv2specgen/template.html | 4 ++-- 3 files changed, 40 insertions(+), 36 deletions(-) diff --git a/doc/style.css b/doc/style.css index 06e8aed..9df3849 100644 --- a/doc/style.css +++ b/doc/style.css @@ -1,4 +1,5 @@ html, body { + font-family: sans-serif; font-size: 100%; background-color: #fff; color: #000; @@ -20,37 +21,32 @@ a:hover { img { border: 0; } -h1, h2, h3, h4, h5 { - font-weight: 400; +h1, h2, h3, h4, h5, h6 { line-height: 1em; } h1 { - color: #234764; - font-size: 160%; - margin: .7em 0 0; - text-decoration: none; -} -h1 a { - color: #234764; + font-size: 180%; + font-weight: 900; } h2 { - color: #366d9c; font-size: 140%; - font-weight: 700; - margin: 3ex 0 1ex; + font-weight: 650; } h3 { - color: #366d9c; font-size: 130%; - margin: 0 0 .75ex; - padding: 0; + font-weight: 600; } h4 { - color: #366d9c; font-size: 120%; - font-style: italic; - margin: 2ex 0 0; - padding: 0; + font-weight: 550; +} +h5 { + font-size: 110%; + font-weight: 500; +} +h6 { + font-size: 100%; + font-weight: 450; } #logoheader { background-color: #F3F3F3; @@ -69,7 +65,7 @@ h4 { padding: 1ex; } #title { - color: #366d9c; + /*color: #366d9c;*/ font-size: 200%; font-weight: 700; margin: .25ex 0 .5ex; @@ -417,6 +413,7 @@ ul, ol { .specterm h3 { background-color: #F3F3F3; padding: 0.5ex; + margin: 0; } .spectermbody { padding: 0 1ex 1ex 1ex; @@ -466,6 +463,8 @@ pre { } code { color: #373; + font-family: fixed,monospace; + font-weight: 500; } #menu li, #searchbox form, ul#iconbar li, #body-main .success p a { display: inline; diff --git a/lv2specgen/lv2specgen.py b/lv2specgen/lv2specgen.py index 9c3ab3d..b2df07c 100755 --- a/lv2specgen/lv2specgen.py +++ b/lv2specgen/lv2specgen.py @@ -584,27 +584,32 @@ def specAuthors(m, subject): for j in m.find_statements(RDF.Statement(i.object, foaf.name, None)): dev.add(j.object.literal_value['string']) - dev_str = '' - for d in dev: - dev_str += '
%s
' % d - maint = set() for i in m.find_statements(RDF.Statement(None, doap.maintainer, None)): for j in m.find_statements(RDF.Statement(i.object, foaf.name, None)): maint.add(j.object.literal_value['string']) - maint_str = '' - for m in maint: - maint_str += '
%s
' % m - - ret = '' - if dev_str != '': - ret += 'Developer(s)' + dev_str + '' - if maint_str != '': - ret += 'Maintainer(s)' + maint_str + '' + doc = '' + first = True + for d in dev: + if not first: + doc += ', ' + doc += '%s' % d + first = False - return ret + for m in maint: + if not first: + doc += ', ' + doc += '%s' % m + first = False + n_authors = len(dev) + len(maint) + if n_authors == 0: + return '' + elif n_authors == 1: + return 'Author' + doc + '' + else: + return 'Authors' + doc + '' def specVersion(m, subject): """ diff --git a/lv2specgen/template.html b/lv2specgen/template.html index 096d1e2..1b3111e 100644 --- a/lv2specgen/template.html +++ b/lv2specgen/template.html @@ -23,8 +23,8 @@
- - + + @AUTHORS@
URI@URI@
Revision@REVISION@
Namespaces@PREFIXES@
Version@REVISION@
Prefixes@PREFIXES@
-- cgit v1.2.1