Skip to content

Commit

Permalink
Add Doxygen Avesome Extensions
Browse files Browse the repository at this point in the history
* Dark Mode Toggle

* Fragment Copy Button

* Paragraph Linking

More info:
https://jothepro.github.io/doxygen-awesome-css/md_docs_2extensions.html
  • Loading branch information
rmisev committed Oct 26, 2023
1 parent 24d7bbd commit d4e9af4
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 2 deletions.
4 changes: 3 additions & 1 deletion Doxyfile
Original file line number Diff line number Diff line change
Expand Up @@ -1412,7 +1412,9 @@ HTML_EXTRA_STYLESHEET = doc/theme/doxygen-awesome.css
# files will be copied as-is; there are no commands or markers available.
# This tag requires that the tag GENERATE_HTML is set to YES.

HTML_EXTRA_FILES =
HTML_EXTRA_FILES = doc/theme/doxygen-awesome-darkmode-toggle.js \
doc/theme/doxygen-awesome-fragment-copy-button.js \
doc/theme/doxygen-awesome-paragraph-link.js

# The HTML_COLORSTYLE tag can be used to specify if the generated HTML output
# should be rendered with a dark or light theme.
Expand Down
5 changes: 4 additions & 1 deletion doc/download-theme.sh
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,10 @@ VERSION=v2.2.1

mkdir -p ${p}/theme

for f in doxygen-awesome.css
for f in doxygen-awesome.css \
doxygen-awesome-darkmode-toggle.js \
doxygen-awesome-fragment-copy-button.js \
doxygen-awesome-paragraph-link.js
do
curl -fsS -o ${p}/theme/${f} https://raw.githubusercontent.com/jothepro/doxygen-awesome-css/${VERSION}/${f}
done
8 changes: 8 additions & 0 deletions doc/header.html
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,14 @@
$search
$mathjax
$darkmode
<script type="text/javascript" src="$relpath^doxygen-awesome-darkmode-toggle.js"></script>
<script type="text/javascript" src="$relpath^doxygen-awesome-fragment-copy-button.js"></script>
<script type="text/javascript" src="$relpath^doxygen-awesome-paragraph-link.js"></script>
<script type="text/javascript">
DoxygenAwesomeDarkModeToggle.init()
DoxygenAwesomeFragmentCopyButton.init()
DoxygenAwesomeParagraphLink.init()
</script>
<link href="$relpath^$stylesheet" rel="stylesheet" type="text/css" />
$extrastylesheet
</head>
Expand Down

0 comments on commit d4e9af4

Please sign in to comment.