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.
Documentation theme
mkdocs.yml sets custom_dir: docs-theme, so this directory is the whole
MkDocs theme. It is local on purpose: the docs use the forge’s default Everforest
dark/medium palette and typography, and a downloaded theme would add a second
visual language (and another dependency) to keep in step.
| File | What it is |
|---|---|
base.html |
Document shell: top bar, page layout, search palette, footer |
nav.html |
Recursive sidebar built from mkdocs.yml’s nav |
toc.html |
Recursive “On this page” column from page.toc |
404.html |
Missing-path page; listed under theme.static_templates |
assets/docs.css |
Palette tokens, layout, type, tables, code, search, responsive rules |
assets/docs.js |
Mobile navigation drawer, search palette, code copy buttons, Mermaid init |
assets/pygments.css |
Token colours for fenced code, generated (see below) |
assets/mermaid.min.js |
Mermaid 11.12.2, loaded only on pages that opt in |
assets/mermaid.LICENSE |
Mermaid MIT licence |
assets/fonts/ |
Lexend and JetBrains Mono WOFF2 subsets, copied from server/web/static/fonts/ |
assets/vole-head*.png |
Brand mark, copied from server/web/static/ |
assets/favicon* |
Favicons, copied from server/web/static/ |
Static page images live under docs/assets/, not here: MkDocs copies that tree
with the site, while this directory is the theme. Diagrams are Mermaid source in
the page, not assets.
The article is the flexible grid column. Both side columns sit at the top of the page and scroll with it: the page is one scroll, with no pinned bar or independently scrolling column. The page outline on the right is hidden below 1360px, where the article takes that width.
Page shape
A guide starts with prerequisites, then numbered steps with a visible result, a failure section if the steps can fail, and two or three next links. A reference has a definition, a table or signature, one complete example, and the edge cases. When a page grows, put the reference half in indented H3 subsections at the bottom instead of adding a page; keep the task path at the top so the page still reads in order.
Facts have one home. A guide may show a minimal config snippet; the reference owns every key, default, and limit. Do not repeat a default in both places.
Components
| Markdown | Use for |
|---|---|
!!! note, !!! tip, !!! warning, !!! danger |
A caveat at the point of decision; danger is for secrets, restore, and irreversible actions |
.start-grid / .start-card |
The three jobs a reader can arrive with, on the overview only |
<div class="mermaid" data-source="..."> in <figure class="doc-figure"> |
A Mermaid diagram with a caption; set mermaid: true in the page front matter |
Diagrams are Mermaid source rendered in the browser. A page that uses one sets
mermaid: true in its front matter, and base.html loads mermaid.min.js only
for that page. Put the source in the data-source attribute as one line with
; between statements, and escape quotes and <br/> as HTML entities. Keeping
the source out of the element’s text means MkDocs search does not index graph
syntax. Keep labels short: Mermaid sizes nodes to their text, but a subgraph
title wider than its contents can still be clipped. The bundled Mermaid is
11.12.2; keep the version and its licence file together when updating it.
Reach for a table first when the content is an inventory, a client/credential matrix, or a list of paths. Mermaid is for a process with arrows; a table wraps and stays readable on a phone.
The :root block in assets/docs.css is the Everforest dark/medium token set
from server/web/static/everforest.css with the layout tokens from
server/web/static/vole.css. A change to the forge palette belongs in both
places; the docs are intentionally dark-only, so there is no light block to keep
in sync.
assets/pygments.css is generated. After changing the token mapping, regenerate
it with the docs requirements installed:
python3 scripts/gen-pygments-css.py
The fonts and brand assets are copies rather than links because
vole pages deploy skips symbolic links: the published branch must contain the
files it serves. Their licenses sit beside them in assets/fonts/.