Skip to content

Commit

Permalink
bazel: add targets to generate cluster setting/functions documentation
Browse files Browse the repository at this point in the history
I validated that these work and have a clean `diff` with what's in tree.

Closes #65808.
Closes #65811.

Release note: None
  • Loading branch information
rickystewart committed May 28, 2021
1 parent b46be31 commit e20d10a
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 0 deletions.
13 changes: 13 additions & 0 deletions docs/generated/settings/BUILD.bazel
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
genrule(
name = "settings",
outs = ["settings.html"],
cmd = "$(location //pkg/cmd/cockroach-short) gen settings-list --format=html > $@",
exec_tools = ["//pkg/cmd/cockroach-short"],
)

genrule(
name = "settings_for_tenants",
outs = ["settings-for-tenants.txt"],
cmd = "$(location //pkg/cmd/cockroach-short) gen settings-list --without-system-only > $@",
exec_tools = ["//pkg/cmd/cockroach-short"],
)
17 changes: 17 additions & 0 deletions docs/generated/sql/BUILD.bazel
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
genrule(
name = "sql",
outs = [
"aggregates.md",
"functions.md",
"operators.md",
"window_functions.md",
],
cmd = """
$(location //pkg/cmd/docgen) functions . --quiet
mv aggregates.md $(location aggregates.md)
mv functions.md $(location functions.md)
mv operators.md $(location operators.md)
mv window_functions.md $(location window_functions.md)
""",
exec_tools = ["//pkg/cmd/docgen"],
)

0 comments on commit e20d10a

Please sign in to comment.