Unnamed repository; edit this file 'description' to name the repository.
Diffstat (limited to 'xtask/src/codegen/assists_doc_tests.rs')
-rw-r--r--xtask/src/codegen/assists_doc_tests.rs10
1 files changed, 5 insertions, 5 deletions
diff --git a/xtask/src/codegen/assists_doc_tests.rs b/xtask/src/codegen/assists_doc_tests.rs
index d06c9d65df..0bb18c73cf 100644
--- a/xtask/src/codegen/assists_doc_tests.rs
+++ b/xtask/src/codegen/assists_doc_tests.rs
@@ -1,4 +1,4 @@
-//! Generates `assists.md` documentation.
+//! Generates `assists_generated.md` documentation.
use std::{fmt, fs, path::Path};
@@ -62,7 +62,7 @@ r#####"
crate::flags::CodegenType::AssistsDocTests,
assists.into_iter().map(|it| it.to_string()).collect::<Vec<_>>().join("\n\n"),
);
- let dst = project_root().join("docs/user/generated_assists.adoc");
+ let dst = project_root().join("docs/book/src/assists_generated.md");
fs::write(dst, contents).unwrap();
}
}
@@ -146,7 +146,7 @@ impl fmt::Display for Assist {
fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
let _ = writeln!(
f,
- "[discrete]\n=== `{}`
+ "### `{}`
**Source:** {}",
self.id, self.location,
);
@@ -159,11 +159,11 @@ impl fmt::Display for Assist {
"
{}
-.Before
+#### Before
```rust
{}```
-.After
+#### After
```rust
{}```",
section.doc,