Skip to content

Commit

Permalink
fix: only write masm documentation when it's not docs.rs building the…
Browse files Browse the repository at this point in the history
… documentation (#1341)
  • Loading branch information
mFragaBA authored May 22, 2024
1 parent 2a25e0b commit 65f6ead
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions stdlib/build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -40,8 +40,11 @@ fn main() -> io::Result<()> {
let build_dir = env::var("OUT_DIR").unwrap();
stdlib.write_to_dir(Path::new(&build_dir).join(ASL_DIR_PATH))?;

// updates the documentation of these modules
build_stdlib_docs(&docs, DOC_DIR_PATH)?;
// updates the documentation of these modules. Only do so when this is not docs.rs building the
// documentation.
if env::var("DOCS_RS").is_err() {
build_stdlib_docs(&docs, DOC_DIR_PATH)?;
}

Ok(())
}
Expand Down

0 comments on commit 65f6ead

Please sign in to comment.