Artifact 7bc6bf5b5f8d92ddc82b96b071f61db1bbfac706a6f886109a5a07ece104e667:
- File
docs/site/content/docs/examples.md
— part of check-in
[d7fd910ffc]
at
2026-10-23 21:12:43
on branch main
— docs: generate the site's data, CLI reference and llms.txt from the code
tools/docsgen/engine records one check-in as an artifact, as its derived rows and as the cards of a pull, from a real engine run with fixed inputs. tools/docsgen/conformance turns TestCoverage's report into per-draft and per-requirement data. scripts/gen-cli-docs.sh writes one page per command group from the libfossil binary's --help. gen-llms-txt.sh and check-llms-txt.sh are ported from dagnats, and sync-version.sh now takes the highest release tag and writes the go.mod version too.
scripts/check-docs-generated.sh regenerates everything into a scratch dir and fails on any difference; make docs-check and the test-docs CI job run it. (user: [email protected], size: 1001) [annotate] [blame] [check-ins using] [more...]
- File
docs/site/content/docs/examples/_index.md
— part of check-in
[93ad669695]
at
2026-10-23 20:53:50
on branch main
— docs: reorganise into get-started, concepts, guides, reference
Move the flat docs pages into sections, keep each old URL as an alias, split sparse cones from horizons, and add concept pages for artifacts, repository state, sync, sub-manifests and signing plus a settings reference. Audit the moved pages against the code and fix drift. (user: [email protected], size: 1001) [annotate] [blame] [check-ins using]
title: Examples weight: 50
aliases: ["/examples/"]
Runnable examples live in the repo. Each is a self-contained main.go you can clone and run.
embed-repo-api
Minimal example of embedding libfossil as a library in a Go application. Walks the basic repo lifecycle — register the default pure-Go SQLite driver via blank import, create a .fossil in a temp directory, close, re-open, write a commit, read the timeline, list files, clean up.
wasm
Building libfossil for a generic WASI Preview 1 target. The compiled .wasm is not tied to any specific runtime and runs under wasmtime, wazero, or any WASI P1 host. Uses the ncruces driver — the default modernc driver pulls in syscalls (pthread, etc.) that WASI doesn't provide.