update plop

This commit is contained in:
Cory LaViska
2023-06-07 16:49:27 -04:00
parent 1dea2f384e
commit 217aabe55a
2 changed files with 7 additions and 12 deletions

View File

@@ -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: /<!--plop:component-->/,
template: `- [{{ tagToTitle tag }}](/components/{{ tagWithoutPrefix tag }})\n <!--plop:component-->`
},
{
type: 'modify',
path: '../../src/shoelace.ts',

View File

@@ -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 }}></{{ tag }}>