Skip to content

Commit

Permalink
fix(xtask): run doc for hermit-builtins and xtask
Browse files Browse the repository at this point in the history
  • Loading branch information
mkroening committed Feb 6, 2025
1 parent 72d7e84 commit 630685e
Showing 1 changed file with 18 additions and 5 deletions.
23 changes: 18 additions & 5 deletions xtask/src/doc.rs
Original file line number Diff line number Diff line change
Expand Up @@ -15,13 +15,26 @@ impl Doc {
for arch in Arch::all() {
arch.install()?;
let triple = arch.triple();
cmd!(
sh,
"cargo doc --package hermit-kernel --no-deps --document-private-items --target={triple}"
)
.run()?;

cmd!(sh, "cargo doc --target={triple}")
.arg("--no-deps")
.arg("--document-private-items")
.arg("--package=hermit-kernel")
.run()?;

cmd!(sh, "cargo doc --target={triple}")
.arg("--no-deps")
.arg("--document-private-items")
.arg("--manifest-path=hermit-builtins/Cargo.toml")
.run()?;
}

cmd!(sh, "cargo doc")
.arg("--no-deps")
.arg("--document-private-items")
.arg("--package=xtask")
.run()?;

Ok(())
}
}

0 comments on commit 630685e

Please sign in to comment.