Skip to content

Commit

Permalink
Merge pull request #157 from Shopify/@cartogram/dont-generate-shopify…
Browse files Browse the repository at this point in the history
…-dev-docs-without-flag

fix: Don't generate docs without flag
  • Loading branch information
Matt Seccafien authored Nov 8, 2021
2 parents 8a9d210 + 7d75091 commit 22d70eb
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions packages/generate-docs/src/DocsGen.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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>`,
Expand Down

0 comments on commit 22d70eb

Please sign in to comment.