gendocs

command
v1.10.0 Latest Latest
Warning

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

Go to latest
Published: Nov 25, 2026 License: MIT Imports: 14 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

Command gendocs regenerates per-service documentation from each service's PARITY.md audit manifest under services/. For every services/<svc> that has a PARITY.md, it writes a friendly services/<svc>/README.md summarizing audit coverage; it also builds a category-grouped service table and injects it into the root README.md between marker comments.

services/qldb and services/qldbsession have no PARITY.md (they're marked REMOVED via hand-written README.md files) and are never touched beyond being listed, as "Removed", in the root table.

Usage:

go run ./cmd/gendocs

Idempotent: running it twice against unchanged PARITY.md files produces no further changes.

Package main implements cmd/gendocs, a documentation generator that reads each service's services/<svc>/PARITY.md audit manifest and emits a friendly services/<svc>/README.md plus a category-grouped service table injected into the root README.md.

The frontmatter in PARITY.md is YAML-shaped but not valid YAML: note: fields are unquoted free text containing commas, colons, and braces inside {...} flow maps, which a real YAML parser chokes on or mis-parses. This file is therefore a deliberately tolerant, line-based parser rather than a yaml.Unmarshal call — see parser_test.go for the specific shapes it was built against. ops:/families: entries are accepted in either YAML form — inline flow maps ("OpName: {wire: ok, ...}") or block mappings ("OpName:" followed by indented "wire:"/... field lines) — since both are ordinary, valid YAML and rejecting one silently undercounts a manifest that is otherwise materially correct (gopherstack-7o96).

Jump to

Keyboard shortcuts

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