docsgen

package
v1.80.3 Latest Latest
Warning

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

Go to latest
Published: Nov 3, 2026 License: MIT Imports: 10 Imported by: 0 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

Package docsgen writes the generated regions of the documentation from the files that are the source of truth: the JSON schemas, the audit catalogue, the chart's golden alert render and the ADRs.

A region is the text between `<!-- generated: name -->` and `<!-- /generated -->` in a Markdown page. Only the inside of a region is ever rewritten, and the output is a pure function of the sources, so the same tree always yields the same bytes. A marker no generator knows is an error, so a region cannot silently go unchecked.

Not generated, on purpose: the sluisctl command reference (the CLI is stdlib `flag` per command with hand-written usage, so there is no command tree to read) and the telemetry metric catalogue (instruments are created inline across the packages, and their labels exist only at the call sites).

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Run

func Run(root string, write bool) ([]string, error)

Run regenerates every region. With write it rewrites the pages that differ; without it nothing is written. It returns "page: region" for each region that was not what the generator writes.

Types

This section is empty.

Jump to

Keyboard shortcuts

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