Skip to content

Commit 2322216

Browse files
committed
Update to latest fsdocs 22 alpha
1 parent da508e5 commit 2322216

File tree

3 files changed

+21
-39
lines changed

3 files changed

+21
-39
lines changed

.config/dotnet-tools.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
"rollForward": false
1818
},
1919
"fsdocs-tool": {
20-
"version": "21.0.0-beta-002",
20+
"version": "22.0.0-alpha.2",
2121
"commands": [
2222
"fsdocs"
2323
],

docs/_body.html

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,11 @@
1+
<script type="module">
2+
const menuHeaders = [...document.querySelectorAll(".nav-header")].filter(nh => nh.id);
3+
menuHeaders.forEach(nv => {
4+
nv.addEventListener("click", () => {
5+
nv.classList.toggle("active");
6+
})
7+
})
8+
</script>
19
<script type="module">
210
import mermaid from "https://esm.sh/mermaid@9.2.2";
311
mermaid.initialize({
@@ -9,12 +17,5 @@
917
primaryBorderColor: '#5aacd6'
1018
}
1119
});
12-
13-
const menuHeaders = [...document.querySelectorAll(".nav-header")].filter(nh => nh.id);
14-
menuHeaders.forEach(nv => {
15-
nv.addEventListener("click", () => {
16-
nv.classList.toggle("active");
17-
})
18-
})
1920
</script>
2021
<script type="module" src="{{root}}content/webcomponents.js"></script>

docs/content/fsdocs-theme.css

Lines changed: 12 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -15,17 +15,18 @@
1515
--fantomas-900: #1d435d;
1616
--fantomas-950: #142c3d;
1717

18-
--header-background: var(--white);
18+
--header-background: light-dark(var(--white), var(--fantomas-700));
1919
--primary: var(--fantomas-500);
20-
--aside-background: var(--primary);
20+
--aside-background: light-dark(var(--primary), var(--fantomas-700));
2121
--menu-color: var(--white);
2222
--link-hover: #2FBADC;
2323
--page-menu-width: 400px;
2424
--configuration-icon-size: 24px;
25-
--mobile-menu-background: var(--fantomas-400);
26-
--fsdocs-theme-toggle-light-color: var(--fantomas-600);
27-
--header-link-color: var(--fantomas-600);
28-
--fsdocs-theme-toggle-dark-color: var(--fantomas-300);
25+
--mobile-menu-background: light-dark(var(--fantomas-400), var(--fantomas-700));
26+
--header-link-color: light-dark(var(--fantomas-600), var(--fantomas-200));
27+
--heading-color: light-dark(var(--black), var(--white));
28+
--text-color: light-dark(var(--black), var(--white));
29+
--background: light-dark(var(--pearl), var(--fantomas-900));
2930

3031
--system-font: 'Poppins', sans-serif;
3132
}
@@ -107,16 +108,16 @@ h1,h2,h3,h4,h5,h6 {
107108

108109
#fsdocs-page-menu ul li {
109110
& a {
110-
color: var(--fantomas-600);
111+
color: light-dark(var(--fantomas-600), var(--fantomas-100));
111112
}
112-
113+
113114
.level-2 {
114115
margin-top: var(--spacing-100);
115116
}
116-
117+
117118
.level-3 a {
118-
color: var(--fantomas-700);
119-
}
119+
color: light-dark(var(--fantomas-700), var(--fantomas-300));
120+
}
120121
}
121122

122123
.mermaid {
@@ -126,23 +127,3 @@ h1,h2,h3,h4,h5,h6 {
126127
}
127128
}
128129

129-
[data-theme="dark"] {
130-
--header-background: var(--fantomas-700);
131-
--mobile-menu-background: var(--fantomas-700);
132-
--background: var(--fantomas-900);
133-
--header-link-color: var(--fantomas-200);
134-
--fsdocs-theme-toggle-dark-color: var(--fantomas-200);
135-
--heading-color: var(--white);
136-
--text-color: var(--white);
137-
--aside-background: var(--fantomas-700);
138-
139-
#fsdocs-page-menu {
140-
& a {
141-
color: var(--fantomas-100);
142-
}
143-
144-
.level-3 a {
145-
color: var(--fantomas-300);
146-
}
147-
}
148-
}

0 commit comments

Comments
 (0)