new-docs
Cory LaViska 2023-06-07 16:49:27 -04:00
rodzic 1dea2f384e
commit 217aabe55a
2 zmienionych plików z 7 dodań i 12 usunięć

Wyświetl plik

@ -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',

Wyświetl plik

@ -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 }}>