From b6e1f421b4c30c2604d68862c99573fbc18d2b30 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20Traizet?= <cedric.traizet@c-s.fr> Date: Mon, 6 May 2019 13:40:00 +0200 Subject: [PATCH] DOC: deprecated applications are now always in the Deprecated section of the cookbook --- Documentation/Cookbook/Scripts/otbGenerateWrappersRstDoc.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/Documentation/Cookbook/Scripts/otbGenerateWrappersRstDoc.py b/Documentation/Cookbook/Scripts/otbGenerateWrappersRstDoc.py index ffe82d61b5..059301a1f4 100755 --- a/Documentation/Cookbook/Scripts/otbGenerateWrappersRstDoc.py +++ b/Documentation/Cookbook/Scripts/otbGenerateWrappersRstDoc.py @@ -414,7 +414,10 @@ def GenerateRstForApplications(rst_dir): tags = GetApplicationTags(appName) if not tags or len(tags) == 0: raise RuntimeError("No tags for application: " + appName) - tag = tags[0] + if "Deprecated" in tags: + tag = "Deprecated" + else: + tag = tags[0] tag_ = tag.replace(" ", "_") # Add it to the index (i.e. https://www.orfeo-toolbox.org/CookBook/Applications.html) -- GitLab