From b66e506cc268271b9e19938a525d0fe54b2b2fa9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lauren=C8=9Biu=20Nicola?= Date: Mon, 13 Sep 2021 10:56:14 +0300 Subject: [PATCH] Don't spam the manual with warnings --- docs/user/manual.adoc | 4 +++- xtask/src/release.rs | 2 +- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/docs/user/manual.adoc b/docs/user/manual.adoc index ee42702660..fef3baaea2 100644 --- a/docs/user/manual.adoc +++ b/docs/user/manual.adoc @@ -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: @@ -623,7 +625,7 @@ Note that calls to `cargo check` are disabled when using `rust-project.json` by { "rust-analyzer.checkOnSave.overrideCommand": ["cargo", "check", "--message-format=json"] } ---- -The `checkOnSave.overrideCommand` requires the command specified to output json error messages for rust-analyzer to consume. The `--message-format=json` flag does this for `cargo check` so whichever command you use must also output errors in this format. See the <> section for more information. +The `checkOnSave.overrideCommand` requires the command specified to output json error messages for rust-analyzer to consume. The `--message-format=json` flag does this for `cargo check` so whichever command you use must also output errors in this format. See the <> section for more information. == Security diff --git a/xtask/src/release.rs b/xtask/src/release.rs index 37de5b36f1..e4f540d27f 100644 --- a/xtask/src/release.rs +++ b/xtask/src/release.rs @@ -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)?; }