fix out dir being wrong in json
This commit is contained in:
parent
1bc2bfa44c
commit
900af414a3
@ -465,7 +465,11 @@ fn make_run(run: RunConfig<'_>) {
|
|||||||
fn run(self, builder: &Builder<'_>) {
|
fn run(self, builder: &Builder<'_>) {
|
||||||
let stage = self.stage;
|
let stage = self.stage;
|
||||||
let target = self.target;
|
let target = self.target;
|
||||||
let out = builder.doc_out(target);
|
let out = match self.format {
|
||||||
|
DocumentationFormat::HTML => builder.doc_out(target),
|
||||||
|
DocumentationFormat::JSON => builder.json_doc_out(target),
|
||||||
|
};
|
||||||
|
|
||||||
t!(fs::create_dir_all(&out));
|
t!(fs::create_dir_all(&out));
|
||||||
|
|
||||||
builder.ensure(SharedAssets { target: self.target });
|
builder.ensure(SharedAssets { target: self.target });
|
||||||
|
Loading…
Reference in New Issue
Block a user