docs

package
v0.15.0 Latest Latest
Warning

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

Go to latest
Published: Nov 5, 2026 License: MIT Imports: 7 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 docs implements the deterministic API reference generator and checker for this SDK. It wraps a pinned gomarkdoc release invoked via os/exec (not required into go.mod) and post-processes the output to strip line-anchor churn from source links so the committed docs/api/reference.md is a stable byte-for-byte artifact of the current commit.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Check

func Check(repoRoot string) error

Check regenerates docs/api/reference.md, verifies zero drift against the working tree, and runs the normalization / core-surface / internal-link gates in sequence. Any failure is returned as an error — the CLI wrapper translates it to a non-zero exit.

func Generate

func Generate(repoRoot string) error

Generate regenerates docs/api/reference.md from the current source tree. repoRoot must be the repo root (module directory). The output directory is wiped before write so deleted/renamed exported symbols show up as diff noise (no orphan pages) — this is the drift-gate contract.

Types

This section is empty.

Directories

Path Synopsis
cmd
check command
Command check verifies docs/api/reference.md matches the current source tree (drift gate), that every source link is normalized, that the core public surface appears in the output, and that internal relative links resolve.
Command check verifies docs/api/reference.md matches the current source tree (drift gate), that every source link is normalized, that the core public surface appears in the output, and that internal relative links resolve.
generate command
Command generate rewrites docs/api/reference.md from the current source tree.
Command generate rewrites docs/api/reference.md from the current source tree.

Jump to

Keyboard shortcuts

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