checkdocs

command
v0.13.0 Latest Latest
Warning

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

Go to latest
Published: Oct 14, 2026 License: Apache-2.0 Imports: 6 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 checkdocs is the doc gate. It fails when a Markdown file in this repository cites something that is no longer there.

The docs anchor their claims to the source tree — `sdk/tasks/internal/vfs`, `cmd/root.go`, `TESTING.md#conventions`. Nothing else in the project checks those: a rename leaves the citation reading as if it were still true, and the reader follows a dead path. Four classes are caught:

  1. A `cmd/…` or `sdk/…` path that no longer exists on disk.
  2. A citation pinned to a LINE NUMBER (`path:42`, `path#L42`). It rots faster than the path ever does — it survives no edit above it — and this gate cannot see that it moved, because the file still exists. Cite the symbol instead: it is stable across edits, and it is greppable, which a line number is not.
  3. A relative Markdown link whose target file, or whose `#anchor` inside that file, does not resolve.
  4. An audience leak in docs/user-guide/ — a Go source path or a link into docs/specs/ on a page written for someone who never opens this repository (docs/DOCUMENTING.md owns that rule).

Class 3 reads its anchor table outside fenced blocks only: a `#` line inside a fence is an example or a shell comment, and GitHub mints no anchor for it.

Every spelling of a citation counts, fenced blocks included: a stale path in a code block misleads a reader exactly as far as one in prose.

Jump to

Keyboard shortcuts

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