Skip to content

Commit 71615d9

Browse files
committed
Enhance documentation configuration and styling
- Added 'namespaceLayout' and 'memberLayout' properties to docfx.json for improved API documentation structure. - Updated CSS variables in main.css to use 'light-dark' function for better color adaptability.
1 parent a2825a5 commit 71615d9

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

docs/docfx.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,8 @@
2323
],
2424
"dest": "obj/api/dotnet",
2525
"filter": "filterConfig.yml",
26+
"namespaceLayout": "flattened",
27+
"memberLayout": "samePage",
2628
"properties": {
2729
"TargetFramework": "net8.0"
2830
}

docs/templates/monai/public/main.css

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -23,11 +23,11 @@
2323
--highlight-dark: #03a3a3;
2424
--accent-dim: #e0e0e0;
2525
--accent-super-dim: #f3f3f3;
26-
--font-color: #34393e;
26+
--font-color: light-dark(#34393e, #fff);
2727
--card-box-shadow: 0 1px 2px 0 rgba(61, 65, 68, 0.06), 0 1px 3px 1px rgba(61, 65, 68, 0.16);
2828
--search-box-shadow: 0 1px 2px 0 rgba(41, 45, 48, 0.36), 0 1px 3px 1px rgba(41, 45, 48, 0.46);
2929
--transition: 350ms;
30-
--hover: #eff7e0;
30+
--hover: light-dark(#eff7e0, #34393e);
3131
}
3232

3333
body {
@@ -54,8 +54,7 @@ a:hover,
5454
a:focus {
5555
color: var(--highlight-light);
5656
text-decoration: none;
57-
color: #03a3a3;
58-
background-color: #eff7e0;
57+
background-color: var(--hover);
5958
}
6059

6160
.toc .nav>li.active>a {

0 commit comments

Comments
 (0)