prevent open with json
This commit is contained in:
parent
972d075aa6
commit
1bc2bfa44c
1 changed files with 5 additions and 0 deletions
|
@ -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 {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue