From 78c9cc7761f3c2382dc3f85576674c03048c0a63 Mon Sep 17 00:00:00 2001 From: David Robillard Date: Sun, 22 Mar 2020 19:40:18 +0100 Subject: lv2specgen: Flatten page structure --- lv2specgen/lv2specgen.py | 16 ++++++++++++---- lv2specgen/template.html | 16 +++++++++------- 2 files changed, 21 insertions(+), 11 deletions(-) diff --git a/lv2specgen/lv2specgen.py b/lv2specgen/lv2specgen.py index b9f458c..88e1380 100755 --- a/lv2specgen/lv2specgen.py +++ b/lv2specgen/lv2specgen.py @@ -706,7 +706,7 @@ def docTerms(category, list, m, classlist, proplist, instalist): t = termName(m, term) curie = term.split(spec_ns_str[-1])[1] doc += '
' % (t, term) - doc += '

%s

' % (getAnchor(term), curie) + doc += '

%s

' % (getAnchor(term), curie) comment = getFullDocumentation(m, term, classlist, proplist, instalist) is_deprecated = isDeprecated(m, term) @@ -1311,11 +1311,19 @@ def specgen(specloc, indir, style_uri, docdir, tags, opts, instances=False, root termlist = '' if classlist: - termlist += '

Classes

' + classlist + termlist += '' + if proplist: - termlist += '

Properties

' + proplist + termlist += '' + if instlist: - termlist += '

Instances

' + instlist + termlist += '' name = specProperty(m, spec, doap.name) title = name diff --git a/lv2specgen/template.html b/lv2specgen/template.html index 059a599..1522472 100644 --- a/lv2specgen/template.html +++ b/lv2specgen/template.html @@ -41,7 +41,7 @@ @@ -51,17 +51,19 @@
@DESCRIPTION@
+ +

Index

+
+ @INDEX@ +
+ -

Reference

-
- @INDEX@ - @REFERENCE@ -
+ @REFERENCE@
-

History

+

History

@HISTORY@
-- cgit v1.2.1