diff options
Diffstat (limited to 'xtask')
-rw-r--r-- | xtask/src/release.rs | 6 | ||||
-rw-r--r-- | xtask/src/tidy.rs | 5 |
2 files changed, 6 insertions, 5 deletions
diff --git a/xtask/src/release.rs b/xtask/src/release.rs index 452f351d0..2c0476778 100644 --- a/xtask/src/release.rs +++ b/xtask/src/release.rs | |||
@@ -1,6 +1,6 @@ | |||
1 | mod changelog; | 1 | mod changelog; |
2 | 2 | ||
3 | use xshell::{cmd, cp, pushd, read_dir, write_file}; | 3 | use xshell::{cmd, pushd, read_dir, read_file, write_file}; |
4 | 4 | ||
5 | use crate::{codegen, date_iso, flags, is_release_tag, project_root, Result}; | 5 | use crate::{codegen, date_iso, flags, is_release_tag, project_root, Result}; |
6 | 6 | ||
@@ -41,7 +41,9 @@ impl flags::Release { | |||
41 | { | 41 | { |
42 | let src = project_root().join("./docs/user/").join(adoc); | 42 | let src = project_root().join("./docs/user/").join(adoc); |
43 | let dst = website_root.join(adoc); | 43 | let dst = website_root.join(adoc); |
44 | cp(src, dst)?; | 44 | |
45 | 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=="); | ||
46 | write_file(dst, contents)?; | ||
45 | } | 47 | } |
46 | 48 | ||
47 | let tags = cmd!("git tag --list").read()?; | 49 | let tags = cmd!("git tag --list").read()?; |
diff --git a/xtask/src/tidy.rs b/xtask/src/tidy.rs index c3c785eff..6c55823eb 100644 --- a/xtask/src/tidy.rs +++ b/xtask/src/tidy.rs | |||
@@ -347,9 +347,8 @@ struct TidyDocs { | |||
347 | 347 | ||
348 | impl TidyDocs { | 348 | impl TidyDocs { |
349 | fn visit(&mut self, path: &Path, text: &str) { | 349 | fn visit(&mut self, path: &Path, text: &str) { |
350 | // Test hopefully don't really need comments, and for assists we already | 350 | // Tests and diagnostic fixes don't need module level comments. |
351 | // have special comments which are source of doc tests and user docs. | 351 | if is_exclude_dir(path, &["tests", "test_data", "fixes"]) { |
352 | if is_exclude_dir(path, &["tests", "test_data"]) { | ||
353 | return; | 352 | return; |
354 | } | 353 | } |
355 | 354 | ||