From 453eae1c459af3e6284f4bfcfc65673932e38fb6 Mon Sep 17 00:00:00 2001 From: David Robillard Date: Tue, 6 Sep 2022 20:45:00 -0400 Subject: Remove change history from specification documentation pages Towards simplifying everything around change history. This information seems out of place here anyway, and is available elsewhere. --- lv2specgen/lv2specgen.py | 74 ------------------------------------------------ lv2specgen/template.html | 7 ----- 2 files changed, 81 deletions(-) (limited to 'lv2specgen') diff --git a/lv2specgen/lv2specgen.py b/lv2specgen/lv2specgen.py index 3345b5a..e681c83 100755 --- a/lv2specgen/lv2specgen.py +++ b/lv2specgen/lv2specgen.py @@ -1040,79 +1040,6 @@ def specAuthors(m, subject): return doc -def releaseChangeset(m, release, prefix=""): - changeset = findOne(m, release, dcs.changeset, None) - if changeset is None: - return "" - - entry = "" - # entry = '
\n' - return entry - - -def specHistoryEntries(m, subject, entries): - for r in findStatements(m, subject, doap.release, None): - release = getObject(r) - revNode = findOne(m, release, doap.revision, None) - if not revNode: - print("error: doap:release has no doap:revision") - continue - - rev = getLiteralString(getObject(revNode)) - - created = findOne(m, release, doap.created, None) - - dist = findOne(m, release, doap["file-release"], None) - if dist: - entry = '
Version %s' % (getObject(dist), rev) - else: - entry = "
Version %s" % rev - # print("warning: doap:release has no doap:file-release") - - if created: - entry += " (%s)
\n" % getLiteralString(getObject(created)) - else: - entry += ' (EXPERIMENTAL)' - - entry += "
" - history += "\n" - return history - else: - return "" - - -def specHistory(m, subject): - return specHistoryMarkup(specHistoryEntries(m, subject, {})) - - def specVersion(m, subject): """ Return a (minorVersion, microVersion, date) tuple @@ -1383,7 +1310,6 @@ def specgen( template = template.replace("@REFERENCE@", termlist) template = template.replace("@FILENAME@", filename) template = template.replace("@HEADER@", basename + ".h") - template = template.replace("@HISTORY@", specHistory(m, spec)) mail_row = "" if "list_email" in opts: diff --git a/lv2specgen/template.html b/lv2specgen/template.html index 4eb3d96..e52ec87 100644 --- a/lv2specgen/template.html +++ b/lv2specgen/template.html @@ -44,7 +44,6 @@ @@ -63,12 +62,6 @@ @REFERENCE@ - -

History

-
- @HISTORY@ -
-