diff options
author | David Robillard <d@drobilla.net> | 2011-11-05 03:45:53 +0000 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2011-11-05 03:45:53 +0000 |
commit | 4ee818b680e6864e03d98aa945be1600471db578 (patch) | |
tree | 6de8cea2f54e561b9f5ace6eac018d85ea7f54a7 /lv2specgen/lv2specgen.py | |
parent | 434a3c065b0b9ac73692bc445b01e91123554e50 (diff) | |
download | lv2-4ee818b680e6864e03d98aa945be1600471db578.tar.xz |
Mark event and uri-map as deprecated and point to their successors in documentation.
Diffstat (limited to 'lv2specgen/lv2specgen.py')
-rwxr-xr-x | lv2specgen/lv2specgen.py | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/lv2specgen/lv2specgen.py b/lv2specgen/lv2specgen.py index 3293019..ce4ec22 100755 --- a/lv2specgen/lv2specgen.py +++ b/lv2specgen/lv2specgen.py @@ -973,7 +973,11 @@ def specgen(specloc, indir, docdir, style_uri, doc_base, doclinks, instances=Fal version_string = "%s.%s (%s)" % (version[0], version[1], date_string) if version[0] == 0 or version[1] % 2 == 1: - version_string += ' <span style="color: red; font-weight: bold">EXPERIMENTAL</span>' + version_string += ' <span class="warning">EXPERIMENTAL</span>' + + deprecated = findOne(m, rdflib.URIRef(spec_url), owl.deprecated, None) + if deprecated and str(deprecated[2]).find("true") > 0: + version_string += ' <span class="warning">DEPRECATED</span>' template = template.replace('@REVISION@', version_string) |