Merge #10218
10218: minor: Don't spam the manual with warnings r=lnicola a=lnicola A single warning on the first line should™ be enough. Currently we put that warning on every section, while also breaking the table of contents in the process:  Fixes #9657 Co-authored-by: Laurențiu Nicola <lnicola@dend.ro>
This commit is contained in:
commit
c45792ae8f
@ -1,3 +1,5 @@
|
||||
// IMPORTANT: the master copy of this document lives in the https://github.com/rust-analyzer/rust-analyzer repository
|
||||
|
||||
= User Manual
|
||||
:toc: preamble
|
||||
:sectanchors:
|
||||
|
@ -45,7 +45,7 @@ impl flags::Release {
|
||||
let src = project_root().join("./docs/user/").join(adoc);
|
||||
let dst = website_root.join(adoc);
|
||||
|
||||
let contents = read_file(src)?.replace("\n\n===", "\n\n// IMPORTANT: master copy of this document lives in the https://github.com/rust-analyzer/rust-analyzer repository\n\n==");
|
||||
let contents = read_file(src)?;
|
||||
write_file(dst, contents)?;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user