Starlark rule for stardoc: a documentation generator tool written in Java.

stardoc

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

PARAMETERS

NameDescriptionDefault Value
nameThe name of the stardoc target.none
inputThe starlark file to generate documentation for (mandatory).none
outThe file to which documentation will be output (mandatory).none
depsA list of bzl_library dependencies which the input depends on.[]
formatThe format of the output file. Valid values: ‘markdown’ or ‘proto’.“markdown”
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.[]
semantic_flagsA list of canonical flags to affect Starlark semantics for the Starlark interpreter 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”.
[]
stardocThe location of the stardoc tool.Label(“//stardoc:prebuilt_stardoc_binary”)
rendererThe location of the renderer tool.Label(“//stardoc:renderer”)
aspect_templateThe input file template for generating documentation of aspectsLabel(“//stardoc:templates/markdown_tables/aspect.vm”)
func_templateThe input file template for generating documentation of functions.Label(“//stardoc:templates/markdown_tables/func.vm”)
header_templateThe input file template for the header of the output documentation.Label(“//stardoc:templates/markdown_tables/header.vm”)
provider_templateThe input file template for generating documentation of providers.Label(“//stardoc:templates/markdown_tables/provider.vm”)
rule_templateThe input file template for generating documentation of rules.Label(“//stardoc:templates/markdown_tables/rule.vm”)
kwargsFurther arguments to pass to stardoc.none