Merge pull request #157 from Shopify/@cartogram/dont-generate-shopify-dev-docs-without-flag

fix: Don't generate docs without flag
This commit is contained in:
Matt Seccafien 2021-11-08 19:10:34 +01:00 committed by GitHub
commit 22d70ebf64
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -142,10 +142,11 @@ export class DocsGen {
await componentResult.docs(componentEntryBase);
await Promise.all([
componentResult.writeReadme(componentEntryBase),
componentResult.writeDevDoc(componentPaths.output),
]);
await componentResult.writeReadme(componentEntryBase);
if (this.writeDocs) {
componentResult.writeDevDoc(componentPaths.output);
}
listItems.push({
name: `<a href="${componentUrl}">${name}</a>`,