Skip to content

Commit 1bc2bfa

Browse files
committed
prevent open with json
1 parent 972d075 commit 1bc2bfa

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/bootstrap/doc.rs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -506,6 +506,11 @@ impl Step for Std {
506506

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

509+
// Don't open if the format is json
510+
if let DocumentationFormat::JSON = self.format {
511+
return;
512+
}
513+
509514
// Look for library/std, library/core etc in the `x.py doc` arguments and
510515
// open the corresponding rendered docs.
511516
for requested_crate in requested_crates {

0 commit comments

Comments
 (0)