add component docs to new component template per #18
This commit is contained in:
parent
9316af81d3
commit
2657a77a56
2 changed files with 6 additions and 1 deletions
|
|
@ -1,3 +1,8 @@
|
|||
<!--
|
||||
@component The `YourComponent` component
|
||||
|
||||
[Docs](https://reuters-graphics.github.io/graphics-components/?path=/docs/components-YourComponent--default)
|
||||
-->
|
||||
<script lang="ts">
|
||||
/** ✏️ DOCUMENT your chart's props using TypeScript and JSDoc comments like below! */
|
||||
|
||||
|
|
|
|||
|
|
@ -2,7 +2,7 @@ Add the `SEO` component to any page specified in the `pages/` directory of the G
|
|||
|
||||
Most of the fields are filled in by other sources, like your Google Doc and package.json. (Usually, the fastest way is to copy the `SEO` component from one of the pages already in your project.)
|
||||
|
||||
> **IMPORTANT:** For *reasons*, we can't document the value of `VITE_BASE_URL` below. It's `import` + `.meta.env.BASE_URL` (concatenate all that) in the Graphics Kit and other Vite-based rigs.
|
||||
> **IMPORTANT:** For _reasons_, we can't document the value of `VITE_BASE_URL` below. It's `import` + `.meta.env.BASE_URL` (concatenate all that) in the Graphics Kit and other Vite-based rigs.
|
||||
|
||||
```svelte
|
||||
<script>
|
||||
|
|
|
|||
Loading…
Reference in a new issue