Skip to content

Commit d68d73e

Browse files
authored
Doxygen theme (#32)
* Generate header * Customize header * Use theme
1 parent e6af67c commit d68d73e

File tree

5 files changed

+2817
-1
lines changed

5 files changed

+2817
-1
lines changed

docs/Doxyfile

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
PROJECT_NAME = LiveKit ESP32 SDK
2+
PROJECT_ICON = customization/favicon.ico
23
OUTPUT_DIRECTORY = ./output
34
OPTIMIZE_OUTPUT_FOR_C = YES
45
WARN_IF_UNDOCUMENTED = YES
@@ -17,4 +18,11 @@ TIMESTAMP = YES
1718
INLINE_SIMPLE_STRUCTS = YES
1819
TYPEDEF_HIDES_STRUCT = YES
1920
SHOW_FILES = NO
20-
LAYOUT_FILE = ./layout.xml
21+
TOC_EXPAND = YES
22+
LAYOUT_FILE = ./layout.xml
23+
HTML_HEADER = customization/header.html
24+
PROJECT_NUMBER = v0.2.0
25+
FULL_SIDEBAR = NO
26+
HTML_EXTRA_STYLESHEET = customization/doxygen-awesome.css \
27+
customization/custom.css
28+
HTML_COLORSTYLE = LIGHT # required with Doxygen >= 1.9.5

docs/customization/custom.css

Lines changed: 51 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,51 @@
1+
@import url("https://fonts.googleapis.com/css2?family=Fira+Code:[email protected]&family=Public+Sans:ital,wght@0,100..900;1,100..900&display=swap");
2+
3+
html {
4+
--font-family: "Public Sans", -apple-system, Helvetica Neue, sans-serif;
5+
--font-family-monospace: "Fira Code", SFMono-Regular, SF Mono, Menlo, Consolas,
6+
monospace;
7+
--primary-color: rgb(10, 37, 159);
8+
--primary-dark-color: rgb(22, 35, 89);
9+
--primary-light-color: rgb(172, 175, 191);
10+
--fragment-link: var(--primary-color);
11+
}
12+
13+
#main-nav {
14+
border-bottom: none;
15+
}
16+
17+
#projectname {
18+
display: flex;
19+
gap: 0.35em;
20+
}
21+
22+
#projectnumber {
23+
background-color: #eee;
24+
border-radius: var(--border-radius-medium);
25+
padding-right: 0.5em;
26+
padding-left: 0.25em;
27+
}
28+
29+
#nav-sync {
30+
display: none;
31+
}
32+
33+
#nav-tree {
34+
border-color: var(--separator-color);
35+
}
36+
37+
#page-nav {
38+
background-color: var(--side-nav-background);
39+
border-left: none;
40+
}
41+
42+
ul.page-outline li.vis {
43+
background-color: rgba(0, 0, 0, 0.025);
44+
}
45+
46+
.arrow {
47+
vertical-align: unset;
48+
text-align: unset;
49+
margin-right: 0;
50+
height: unset;
51+
}

0 commit comments

Comments
 (0)