ChampSim
|
On top of the base theme provided by doxygen-awesome.css
, this repository comes with Javascript extensions that require additional setup steps to get them running.
The extensions require customizations in the header HTML template. This is how you can create the default template with Doxygen:
Doxyfile
: ``` HTML_HEADER = header.html ```More details on header customization
Adds a button next to the search bar to enable and disable the dark theme variant manually:
Doxyfile
:doxygen-awesome-darkmode-toggle.js
doxygen-awesome-sidebar-only-darkmode-toggle.css
(ONLY required for the sidebar-only theme variant!)In the header.html
template, include doxygen-awesome-darkmode-toggle.js
at the end of the <head>
and then initialize it: ```html <html> <head>
<script type="text/javascript" src="$relpath^doxygen-awesome-darkmode-toggle.js"></script> <script type="text/javascript"> DoxygenAwesomeDarkModeToggle.init() </script> </head> <body> ```
Changing the tooltip of the button:
Changing Icons. Both Emoji or SVG icons are supported:
All customizations must be applied before calling DoxygenAwesomeDarkModeToggle.init()
!
Shows a copy button when the user hovers over a code fragment:
Doxyfile
:doxygen-awesome-fragment-copy-button.js
In the header.html
template, include doxygen-awesome-fragment-copy-button.js
at the end of the <head>
and then initialize it: ```html <html> <head>
<script type="text/javascript" src="$relpath^doxygen-awesome-fragment-copy-button.js"></script> <script type="text/javascript"> DoxygenAwesomeFragmentCopyButton.init() </script> </head> <body> ```
The tooltip of the button can be changed:
The icon can be changed. It must be an SVG:
All customizations must be applied before calling DoxygenAwesomeDarkModeToggle.init()
!
Provides a button on hover behind every headline to allow easy creation of a permanent link to the headline:
Works for all headlines and for many documentation section titles.
Doxyfile
:doxygen-awesome-paragraph-link.js
In the header.html
template, include doxygen-awesome-paragraph-link.js
at the end of the <head>
and then initialize it: ```html <html> <head>
<script type="text/javascript" src="$relpath^doxygen-awesome-paragraph-link.js"></script> <script type="text/javascript"> DoxygenAwesomeParagraphLink.init() </script> </head> <body> ```
The button tooltip can be changed:
The icon of the button can be changed. Both plain characters or SVG icons are supported:
All customizations must be applied before calling DoxygenAwesomeParagraphLink.init()
!
On large screens, the Table of Contents (TOC) is anchored on the top right of the page. This extension visualizes the reading progress by dynamically highlighting the currently active section.
On small screens, the extension hides the TOC by default. The user can open it manually when needed:
Doxyfile
:doxygen-awesome-interactive-toc.js
In the header.html
template, include doxygen-awesome-interactive-toc.js
at the end of the <head>
and then initialize it: ```html <html> <head>
<script type="text/javascript" src="$relpath^doxygen-awesome-interactive-toc.js"></script> <script type="text/javascript"> DoxygenAwesomeInteractiveToc.init() </script> </head> <body> ```
The offset for when a headline is considered active can be changed. A smaller value means that the headline of the section must be closer to the top of the viewport before it is highlighted in the TOC:
Hiding the TOC on small screens can be disabled. It is still interactive and can be hidden by the user but will now be open by default:
This extension allows to arrange list content in tabs:
Doxyfile
:doxygen-awesome-tabs.js
In the header.html
template, include doxygen-awesome-tabs.js
at the end of the <head>
and then initialize it: ```html <html> <head>
<script type="text/javascript" src="$relpath^doxygen-awesome-tabs.js"></script> <script type="text/javascript"> DoxygenAwesomeTabs.init() </script> </head> <body> ```
Each list that is supposed to be displayed as tabs has to be wrapped with the tabbed
CSS class. Each item in the list must start with an element that has the class tab-title
. It will then be used as tab title.
To allow the user to easily navigate from one document to another, "Next" and "Previous" buttons can be added at the end of a Markdown document.
The feature is shipped inside the default doxygen-awesome.css
. No additional stylesheets or scripts need to be added.
The following conditions must be met for the feature to work properly:
<div>
with the class section_buttons
.```