-
Notifications
You must be signed in to change notification settings - Fork 3.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
bazel: add targets to generate cluster setting/functions documentation
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
1 parent
b46be31
commit e20d10a
Showing
2 changed files
with
30 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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"], | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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"], | ||
) |