From 97a036b7360c296349eb68665b7acb9efdc9468b Mon Sep 17 00:00:00 2001 From: Victor Poughon <victor.poughon@cnes.fr> Date: Mon, 25 Feb 2019 18:53:16 +0100 Subject: [PATCH] REFAC: sort cookbook examples & fix ApplicationExample --- .../Cookbook/Scripts/otbGenerateExamplesRstDoc.py | 2 +- Examples/Application/ApplicationExample.cxx | 8 -------- 2 files changed, 1 insertion(+), 9 deletions(-) diff --git a/Documentation/Cookbook/Scripts/otbGenerateExamplesRstDoc.py b/Documentation/Cookbook/Scripts/otbGenerateExamplesRstDoc.py index d11f36a06d..934c0e7ba3 100644 --- a/Documentation/Cookbook/Scripts/otbGenerateExamplesRstDoc.py +++ b/Documentation/Cookbook/Scripts/otbGenerateExamplesRstDoc.py @@ -115,7 +115,7 @@ if __name__ == "__main__": args = parser.parse_args() # Get list of cxx examples as relative paths from otb_root - list_of_examples = [os.path.relpath(p, start=args.otb_root) for p in glob.glob(join(args.otb_root, "Examples/*/*.cxx"))] + list_of_examples = [os.path.relpath(p, start=args.otb_root) for p in sorted(glob.glob(join(args.otb_root, "Examples/*/*.cxx")))] print("Generating rst for {} examples".format(len(list_of_examples))) # Generate example index and tag indexes diff --git a/Examples/Application/ApplicationExample.cxx b/Examples/Application/ApplicationExample.cxx index 58d01e0509..4e402f001e 100644 --- a/Examples/Application/ApplicationExample.cxx +++ b/Examples/Application/ApplicationExample.cxx @@ -18,12 +18,6 @@ * limitations under the License. */ - -/* Example usage: -./ApplicationExample Input/QB_Suburb.png Output/ApplicationExample.png -*/ - - // This example illustrates the creation of an application. // A new application is a class, which derives from \subdoxygen{otb}{Wrapper}{Application} class. // We start by including the needed header files. @@ -213,6 +207,4 @@ private: } // namespace otb // Finally \code{OTB\_APPLICATION\_EXPORT} is called: -// Software Guide :BeginCodeSnippet OTB_APPLICATION_EXPORT(otb::Wrapper::ApplicationExample) -// Software Guide :EndCodeSnippet -- GitLab