From b6f9fd7de2ae8fe185126c6e7015d3e04a4f2079 Mon Sep 17 00:00:00 2001 From: Fabien Arcellier Date: Tue, 17 Sep 2024 05:00:02 +0200 Subject: [PATCH] chore: docs generators run only for core components * chore: run component generator only for core component * chore: ignore workflowsnode into storybook --- docs/codegen/generator_components_pages.mjs | 6 +++++- src/ui/tools/generator_storybook.mjs | 1 + 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/docs/codegen/generator_components_pages.mjs b/docs/codegen/generator_components_pages.mjs index ccfb41238..4565d4a4e 100644 --- a/docs/codegen/generator_components_pages.mjs +++ b/docs/codegen/generator_components_pages.mjs @@ -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"); diff --git a/src/ui/tools/generator_storybook.mjs b/src/ui/tools/generator_storybook.mjs index 0c5ffdf8b..6daba5458 100644 --- a/src/ui/tools/generator_storybook.mjs +++ b/src/ui/tools/generator_storybook.mjs @@ -16,6 +16,7 @@ const IGNORE_COMPONENT_TYPES = [ "steps", "html", "repeater", + "workflowsnode" ]; const __filename = fileURLToPath(import.meta.url);