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.
DEVELOPMENT.md +19−8
| @@ -6,12 +6,9 @@ | |||
| 6 | 6 | go build -tags libsqlite3,sqlite_fts5 -o vole ./cmd/vole | |
| 7 | 7 | ``` | |
| 8 | 8 | ||
| 9 | Vole links SQLite dynamically, so a build needs a C compiler and the SQLite | ||
| 10 | development headers (`libsqlite3-dev` on Debian and Ubuntu, `sqlite-devel` on | ||
| 11 | Fedora and RHEL). The library must be built with FTS5, which the distributions | ||
| 12 | above enable; global search uses it. The binary needs `libsqlite3.so.0` on the | ||
| 13 | machine that runs it. `go.mod` pins the Go toolchain, so an older `go` on your | ||
| 14 | `PATH` fetches the right one on the first build. | ||
| 9 | That needs a C compiler, the SQLite development headers, and a `go` new enough for | ||
| 10 | `go.mod`; [Install § Build from source](docs/install.md#build-from-source) lists | ||
| 11 | them and explains the two build tags. | ||
| 15 | 12 | ||
| 16 | 13 | ## Test | |
| 17 | 14 | ||
| @@ -19,6 +16,20 @@ machine that runs it. `go.mod` pins the Go toolchain, so an older `go` on your | |||
| 19 | 16 | go test -tags sqlite_fts5 ./... | |
| 20 | 17 | ``` | |
| 21 | 18 | ||
| 19 | ## Documentation | ||
| 20 | |||
| 21 | ```sh | ||
| 22 | python3 -m venv .venv-docs | ||
| 23 | . .venv-docs/bin/activate | ||
| 24 | pip install -r requirements.txt | ||
| 25 | mkdocs build --strict | ||
| 26 | ``` | ||
| 27 | |||
| 28 | The site is written to `dist/site`, which `vole pages deploy dist/site` | ||
| 29 | publishes. `mkdocs serve` rebuilds it while you edit. The theme in `docs-theme/` | ||
| 30 | uses the same Everforest dark/medium palette and fonts as the forge, so a docs | ||
| 31 | change does not need a separate visual language. | ||
| 32 | |||
| 22 | 33 | ## Before you push | |
| 23 | 34 | ||
| 24 | 35 | ```sh | |
| @@ -26,8 +37,8 @@ vole workflow run verify | |||
| 26 | 37 | ``` | |
| 27 | 38 | ||
| 28 | 39 | `verify` is everything CI runs: formatting, vet, build, the license and | |
| 29 | vulnerability scans, the packages, the deployment files, Markdown links, and the | ||
| 30 | tests. Its steps live in | ||
| 40 | vulnerability scans, the packages, the deployment files, Markdown links, the | ||
| 41 | documentation build, and the tests. Its steps live in | ||
| 31 | 42 | [`.vole/workflows/verify.yaml`](.vole/workflows/verify.yaml), so a local run and a | |
| 32 | 43 | pushed run execute the same commands in the same image. That means it needs a | |
| 33 | 44 | container runtime (Docker, Podman, or nerdctl) rather than the tools on your | |