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

Wyświetl plik

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