aboutsummaryrefslogtreecommitdiffstats
path: root/lv2specgen
diff options
context:
space:
mode:
Diffstat (limited to 'lv2specgen')
-rwxr-xr-xlv2specgen/lv2specgen.py6
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)