Sign in

Search issue titles and bodies, change requests and comments. Private repositories you cannot read are not included.

vole
Site
Clone

Read only, no credentials:

https://rodent.software/vole.git

Write over SSH with a registered key:

git clone ssh://git@rodent.software/vole.git

Self-hosted forge that lives in your Git repo.

Rebuild the docs as a MkDocs site

1f8afe73515d58c14774878f30f33bfe318d0c3b · Keenan Nemetz · 21d ago · parent 7c02af12

Rebuild the docs as a MkDocs site

Replace the mdBook configuration with MkDocs and a local theme that uses
Vole's Everforest dark/medium palette. Move the contents order into nav,
make docs/index.md the homepage, and carry the install, quickstart,
deployment, and reference pages into the new tree.

Add the docs build to verify, with pinned requirements and python3-venv in
the image, so a broken nav entry or theme asset fails before a pages
deploy.

docs-theme/README.md +36

@@ -0,0 +1,36 @@
1 # Documentation theme
2
3 `mkdocs.yml` sets `custom_dir: docs-theme`, so this directory is the whole
4 MkDocs theme. It is local on purpose: the docs use the forge's default Everforest
5 dark/medium palette and typography, and a downloaded theme would add a second
6 visual language (and another dependency) to keep in step.
7
8 | File | What it is |
9 |---|---|
10 | `base.html` | Document shell: top bar, page layout, search palette, footer |
11 | `nav.html` | Recursive sidebar built from `mkdocs.yml`'s `nav` |
12 | `toc.html` | Recursive "On this page" column from `page.toc` |
13 | `404.html` | Missing-path page; listed under `theme.static_templates` |
14 | `assets/docs.css` | Palette tokens, layout, type, tables, code, search, responsive rules |
15 | `assets/docs.js` | Mobile navigation drawer, search palette, code copy buttons |
16 | `assets/pygments.css` | Token colours for fenced code, generated (see below) |
17 | `assets/fonts/` | Lexend and JetBrains Mono WOFF2 subsets, copied from `server/web/static/fonts/` |
18 | `assets/vole-head*.png` | Brand mark, copied from `server/web/static/` |
19 | `assets/favicon*` | Favicons, copied from `server/web/static/` |
20
21 The `:root` block in `assets/docs.css` is the Everforest dark/medium token set
22 from `server/web/static/everforest.css` with the layout tokens from
23 `server/web/static/vole.css`. A change to the forge palette belongs in both
24 places; the docs are intentionally dark-only, so there is no light block to keep
25 in sync.
26
27 `assets/pygments.css` is generated. After changing the token mapping, regenerate
28 it with the docs requirements installed:
29
30 ```sh
31 python3 scripts/gen-pygments-css.py
32 ```
33
34 The fonts and brand assets are copies rather than links because
35 `vole pages deploy` skips symbolic links: the published branch must contain the
36 files it serves. Their licenses sit beside them in `assets/fonts/`.