docsgen

command module
v0.0.0-...-c4133e1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 20, 2026 License: Apache-2.0 Imports: 9 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

Command docsgen produces the Crucible docs site's generated content: the API reference (rendered from godoc via gomarkdoc) and the Mermaid diagrams built from the real example machines.

It is run from the repository root before the Astro build, in both the PR docs job and the Pages deploy workflow, so the published reference and diagrams are always regenerated from the current source and never committed (the output directories are gitignored). The generator is deterministic and idempotent: running it twice yields byte-identical output.

Usage, from the repo root:

go run ./tools/docsgen

All output paths are resolved relative to the repository root, which is located by walking up from this file's module to the directory that holds go.work. This keeps the tool independent of the caller's working directory.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL