From cc41c56ad0331549b21e024dec8b454aa33aba56 Mon Sep 17 00:00:00 2001 From: Rylie Pavlik Date: Fri, 2 Aug 2024 12:28:13 -0500 Subject: [PATCH] doc: Add mermaid diagram support to Doxygen config Part-of: --- doc/Doxyfile.in | 6 +++++- doc/footer.html | 36 ++++++++++++++++++++++++++++++++++++ doc/header.html | 6 ++++-- 3 files changed, 45 insertions(+), 3 deletions(-) create mode 100644 doc/footer.html diff --git a/doc/Doxyfile.in b/doc/Doxyfile.in index 277a99f04..752195438 100644 --- a/doc/Doxyfile.in +++ b/doc/Doxyfile.in @@ -10,6 +10,7 @@ INPUT = \ IMAGE_PATH = @SRCDIR@/doc +EXAMPLE_PATH = @SRCDIR@/doc/mermaid USE_MDFILE_AS_MAINPAGE = @SRCDIR@/doc/mainpage.md @@ -54,6 +55,7 @@ PREDEFINED = VK_USE_PLATFORM_XCB_KHR \ ALIASES += TODO=todo ALIASES += ep{1}="\1. \xrefitem entrypoints \"OpenXR Entry Point\" \"OpenXR Entry Points\" \1" ALIASES += obj{1}="\xrefitem objects \"OpenXR Object\" \"OpenXR Objects\" \1" +ALIASES += mermaid{1}="@htmlonly
^^ @endhtmlonly @htmlinclude \"\1.mmd\" @htmlonly ^^
@endhtmlonly" SHOW_GROUPED_MEMB_INC = YES STRIP_CODE_COMMENTS = NO @@ -102,9 +104,11 @@ DISABLE_INDEX = NO FULL_SIDEBAR = NO HTML_COLORSTYLE = LIGHT # required with Doxygen >= 1.9.5 HTML_HEADER = @SRCDIR@/doc/header.html +HTML_FOOTER = @SRCDIR@/doc/footer.html HTML_EXTRA_STYLESHEET = @SRCDIR@/doc/doxygen-awesome-css/doxygen-awesome.css HTML_EXTRA_FILES = @SRCDIR@/doc/doxygen-awesome-css/doxygen-awesome-darkmode-toggle.js \ @SRCDIR@/doc/doxygen-awesome-css/doxygen-awesome-fragment-copy-button.js \ @SRCDIR@/doc/doxygen-awesome-css/doxygen-awesome-paragraph-link.js \ @SRCDIR@/doc/doxygen-awesome-css/doxygen-awesome-interactive-toc.js \ - @SRCDIR@/doc/doxygen-awesome-css/doxygen-awesome-tabs.js + @SRCDIR@/doc/doxygen-awesome-css/doxygen-awesome-tabs.js \ + @SRCDIR@/src/external/mermaid/mermaid.min.js diff --git a/doc/footer.html b/doc/footer.html new file mode 100644 index 000000000..1549084ec --- /dev/null +++ b/doc/footer.html @@ -0,0 +1,36 @@ + + + + + + + + + + + + + diff --git a/doc/header.html b/doc/header.html index 4e413cb21..e14fd8567 100644 --- a/doc/header.html +++ b/doc/header.html @@ -4,8 +4,9 @@ SPDX-License-Identifier: BSL-1.0 --> @@ -42,6 +43,7 @@ then modified based on doxygen-awesome header.html file +