Skip to content

Commit

Permalink
prevent open with json
Browse files Browse the repository at this point in the history
  • Loading branch information
viandoxdev committed Nov 2, 2022
1 parent 972d075 commit 1bc2bfa
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/bootstrap/doc.rs
Original file line number Diff line number Diff line change
Expand Up @@ -506,6 +506,11 @@ impl Step for Std {

doc_std(builder, self.format, stage, target, &out, &extra_args, &requested_crates);

// Don't open if the format is json
if let DocumentationFormat::JSON = self.format {
return;
}

// Look for library/std, library/core etc in the `x.py doc` arguments and
// open the corresponding rendered docs.
for requested_crate in requested_crates {
Expand Down

0 comments on commit 1bc2bfa

Please sign in to comment.