Add generated_diagnostic.adoc to the release.rs and smoke_test_docs_generation

This commit is contained in:
Igor Aleksanov 2020-10-19 21:07:40 +03:00
parent aa9be4d523
commit b8a74e0370
2 changed files with 9 additions and 1 deletions

View file

@ -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)?;

View file

@ -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]