From eeedca813a6ab0b51fb8f910f42e92763a7adf49 Mon Sep 17 00:00:00 2001 From: Cory LaViska Date: Mon, 2 Jun 2025 15:19:13 -0400 Subject: [PATCH] add sidebar to plop --- packages/webawesome/docs/_includes/sidebar.njk | 1 + packages/webawesome/scripts/plop/plopfile.js | 6 ++++++ 2 files changed, 7 insertions(+) diff --git a/packages/webawesome/docs/_includes/sidebar.njk b/packages/webawesome/docs/_includes/sidebar.njk index 8f6a0d40c..31aaa8ace 100644 --- a/packages/webawesome/docs/_includes/sidebar.njk +++ b/packages/webawesome/docs/_includes/sidebar.njk @@ -174,6 +174,7 @@
  • Tooltip
  • Tree
  • Tree Item
  • + {# PLOP_NEW_COMPONENT_PLACEHOLDER #} diff --git a/packages/webawesome/scripts/plop/plopfile.js b/packages/webawesome/scripts/plop/plopfile.js index da5664c18..cc63ce8d5 100644 --- a/packages/webawesome/scripts/plop/plopfile.js +++ b/packages/webawesome/scripts/plop/plopfile.js @@ -50,6 +50,12 @@ export default function (plop) { path: '../../docs/docs/components/{{ tagWithoutPrefix tag }}.md', templateFile: 'templates/component/docs.hbs', }, + { + type: 'modify', + path: '../../docs/_includes/sidebar.njk', + pattern: /\{# PLOP_NEW_COMPONENT_PLACEHOLDER #\}/, + template: `
  • {{ tagToTitle tag }}
  • \n {# PLOP_NEW_COMPONENT_PLACEHOLDER #}`, + }, ], }); }