bazelbuild / stardoc

Stardoc: Starlark Documentation Generator
Apache License 2.0
103 stars 40 forks source link

Refactor param rendering in summary line #230

Closed tetromino closed 1 month ago

tetromino commented 1 month ago

Switch from plain strings to a new Param class with separate name and anchor, and transform every param-like entity (FunctionParamInfo, AttributeInfo, or ProviderFieldInfo) into it.

This commit does not change rendering result in any way, but sets us up to make the following possible:

Working towards https://github.com/bazelbuild/stardoc/issues/225

(See work in progress: https://github.com/tetromino/stardoc/tree/varargs2)