Skip to content

Commit

Permalink
chore: docs generators run only for core components
Browse files Browse the repository at this point in the history
* chore: run component generator only for core component
* chore: ignore workflowsnode into storybook
  • Loading branch information
FabienArcellier committed Sep 17, 2024
1 parent d4d7bbd commit b6f9fd7
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
6 changes: 5 additions & 1 deletion docs/codegen/generator_components_pages.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,11 @@ export async function generate() {
fs.mkdirSync(componentsDirectory);
}

components.map((component) => {
components.forEach((component) => {
if ('toolkit' in component && component.toolkit !== 'core') {
return
}

// eslint-disable-next-line prettier/prettier
const componentPageTemplate = path.resolve(componentsDirectory, "component_page.mdx.tpl");
const page = fs.readFileSync(componentPageTemplate, "utf8");
Expand Down
1 change: 1 addition & 0 deletions src/ui/tools/generator_storybook.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ const IGNORE_COMPONENT_TYPES = [
"steps",
"html",
"repeater",
"workflowsnode"

Check failure on line 19 in src/ui/tools/generator_storybook.mjs

View workflow job for this annotation

GitHub Actions / build (3.11)

Insert `,`

Check failure on line 19 in src/ui/tools/generator_storybook.mjs

View workflow job for this annotation

GitHub Actions / build (3.12)

Insert `,`

Check failure on line 19 in src/ui/tools/generator_storybook.mjs

View workflow job for this annotation

GitHub Actions / build (3.10)

Insert `,`

Check failure on line 19 in src/ui/tools/generator_storybook.mjs

View workflow job for this annotation

GitHub Actions / build (3.9)

Insert `,`

Check failure on line 19 in src/ui/tools/generator_storybook.mjs

View workflow job for this annotation

GitHub Actions / build (3.11)

Insert `,`

Check failure on line 19 in src/ui/tools/generator_storybook.mjs

View workflow job for this annotation

GitHub Actions / build (3.10)

Insert `,`
];

const __filename = fileURLToPath(import.meta.url);
Expand Down

0 comments on commit b6f9fd7

Please sign in to comment.