Skip to content

Commit 08e64e0

Browse files
authored
Aded docs for rust_unpretty (#3327)
1 parent 8a5afe1 commit 08e64e0

File tree

3 files changed

+18
-2
lines changed

3 files changed

+18
-2
lines changed

docs/BUILD.bazel

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,20 @@ stardoc(
6161
"rust_proc_macro",
6262
"rust_test",
6363
"rust_test_suite",
64+
"rust_unpretty_aspect",
65+
"rust_unpretty",
66+
],
67+
table_of_contents_template = "@stardoc//stardoc:templates/markdown_tables/table_of_contents.vm",
68+
deps = [":all_docs"],
69+
)
70+
71+
stardoc(
72+
name = "rust_unpretty",
73+
out = "src/rust_unpretty.md",
74+
input = "@rules_rust//rust:defs.bzl",
75+
symbol_names = [
76+
"rust_unpretty_aspect",
77+
"rust_unpretty",
6478
],
6579
table_of_contents_template = "@stardoc//stardoc:templates/markdown_tables/table_of_contents.vm",
6680
deps = [":all_docs"],
@@ -270,6 +284,7 @@ mdbook(
270284
":rust_repositories",
271285
":rust_settings",
272286
":rust_toolchains",
287+
":rust_unpretty",
273288
":rust_wasm_bindgen",
274289
":rust_wasm_bindgen_rules_js",
275290
],

docs/rust_analyzer.vm

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ to ensure a `rust-project.json` file is created and up to date when the editor i
5656
"command": "bazel",
5757
"args": [
5858
"run",
59-
"//tools/rust_analyzer:gen_rust_project"
59+
"@rules_rust//tools/rust_analyzer:gen_rust_project"
6060
],
6161
"options": {
6262
"cwd": "${workspaceFolder}"
@@ -65,7 +65,7 @@ to ensure a `rust-project.json` file is created and up to date when the editor i
6565
"problemMatcher": [],
6666
"presentation": {
6767
"reveal": "never",
68-
"panel": "dedicated",
68+
"panel": "dedicated"
6969
},
7070
"runOptions": {
7171
"runOn": "folderOpen"

docs/src/SUMMARY.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
- [rustdoc](./rust_doc.md)
1212
- [cargo](./cargo.md)
1313
- [rust_analyzer](./rust_analyzer.md)
14+
- [unpretty](./rust_unpretty.md)
1415
- [Settings](./settings.md)
1516
- [Rust Settings](./rust_settings.md)
1617
- [Cargo Settings](./cargo_settings.md)

0 commit comments

Comments
 (0)