docref

command
v0.0.13 Latest Latest
Warning

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

Go to latest
Published: Nov 7, 2026 License: MIT Imports: 17 Imported by: 0

Documentation

Overview

Command docref writes the API reference of the guide's plugin pages from the plugins themselves: their Go source and plugin.json. A page includes what it writes, so the reference can't drift from the code.

go run ./tools/docref -out ../nimbus-starter/resources/views/native/ref motion

Go signatures don't say what a parameter is for, so a function's comment can, in lines godoc leaves out:

//nimbus:param hz readings a second; 30 if it's 0 or less
//nimbus:returns why it stopped
//nimbus:platforms ios

With no names it does every plugin. It fails on a parameter with no description or a plugin with no test results, so that nothing goes out half-documented.

Jump to

Keyboard shortcuts

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