Skip to content

Commit 5b47311

Browse files
sbryngelsonclaude
andcommitted
Migrate docs to MkDocs Material + Read the Docs
Move content into docs/, add MkDocs config with Material theme matching comp-physics.group branding, add .readthedocs.yaml for deployment via Zensical, fix markdown rendering issues, add markdownlint CI, remove stale TOC workflows. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent df7c3d4 commit 5b47311

34 files changed

Lines changed: 645 additions & 787 deletions

.github/toc-generator.yml

Lines changed: 0 additions & 10 deletions
This file was deleted.
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
name: Markdown Lint
2+
3+
on:
4+
push:
5+
pull_request:
6+
workflow_dispatch:
7+
8+
jobs:
9+
lint:
10+
name: Markdown Lint
11+
runs-on: ubuntu-latest
12+
steps:
13+
- uses: actions/checkout@v4
14+
15+
- name: Run markdownlint
16+
uses: DavidAnson/markdownlint-cli2-action@v19
17+
with:
18+
globs: "docs/**/*.md"

.github/workflows/spelling.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
name: Spell Check
22
on:
33
push:
4+
pull_request:
45
workflow_dispatch:
56

67
jobs:
@@ -9,7 +10,7 @@ jobs:
910
runs-on: ubuntu-latest
1011
steps:
1112
- name: Checkout
12-
uses: actions/checkout@v3
13+
uses: actions/checkout@v4
1314

1415
- name: Spell Check
1516
uses: crate-ci/typos@master

.github/workflows/update-toc.yml

Lines changed: 0 additions & 36 deletions
This file was deleted.

.gitignore

Lines changed: 1 addition & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1 @@
1-
*tags
2-
tags
3-
4-
*.DS_Store
5-
.DS_Store
6-
7-
**.aux
8-
**.fls
9-
**.synctex.gz
10-
**.log
11-
**.fdb_latexmk
12-
**.bbl
13-
**.blg
14-
**.spl
15-
**.out
1+
site/

.markdownlint.yaml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
default: false
2+
3+
# Rules that affect rendering
4+
MD001: true # heading increment
5+
MD032: true # blank lines around lists
6+
MD012: true # no multiple blank lines
7+
MD009: true # no trailing spaces

.readthedocs.yaml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
version: 2
2+
3+
build:
4+
os: ubuntu-24.04
5+
tools:
6+
python: "3.12"
7+
commands:
8+
- pip install -r docs/requirements.txt
9+
- zensical build
10+
11+
mkdocs:
12+
configuration: mkdocs.yml

docs/assets/extra.css

Lines changed: 65 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,65 @@
1+
:root {
2+
--md-primary-fg-color: #292929;
3+
--md-primary-fg-color--light: #3a3d3f;
4+
--md-primary-fg-color--dark: #292929;
5+
--md-accent-fg-color: #c0995e;
6+
--md-accent-fg-color--transparent: #c0995e1a;
7+
}
8+
9+
[data-md-color-scheme="slate"] {
10+
--md-default-bg-color: #292929;
11+
--md-default-bg-color--light: #2e3133;
12+
--md-default-bg-color--lighter: #3a3d3f;
13+
--md-default-bg-color--lightest: #454849;
14+
}
15+
16+
.md-header {
17+
background-color: #292929;
18+
color: #fff;
19+
}
20+
21+
.md-header a,
22+
.md-header__topic,
23+
.md-header__title {
24+
color: #fff;
25+
}
26+
27+
.md-header__topic {
28+
font-weight: 700;
29+
}
30+
31+
a {
32+
color: #c0995e;
33+
}
34+
35+
a:hover {
36+
color: #d4b07a;
37+
}
38+
39+
.md-nav__link--active,
40+
.md-nav__link:hover {
41+
color: #c0995e;
42+
}
43+
44+
.md-nav--secondary .md-nav__link--active {
45+
color: #c0995e;
46+
background-color: transparent;
47+
border-left: 2px solid #c0995e;
48+
}
49+
50+
.md-typeset a {
51+
color: #c0995e;
52+
}
53+
54+
.md-typeset a:hover {
55+
color: #d4b07a;
56+
}
57+
58+
.md-header__button.md-logo img {
59+
height: 2.5rem;
60+
width: auto;
61+
}
62+
63+
.md-footer {
64+
display: none;
65+
}

docs/assets/favicon.ico

178 KB
Binary file not shown.

docs/assets/logo-icon.png

20.2 KB
Loading

0 commit comments

Comments
 (0)