Skip to content

Commit 7dc4171

Browse files
authored
Improved Docs (#11)
* Added github links * Decreased font size * Added Dark Mode
1 parent edbc966 commit 7dc4171

4 files changed

Lines changed: 39 additions & 45 deletions

File tree

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
1717

1818
### Changed
1919

20+
- Documentation formatting improved. Added darkmode and links to `Github` (PR: #11).
2021
- `FileResultLogger` now accepts `pathlib.Path` for argument `output_dir` and has an `overwrite` argument to prevent overwriting of existing logs files.
2122

2223
### Fixed

docs/assets/favicon.svg

Lines changed: 11 additions & 0 deletions
Loading

docs/css/mkdocstrings.css

Lines changed: 2 additions & 43 deletions
Original file line numberDiff line numberDiff line change
@@ -36,22 +36,19 @@
3636
border-bottom: 1px solid
3737
color-mix(in srgb, var(--maseval-teal-primary) 25%, transparent);
3838
margin-bottom: 0.5rem;
39-
font-size: 1.1rem;
4039
}
4140

4241
/* Make the object name (like class names) more prominent */
4342
.doc .doc-object-name,
4443
.doc .doc-class-name {
4544
font-weight: 700;
4645
color: var(--maseval-teal-dark);
47-
font-size: 1.15rem;
4846
}
4947

5048
/* Cleaner label chips with teal theme */
5149
.doc-label {
5250
border-radius: 8px;
5351
padding: 2px 6px;
54-
font-size: 0.8rem;
5552
background-color: color-mix(
5653
in srgb,
5754
var(--maseval-teal-primary) 12%,
@@ -106,7 +103,6 @@
106103

107104
/* Smaller signature font in code boxes */
108105
.doc-signature pre code {
109-
font-size: 0.825rem !important;
110106
line-height: 1.4;
111107
}
112108

@@ -119,25 +115,8 @@
119115
margin-bottom: 0.3rem;
120116
}
121117

122-
/* Increase font size in parameter tables/details */
123-
.doc-parameters,
124-
.doc-other-parameters,
125-
.doc-returns,
126-
.doc-raises {
127-
font-size: 0.85rem !important;
128-
}
129-
130-
/* Unified font size for all code elements */
131-
.md-typeset code {
132-
font-size: 0.85rem !important;
133-
}
134-
135-
.md-typeset pre code {
136-
font-size: 0.85rem !important;
137-
}
138-
139-
/* Subtle teal-themed code background */
140-
.md-typeset code:not(.doc-symbol-heading) {
118+
/* Subtle teal-themed inline code background */
119+
.md-typeset code:not(pre code):not(.doc-symbol-heading) {
141120
background: color-mix(in srgb, var(--maseval-teal-primary) 8%, transparent);
142121
padding: 0.05rem 0.3rem;
143122
border-radius: 4px;
@@ -146,25 +125,6 @@
146125
color-mix(in srgb, var(--maseval-teal-primary) 15%, transparent);
147126
}
148127

149-
/* Normalize font size in example code blocks */
150-
.doc-contents .highlight pre,
151-
.doc-contents .highlight code,
152-
.doc-contents pre code {
153-
font-size: 0.85rem !important;
154-
}
155-
156-
/* Normalize text size in docstring content - examples, descriptions */
157-
.doc-contents .md-typeset,
158-
.doc-contents p,
159-
.doc-contents li {
160-
font-size: 0.85rem !important;
161-
}
162-
163-
/* Ensure admonitions (note, warning boxes) have unified text size */
164-
.doc-contents .admonition {
165-
font-size: 0.85rem !important;
166-
}
167-
168128
/* More compact vertical rhythm in docstrings */
169129
.doc-contents .md-typeset p {
170130
margin: 0.4rem 0;
@@ -183,7 +143,6 @@
183143

184144
/* Reduce section heading size in docstrings */
185145
.doc-section-title {
186-
font-size: 0.95rem;
187146
font-weight: 600;
188147
color: var(--maseval-teal-primary);
189148
margin-top: 0.8rem;

mkdocs.yml

Lines changed: 25 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,16 +2,39 @@ site_name: Multi-Agent System Evaluation
22
site_description: "System-level multi-agent benchmarks"
33
docs_dir: docs
44
site_dir: site
5+
site_author: ParameterLab
6+
site_url: https://maseval.readthedocs.io/en/stable/
7+
repo_name: parameterlab/maseval
8+
repo_url: https://github.com/parameterlab/maseval
9+
edit_uri: edit/main/docs/
510

611
theme:
712
name: material
813
logo: assets/logo-short.svg
14+
favicon: assets/favicon.svg
915
palette:
10-
primary: teal
11-
accent: teal
16+
# Light mode
17+
- media: "(prefers-color-scheme: light)"
18+
scheme: default
19+
primary: teal
20+
accent: teal
21+
toggle:
22+
icon: material/brightness-7
23+
name: Switch to dark mode
24+
25+
# Dark mode
26+
- media: "(prefers-color-scheme: dark)"
27+
scheme: slate
28+
primary: teal
29+
accent: teal
30+
toggle:
31+
icon: material/brightness-4
32+
name: Switch to light mode
33+
1234
features:
1335
- navigation.sections
1436
- content.code.copy
37+
1538
extra_css:
1639
- css/mkdocstrings.css
1740

0 commit comments

Comments
 (0)