Skip to content

Commit e0a5b4a

Browse files
committed
fix: Override image paths for non-existent images
Signed-off-by: Jan Stephan <[email protected]>
1 parent 831506b commit e0a5b4a

File tree

1 file changed

+37
-0
lines changed

1 file changed

+37
-0
lines changed
Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
/**
2+
* CSS workaround for Doxygen missing image references
3+
*
4+
* This file overrides CSS variables that reference non-existent images
5+
* in the auto-generated doxygen.css file which makes the dead link checker
6+
* happy.
7+
*/
8+
9+
html {
10+
/* Fix search images (not generated when SEARCHENGINE=NO) */
11+
--search-magnification-image: none;
12+
--search-magnification-select-image: none;
13+
--nav-gradient-active-image-parent: none;
14+
15+
/* Fix fold/collapse images with incorrect relative paths (not generated when HTML_DYNAMIC_SECTIONS=NO) */
16+
--fold-minus-image-relpath: none;
17+
--fold-plus-image-relpath: none;
18+
}
19+
20+
/* Dark mode overrides */
21+
@media (prefers-color-scheme: dark) {
22+
html:not([data-theme=light]) {
23+
--search-magnification-image: none;
24+
--search-magnification-select-image: none;
25+
--nav-gradient-active-image-parent: none;
26+
--fold-minus-image-relpath: none;
27+
--fold-plus-image-relpath: none;
28+
}
29+
}
30+
31+
html[data-theme=dark] {
32+
--search-magnification-image: none;
33+
--search-magnification-select-image: none;
34+
--nav-gradient-active-image-parent: none;
35+
--fold-minus-image-relpath: none;
36+
--fold-plus-image-relpath: none;
37+
}

0 commit comments

Comments
 (0)