From b8a74e03708819c04862005ad0a91757dd63d654 Mon Sep 17 00:00:00 2001 From: Igor Aleksanov Date: Mon, 19 Oct 2020 21:07:40 +0300 Subject: Add generated_diagnostic.adoc to the release.rs and smoke_test_docs_generation --- xtask/src/release.rs | 9 ++++++++- xtask/tests/tidy.rs | 1 + 2 files changed, 9 insertions(+), 1 deletion(-) (limited to 'xtask') diff --git a/xtask/src/release.rs b/xtask/src/release.rs index 14fc1f0dd..3cf0d849f 100644 --- a/xtask/src/release.rs +++ b/xtask/src/release.rs @@ -52,7 +52,14 @@ https://github.com/sponsors/rust-analyzer[GitHub Sponsors]. let path = changelog_dir.join(format!("{}-changelog-{}.adoc", today, changelog_n)); write_file(&path, &contents)?; - for &adoc in ["manual.adoc", "generated_features.adoc", "generated_assists.adoc"].iter() { + for &adoc in [ + "manual.adoc", + "generated_features.adoc", + "generated_assists.adoc", + "generated_diagnostic.adoc", + ] + .iter() + { let src = project_root().join("./docs/user/").join(adoc); let dst = website_root.join(adoc); cp(src, dst)?; diff --git a/xtask/tests/tidy.rs b/xtask/tests/tidy.rs index 460069407..faaef2fd4 100644 --- a/xtask/tests/tidy.rs +++ b/xtask/tests/tidy.rs @@ -42,6 +42,7 @@ fn smoke_test_docs_generation() { // We don't commit docs to the repo, so we can just overwrite in tests. codegen::generate_assists_docs(Mode::Overwrite).unwrap(); codegen::generate_feature_docs(Mode::Overwrite).unwrap(); + codegen::generate_diagnostic_docs(Mode::Overwrite).unwrap(); } #[test] -- cgit v1.2.3