diff options
author | David Robillard <d@drobilla.net> | 2011-11-14 05:04:59 +0000 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2011-11-14 05:04:59 +0000 |
commit | 0a286773059f6c1f1bd3d2001f76b33dc29cee5a (patch) | |
tree | fb832a75ea1c7a148d66577ab670cc5e7f28e774 /lv2specgen | |
parent | 1d75440f9719b9f2de57f6250f574b427939ea50 (diff) | |
download | lv2-0a286773059f6c1f1bd3d2001f76b33dc29cee5a.tar.xz |
Simplify footer (remove images).
Diffstat (limited to 'lv2specgen')
-rw-r--r-- | lv2specgen/footer.html | 22 | ||||
-rwxr-xr-x | lv2specgen/lv2specgen.py | 10 | ||||
-rw-r--r-- | lv2specgen/template.html | 21 |
3 files changed, 20 insertions, 33 deletions
diff --git a/lv2specgen/footer.html b/lv2specgen/footer.html deleted file mode 100644 index 5259e4c..0000000 --- a/lv2specgen/footer.html +++ /dev/null @@ -1,22 +0,0 @@ - <span about="" resource="http://www.w3.org/TR/rdfa-syntax" - rel="dct:conformsTo"> - <a href="http://validator.w3.org/check?uri=referer"> - <img style="border:0;width:88px;height:31px" - src="http://www.w3.org/Icons/valid-xhtml-rdfa-blue" - alt="Valid XHTML + RDFa"/> - </a> - </span> - <span about="" resource="http://www.w3.org/TR/CSS2" - rel="dct:conformsTo"> - <a href="http://jigsaw.w3.org/css-validator/check/referer"> - <img style="border:0;width:88px;height:31px" - src="http://jigsaw.w3.org/css-validator/images/vcss-blue" - alt="Valid CSS"/></a> - </span> - <span about=""> - <a about="" rel="license" href="http://creativecommons.org/licenses/by/3.0/"> - <img alt="Creative Commons Attribution 3.0 Unported License" - style="border-width:0;width:88px;height:31px" - src="http://i.creativecommons.org/l/by/3.0/88x31.png" /> - </a> - </span> diff --git a/lv2specgen/lv2specgen.py b/lv2specgen/lv2specgen.py index 5c62701..c1c7741 100755 --- a/lv2specgen/lv2specgen.py +++ b/lv2specgen/lv2specgen.py @@ -934,14 +934,6 @@ def specgen(specloc, indir, docdir, style_uri, doc_base, doclinks, instances=Fal f = open(temploc, "r") template = f.read() - # Footer - footerloc = os.path.join(indir, "footer.html") - footer = '' - f = open(footerloc, "r") - footer = f.read() - - template = template.replace('@FOOTER@', footer) - # Build a symbol -> link mapping for external links dlfile = open(doclinks, 'r') for line in dlfile: @@ -1118,7 +1110,7 @@ def usage(): print("""Usage: %s ONTOLOGY INDIR STYLE OUTPUT [FLAGS] ONTOLOGY : Path to ontology file - INDIR : Input directory containing template.html footer.html style.css + INDIR : Input directory containing template.html and style.css STYLE : Stylesheet URI OUTPUT : HTML output path BASE : Documentation output base URI diff --git a/lv2specgen/template.html b/lv2specgen/template.html index e5399c8..8906e6f 100644 --- a/lv2specgen/template.html +++ b/lv2specgen/template.html @@ -50,8 +50,25 @@ <!-- FOOTER --> <div id="footer"> - <span class="footer-text">Generated on @TIME@ from <a href="./@FILENAME@" class="footer-text">@FILENAME@</a> by <a href="http://drobilla.net/software/lv2specgen" class="footer-text">lv2specgen</a></span> - @FOOTER@ + <div> + This document is available under the + <a about="" rel="license" href="http://creativecommons.org/licenses/by-sa/3.0/"> + Creative Commons Attribution-ShareAlike License + </a> + </div> + <div> + Valid + <a about="" rel="dct:conformsTo" resource="http://www.w3.org/TR/rdfa-syntax" + href="http://validator.w3.org/check?uri=referer"> + XHTML+RDFa + </a> + and + <a about="" rel="dct:conformsTo" resource="http://www.w3.org/TR/CSS2" + href="http://jigsaw.w3.org/css-validator/check/referer"> + CSS + </a> + generated on <span about="" rel="dc:created">@TIME@</span> from <a href="./@FILENAME@">@FILENAME@</a> by <a href="http://drobilla.net/software/lv2specgen">lv2specgen</a> + </div> </div> </body> |