Skip to content

Commit

Permalink
[INFRA] Update doxygen
Browse files Browse the repository at this point in the history
  • Loading branch information
eseiler committed Feb 7, 2024
1 parent fc521fe commit cc74c94
Show file tree
Hide file tree
Showing 12 changed files with 305 additions and 83 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci_documentation.yml
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ jobs:
- name: Install Doxygen
uses: seqan/actions/setup-doxygen@main
with:
doxygen: 1.9.6
doxygen: 1.10.0

- name: Configure tests
run: |
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/documentation.yml
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ jobs:
- name: Install Doxygen
uses: seqan/actions/setup-doxygen@main
with:
doxygen: 1.9.6
doxygen: 1.10.0

- name: Load cached documentation
uses: actions/cache@v4
Expand Down
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,8 @@ If possible, provide tooling that performs the changes, e.g. a shell-script.
#### Dependencies
* TDL is now an optional dependency and can be force deactivated via CMake (`-DSHARG_NO_TDL=ON`)
([#218](https://github.com/seqan/sharg-parser/pull/218)).
* We now use Doxygen version 1.10.0 to build our documentation
([\#230](https://github.com/seqan/sharg-parser/pull/230)).

# Release 1.1.1

Expand Down
4 changes: 1 addition & 3 deletions include/sharg/enumeration_names.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -209,11 +209,9 @@ namespace sharg
* \experimentalapi{Experimental since version 1.0.}
*/
// clang-format off
// `SHARG_DOXYGEN_ONLY((size_t value))` is needed for Doxygen 1.9.5
// Doxygen 1.9.5 bug: https://github.com/doxygen/doxygen/issues/9552
template <typename option_type>
requires requires { { detail::adl_only::enumeration_names_cpo<option_type>{}() }; }
inline auto const enumeration_names SHARG_DOXYGEN_ONLY((size_t value)) = detail::adl_only::enumeration_names_cpo<option_type>{}();
inline auto const enumeration_names = detail::adl_only::enumeration_names_cpo<option_type>{}();
// clang-format on
//!\}

Expand Down
2 changes: 1 addition & 1 deletion test/documentation/.vercel/install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

set -exo pipefail

DOXYGEN_VERSION=1.9.6
DOXYGEN_VERSION=1.10.0
SOURCE_DIR=`pwd`
CACHE_DIR="${SOURCE_DIR}/node_modules"

Expand Down
38 changes: 31 additions & 7 deletions test/documentation/DoxygenLayout.xml.in
Original file line number Diff line number Diff line change
Expand Up @@ -4,15 +4,15 @@
-->

<doxygenlayout version="1.0">
<!-- Generated by doxygen 1.9.6 -->
<!-- Generated by doxygen 1.10.0 -->
<!-- Navigation index tabs for HTML output -->
<navindex>
<tab type="mainpage" visible="yes" title=""/>
<tab type="pages" visible="no" title="" intro=""/>
<!-- Custom vvv -->
<tab type="usergroup" visible="yes" title="Setup" intro="">
<tab type="user" visible="yes" title="Quick-Setup (CMake)" url="\ref setup" intro=""/>
<tab type="user" visible="yes" title="Library tests" url="\ref setup_tests" intro=""/>
<tab type="user" visible="${SHARG_SHOW_DEV_GROUP}" title="Library tests" url="\ref setup_tests" intro=""/>
</tab>
<tab type="usergroup" visible="yes" title="Tutorial" intro="">
<tab type="user" visible="yes" title="Parsing command line arguments" url="@ref tutorial_parser" intro=""/>
Expand All @@ -33,11 +33,13 @@
<tab type="user" visible="yes" title="Update Notifications" url="\ref about_update_notifications" intro=""/>
</tab>
<!-- Custom ^^^ -->
<tab type="modules" visible="yes" title="API Reference" intro=""/>
<tab type="usergroup" visible="${SHARG_SHOW_DEV_GROUP}" title="API Reference (details)" intro=""> <!-- Custom -->
<tab type="topics" visible="yes" title="API Reference" intro=""/>
<tab type="usergroup" visible="yes" title="API Reference (details)" intro=""> <!-- Custom -->
<tab type="namespaces" visible="no" title="">
<tab type="namespacelist" visible="yes" title="" intro=""/>
<tab type="namespacemembers" visible="yes" title="" intro=""/>
<tab type="namespacemembers" visible="${SHARG_SHOW_DEV_GROUP}" title="" intro=""/>
</tab>
<tab type="concepts" visible="yes" title="">
</tab>
<tab type="interfaces" visible="no" title="">
<tab type="interfacelist" visible="yes" title="" intro=""/>
Expand All @@ -50,8 +52,6 @@
<tab type="hierarchy" visible="yes" title="" intro=""/>
<tab type="classmembers" visible="yes" title="" intro=""/>
</tab>
<tab type="concepts" visible="yes" title="">
</tab>
<tab type="structs" visible="no" title="">
<tab type="structlist" visible="yes" title="" intro=""/>
<tab type="structindex" visible="$ALPHABETICAL_INDEX" title=""/>
Expand Down Expand Up @@ -145,6 +145,7 @@
<enums title=""/>
<functions title=""/>
<variables title=""/>
<properties title=""/>
<membergroups visible="yes"/>
</memberdecl>
<detaileddescription title=""/>
Expand All @@ -156,6 +157,7 @@
<enums title=""/>
<functions title=""/>
<variables title=""/>
<properties title=""/>
</memberdef>
<authorsection visible="yes"/>
</namespace>
Expand Down Expand Up @@ -191,6 +193,7 @@
<enums title=""/>
<functions title=""/>
<variables title=""/>
<properties title=""/>
<membergroups visible="yes"/>
</memberdecl>
<detaileddescription title=""/>
Expand All @@ -203,6 +206,7 @@
<enums title=""/>
<functions title=""/>
<variables title=""/>
<properties title=""/>
</memberdef>
<authorsection/>
</file>
Expand All @@ -213,6 +217,7 @@
<groupgraph visible="$GROUP_GRAPHS"/>
<memberdecl>
<nestedgroups visible="yes" title=""/>
<modules visible="yes" title=""/>
<dirs visible="yes" title=""/>
<files visible="yes" title=""/>
<namespaces visible="yes" title=""/>
Expand Down Expand Up @@ -258,6 +263,25 @@
<authorsection visible="yes"/>
</group>

<!-- Layout definition for a C++20 module page -->
<module>
<briefdescription visible="yes"/>
<exportedmodules visible="yes"/>
<memberdecl>
<concepts visible="yes" title=""/>
<classes visible="yes" title=""/>
<enums title=""/>
<typedefs title=""/>
<functions title=""/>
<variables title=""/>
<membergroups title=""/>
</memberdecl>
<detaileddescription title=""/>
<memberdecl>
<files visible="yes"/>
</memberdecl>
</module>

<!-- Layout definition for a directory page -->
<directory>
<briefdescription visible="yes"/>
Expand Down
20 changes: 20 additions & 0 deletions test/documentation/doxygen-awesome/doxygen-awesome-tabs.js
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ class DoxygenAwesomeTabs {
let tabLink = document.createElement("button")
tabLink.classList.add("tab-button")
tabLink.appendChild(header)
header.title = header.textContent
tabLink.addEventListener("click", () => {
tabbed.querySelectorAll("li").forEach((tab) => {
tab.classList.remove("selected")
Expand All @@ -67,7 +68,26 @@ class DoxygenAwesomeTabs {
})
tabsOverviewContainer.appendChild(tabsOverview)
tabbed.before(tabsOverviewContainer)

function resize() {
let maxTabHeight = 0
tabbed.querySelectorAll("li").forEach((tab, tabIndex) => {
let visibility = tab.style.display
tab.style.display = "block"
maxTabHeight = Math.max(tab.offsetHeight, maxTabHeight)
tab.style.display = visibility
})
tabbed.style.height = `${maxTabHeight + 10}px`
}

resize()
new ResizeObserver(resize).observe(tabbed)
})
})

}

static resize(tabbed) {

}
}
Loading

0 comments on commit cc74c94

Please sign in to comment.