Skip to content

Commit

Permalink
Deploy Rust docs
Browse files Browse the repository at this point in the history
  • Loading branch information
andrzejressel committed Aug 13, 2024
1 parent 5dfc1e9 commit 8e3c2eb
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion justfile
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ docs:

# DO NOT EXIT - GENERATE-RUST-DOCS - START
rust-docs:
cargo doc --no-deps -p pulumi_wasm_rust pulumi_wasm_rust_macro pulumi_wasm_docker pulumi_wasm_random pulumi_wasm_cloudflare
cargo doc --no-deps -p pulumi_wasm_rust -p pulumi_wasm_rust_macro -p pulumi_wasm_docker -p pulumi_wasm_random -p pulumi_wasm_cloudflare
# DO NOT EXIT - GENERATE-RUST-DOCS - END


Expand Down
4 changes: 2 additions & 2 deletions regenerate_providers/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -119,10 +119,10 @@ fn replace_publish_wasm_components(providers: &[Provider], content: &str) -> Str
fn replace_generate_rust_docs(providers: &[Provider], content: &str) -> String {
let mut replacement = String::new();
replacement.push_str("rust-docs:\n");
replacement.push_str(" cargo doc --no-deps -p pulumi_wasm_rust pulumi_wasm_rust_macro");
replacement.push_str(" cargo doc --no-deps -p pulumi_wasm_rust -p pulumi_wasm_rust_macro");
for provider in providers {
replacement.push_str(&format!(
" pulumi_wasm_{}",
" -p pulumi_wasm_{}",
provider.name
));
}
Expand Down

0 comments on commit 8e3c2eb

Please sign in to comment.