Fix license link

This commit is contained in:
Gabe Kangas 2023-01-26 16:37:29 -08:00
parent d9914f3abd
commit 05151ab95f
No known key found for this signature in database
GPG Key ID: 4345B2060657F330
2 changed files with 10 additions and 11 deletions

View File

@ -1,5 +1,3 @@
import { Canvas, Meta, Story } from '@storybook/addon-docs';
import { Image, ImageRow } from './ImageAsset';
@ -10,13 +8,14 @@ import { Image, ImageRow } from './ImageAsset';
{{#each emojiCollections}}
## {{capitalize this.name}}
<a href="/img/emoji/{{this.name}}/LICENSE.md" target="_blank">
LICENSE
</a>
<ImageRow images={[
{{#each this.images}}
{src: "{{this.src}}", name: "{{this.name}}"},
{{/each}}
]}/>
<a href="img/emoji/{{this.name}}/LICENSE.md" target="_blank">
LICENSE
</a>
<ImageRow images={[
{{#each this.images}}
{src: "{{this.src}}", name: "{{this.name}}"},
{{/each}}
]}/>
{{/each}}

View File

@ -31,7 +31,7 @@ emojiCollectionDirs.forEach(collection => {
emojiCollections[collection] = { name: collection, images: emojiCollection };
});
const template = fs.readFileSync('./Emoji.stories.md', 'utf8');
const template = fs.readFileSync('./Emoji.stories.mdx', 'utf8');
let t = handlebars.compile(template);
let output = t({ emojiCollections });
console.log(output);