compdoc

command
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: Dec 2, 2026 License: MIT Imports: 21 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 compdoc extracts the usage documentation of the component pages of the Tango documentation site: for every component of the live catalog it reports the public entry points (constructor signatures and doc comments), the builder types they return with all their exported methods, the exported fields of struct types taken as parameters, and the Go source of every gallery demo of the component. It uses only the standard library (go/build, go/parser, go/ast, go/doc).

go run ./site/tools/compdoc -root . < catalog.json > component-docs.json

The input is the component catalog written by site/tools/build-playground.mjs ({components: [{id, names, demos}], demos: [{name, title, source, line}]}); the output is described by the output type below. Files are selected with the darwin/arm64 build constraints, as site/tools/apigen does, so the signatures match the API reference pages.

Jump to

Keyboard shortcuts

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