diff --git a/xtask/src/release.rs b/xtask/src/release.rs index 14fc1f0ddf..3cf0d849f4 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 4600694074..faaef2fd45 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]