kopia lustrzana https://github.com/shoelace-style/shoelace
update plop
rodzic
1dea2f384e
commit
217aabe55a
|
@ -47,15 +47,9 @@ export default function (plop) {
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
type: 'add',
|
type: 'add',
|
||||||
path: '../../docs/components/{{ tagWithoutPrefix tag }}.md',
|
path: '../../docs/pages/components/{{ tagWithoutPrefix tag }}.md',
|
||||||
templateFile: 'templates/component/docs.hbs'
|
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',
|
type: 'modify',
|
||||||
path: '../../src/shoelace.ts',
|
path: '../../src/shoelace.ts',
|
||||||
|
|
|
@ -1,8 +1,9 @@
|
||||||
# {{ tagToTitle tag }}
|
---
|
||||||
|
meta:
|
||||||
[component-header:{{ tag }}]
|
title: {{ tagToTitle tag }}
|
||||||
|
description:
|
||||||
A description of the component goes here.
|
layout: component
|
||||||
|
---
|
||||||
|
|
||||||
```html preview
|
```html preview
|
||||||
<{{ tag }}></{{ tag }}>
|
<{{ tag }}></{{ tag }}>
|
||||||
|
|
Ładowanie…
Reference in New Issue