fix out dir being wrong in json

This commit is contained in:
viandoxdev 2022-11-05 18:30:01 +01:00
parent 1bc2bfa44c
commit 900af414a3
No known key found for this signature in database
GPG Key ID: AF1410C5BC10AA25

View File

@ -465,7 +465,11 @@ fn make_run(run: RunConfig<'_>) {
fn run(self, builder: &Builder<'_>) {
let stage = self.stage;
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));
builder.ensure(SharedAssets { target: self.target });