From fcddfa4f8605c7dbab8a0b8d88fcec312a74f7de Mon Sep 17 00:00:00 2001 From: Cartucho Date: Thu, 15 Dec 2016 12:32:12 +0000 Subject: [PATCH] GSoC 2016 - Adding ALIASES for tutorial (#7041) * GSoC 2016 - Adding toggle files to be used by tutorials. Add a toggle option for tutorials. * adds a button on the HTML tutorial pages to switch between blocks * the default option is for languages: one can write a block for C++ and another one for Python without re-writing the tutorial Add aliases to the doxyfile. * adding alises to make a link to previous and next tutorial. * adding alias to specify the toggle options in the tutorials index. * adding alias to add a youtube video directly from link. Add a sample tutorial (mat_mask_opertaions) using the developed aliases: * youtube alias * previous and next tutorial alias * buttons * languages info for tutorial table of content * code referances with snippets (and associated sample code files) * Removing the automatic ordering. Adding specific toggles for cpp, java and python. Move all the code to the footer / header and Doxyfile. Updating documentation. --- doc/Doxyfile.in | 11 +- doc/footer.html | 69 ++++++ doc/header.html | 30 +++ doc/mymath.js | 3 +- .../mat_mask_operations.markdown | 198 +++++++++++------- .../core/table_of_content_core.markdown | 2 + .../documentation_tutorial.markdown | 100 ++++++++- .../mat_mask_operations.cpp | 16 ++ .../documentation/documentation.cpp | 14 ++ .../MatMaskOperations.java | 139 ++++++++++++ .../documentation/Documentation.java | 9 + .../mat_mask_operations.py | 57 +++++ .../documentation/documentation.py | 5 + 13 files changed, 564 insertions(+), 89 deletions(-) create mode 100644 samples/cpp/tutorial_code/introduction/documentation/documentation.cpp create mode 100644 samples/java/tutorial_code/core/mat_mask_operations/MatMaskOperations.java create mode 100644 samples/java/tutorial_code/introduction/documentation/Documentation.java create mode 100644 samples/python/tutorial_code/core/mat_mask_operations/mat_mask_operations.py create mode 100644 samples/python/tutorial_code/introduction/documentation/documentation.py diff --git a/doc/Doxyfile.in b/doc/Doxyfile.in index f0c15e01b0..2e4ac7066a 100644 --- a/doc/Doxyfile.in +++ b/doc/Doxyfile.in @@ -31,10 +31,17 @@ MULTILINE_CPP_IS_BRIEF = NO INHERIT_DOCS = YES SEPARATE_MEMBER_PAGES = NO TAB_SIZE = 4 -ALIASES = +ALIASES += add_toggle{1}="@htmlonly[block]
\1
@endhtmlonly" +ALIASES += add_toggle_cpp="@htmlonly[block]