mirror of
https://github.com/bazel-contrib/bazel-lib
synced 2024-11-30 01:41:21 +00:00
2.2 KiB
Generated
2.2 KiB
Generated
Public API for docs helpers
stardoc_with_diff_test
stardoc_with_diff_test(name, bzl_library_target, kwargs)
Creates a stardoc target that can be auto-detected by update_docs to write the generated doc to the source tree and test that it's up to date.
This is helpful for minimizing boilerplate in repos wih lots of stardoc targets.
PARAMETERS
update_docs
update_docs(name, kwargs)
Stamps an executable run for writing all stardocs declared with stardoc_with_diff_test to the source tree.
This is to be used in tandem with stardoc_with_diff_test()
to produce a convenient workflow
for generating, testing, and updating all doc files as follows:
bazel build //{docs_folder}/... && bazel test //{docs_folder}/... && bazel run //{docs_folder}:update
eg.
bazel build //docs/... && bazel test //docs/... && bazel run //docs:update
PARAMETERS
Name | Description | Default Value |
---|---|---|
name | the name of executable target | "update" |
kwargs | Other common named parameters such as tags or visibility |
none |