kopia lustrzana https://github.com/shoelace-style/shoelace
update plop
rodzic
1dea2f384e
commit
217aabe55a
|
@ -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',
|
||||
|
|
|
@ -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 }}>
|
||||
|
|
Ładowanie…
Reference in New Issue