Skip to content

Commit

Permalink
Feat: Enabled Interactive Table of Contents (TOC)
Browse files Browse the repository at this point in the history
The TOC now dynamically updates as the user scrolls through the document.

Signed-off-by: Adarsh <[email protected]>
  • Loading branch information
AdarshRawat1 committed Jan 2, 2025
1 parent 3df79ce commit 0d9d0fd
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
1 change: 1 addition & 0 deletions docs/doxygen/doxygen.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -1439,6 +1439,7 @@ HTML_STYLESHEET =
HTML_EXTRA_STYLESHEET = awesome_css/doxygen-awesome.css \
awesome_css/doxygen-awesome-sidebar-only.css \
awesome_css/doxygen-awesome-sidebar-only-darkmode-toggle.css \
awesome_css/doxygen-awesome-interactive-toc.js \
../assets/css/cards.css \
../assets/css/flow.css \
../assets/css/p4c_custom.css
Expand Down
6 changes: 6 additions & 0 deletions docs/doxygen/p4c_header.html
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,12 @@
DoxygenAwesomeDarkModeToggle.init()
</script>

<!-- Add interactive TOC -->
<script type="text/javascript" src="$relpath^doxygen-awesome-interactive-toc.js"></script>
<script type="text/javascript">
DoxygenAwesomeInteractiveToc.init()
</script>

$treeview
$search
$mathjax
Expand Down

0 comments on commit 0d9d0fd

Please sign in to comment.