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 cd86029
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",
];

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

0 comments on commit cd86029

Please sign in to comment.