diff --git a/Documentation/Cookbook/Scripts/otbGenerateExamplesRstDoc.py b/Documentation/Cookbook/Scripts/otbGenerateExamplesRstDoc.py index d11f36a06d67714846e9cce923113b9b7c9e6d33..934c0e7ba3b25d9eb891f5d91d5e17a1178955d4 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 58d01e0509b2e6e3f271a48a998e01ff467370c4..4e402f001eb79ba17ec86d83d9be65ff29e0441b 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