stardoc

Generates documentation for exported skylark rule definitions in a target starlark file.

This rule is an experimental replacement for the existing skylark_doc rule.

ATTRIBUTES

NameDescriptionTypeMandatory
nameA unique name for this target.Namerequired
aspect_templateThe input file template for generating documentation of aspects.Labeloptional
depsA list of skylark_library dependencies which the input depends on.List of labelsoptional
formatThe format of the output file.Stringoptional
func_templateThe input file template for generating documentation of functions.Labeloptional
header_templateThe input file template for the header of the output documentation.Labeloptional
inputThe starlark file to generate documentation for.Labeloptional
outThe (markdown) file to which documentation will be output.Labelrequired
provider_templateThe input file template for generating documentation of providers.Labeloptional
rendererThe location of the renderer tool.Labeloptional
rule_templateThe input file template for generating documentation of rules.Labeloptional
semantic_flagsA list of canonical flags to affect Starlark semantics for the Starlark interpretter
during documentation generation. This should only be used to maintain compatibility with
non-default semantic flags required to use the given Starlark symbols.

For example, if //foo:bar.bzl does not build except when a user would specify
--incompatible_foo_semantic=false, then this attribute should contain
“--incompatible_foo_semantic=false”.
List of stringsoptional
stardocThe location of the stardoc tool.Labeloptional
symbol_namesA list of symbol names to generate documentation for. These should correspond to
the names of rule definitions in the input file. If this list is empty, then
documentation for all exported rule definitions will be generated.
List of stringsoptional