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

NameDescriptionTypeMandatoryDefault
nameA unique name for this target.Namerequired
aspect_templateThe input file template for generating documentation of aspects.Labeloptional//stardoc:templates/markdown_tables/aspect.vm
depsA list of skylark_library dependencies which the input depends on.List of labelsoptional[]
formatThe format of the output file. Valid values: ‘markdown’ or ‘proto’.Stringoptional“markdown”
func_templateThe input file template for generating documentation of functions.Labeloptional//stardoc:templates/markdown_tables/func.vm
header_templateThe input file template for the header of the output documentation.Labeloptional//stardoc:templates/markdown_tables/header.vm
inputThe starlark file to generate documentation for.LabeloptionalNone
outThe (markdown) file to which documentation will be output.Labelrequired
provider_templateThe input file template for generating documentation of providers.Labeloptional//stardoc:templates/markdown_tables/provider.vm
rendererThe location of the renderer tool.Labeloptional//stardoc:renderer
rule_templateThe input file template for generating documentation of rules.Labeloptional//stardoc:templates/markdown_tables/rule.vm
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//stardoc:stardoc
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[]