mirror of
https://github.com/rust-lang/rust-analyzer
synced 2024-12-26 13:03:31 +00:00
Add generated_diagnostic.adoc to the release.rs and smoke_test_docs_generation
This commit is contained in:
parent
aa9be4d523
commit
b8a74e0370
2 changed files with 9 additions and 1 deletions
|
@ -52,7 +52,14 @@ https://github.com/sponsors/rust-analyzer[GitHub Sponsors].
|
||||||
let path = changelog_dir.join(format!("{}-changelog-{}.adoc", today, changelog_n));
|
let path = changelog_dir.join(format!("{}-changelog-{}.adoc", today, changelog_n));
|
||||||
write_file(&path, &contents)?;
|
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 src = project_root().join("./docs/user/").join(adoc);
|
||||||
let dst = website_root.join(adoc);
|
let dst = website_root.join(adoc);
|
||||||
cp(src, dst)?;
|
cp(src, dst)?;
|
||||||
|
|
|
@ -42,6 +42,7 @@ fn smoke_test_docs_generation() {
|
||||||
// We don't commit docs to the repo, so we can just overwrite in tests.
|
// We don't commit docs to the repo, so we can just overwrite in tests.
|
||||||
codegen::generate_assists_docs(Mode::Overwrite).unwrap();
|
codegen::generate_assists_docs(Mode::Overwrite).unwrap();
|
||||||
codegen::generate_feature_docs(Mode::Overwrite).unwrap();
|
codegen::generate_feature_docs(Mode::Overwrite).unwrap();
|
||||||
|
codegen::generate_diagnostic_docs(Mode::Overwrite).unwrap();
|
||||||
}
|
}
|
||||||
|
|
||||||
#[test]
|
#[test]
|
||||||
|
|
Loading…
Reference in a new issue