From 217aabe55ac6f0abf9dee770b2a18a9a8c374c86 Mon Sep 17 00:00:00 2001 From: Cory LaViska Date: Wed, 7 Jun 2023 16:49:27 -0400 Subject: [PATCH] update plop --- scripts/plop/plopfile.js | 8 +------- scripts/plop/templates/component/docs.hbs | 11 ++++++----- 2 files changed, 7 insertions(+), 12 deletions(-) diff --git a/scripts/plop/plopfile.js b/scripts/plop/plopfile.js index 4b4e0c5c4..601826c34 100644 --- a/scripts/plop/plopfile.js +++ b/scripts/plop/plopfile.js @@ -47,15 +47,9 @@ export default function (plop) { }, { type: 'add', - path: '../../docs/components/{{ tagWithoutPrefix tag }}.md', + path: '../../docs/pages/components/{{ tagWithoutPrefix tag }}.md', templateFile: 'templates/component/docs.hbs' }, - { - type: 'modify', - path: '../../docs/_sidebar.md', - pattern: //, - template: `- [{{ tagToTitle tag }}](/components/{{ tagWithoutPrefix tag }})\n ` - }, { type: 'modify', path: '../../src/shoelace.ts', diff --git a/scripts/plop/templates/component/docs.hbs b/scripts/plop/templates/component/docs.hbs index 38ee5dabe..1970af10b 100644 --- a/scripts/plop/templates/component/docs.hbs +++ b/scripts/plop/templates/component/docs.hbs @@ -1,8 +1,9 @@ -# {{ tagToTitle tag }} - -[component-header:{{ tag }}] - -A description of the component goes here. +--- +meta: + title: {{ tagToTitle tag }} + description: +layout: component +--- ```html preview <{{ tag }}>