Commit d7468bd6 authored by Cédric Traizet's avatar Cédric Traizet
Browse files

ENH: Deprecated cannot be an application section anymore

No related merge requests found
Showing with 5 additions and 5 deletions
+5 -5
...@@ -413,13 +413,13 @@ def GenerateRstForApplications(rst_dir): ...@@ -413,13 +413,13 @@ def GenerateRstForApplications(rst_dir):
for appName in appNames: for appName in appNames:
# Get application first tag # Get application first tag
tags = GetApplicationTags(appName) tags = list(GetApplicationTags(appName))
if "Deprecated" in tags:
tags.remove("Deprecated")
if not tags or len(tags) == 0: if not tags or len(tags) == 0:
raise RuntimeError("No tags for application: " + appName) raise RuntimeError("No tags for application: " + appName)
if "Deprecated" in tags:
tag = "Deprecated" tag = tags[0]
else:
tag = tags[0]
tag_ = tag.replace(" ", "_") tag_ = tag.replace(" ", "_")
# Add it to the index (i.e. https://www.orfeo-toolbox.org/CookBook/Applications.html) # Add it to the index (i.e. https://www.orfeo-toolbox.org/CookBook/Applications.html)
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment