Browse Source

Fix license link

pull/2633/head
Gabe Kangas 4 years ago
parent
commit
05151ab95f
No known key found for this signature in database
GPG Key ID: 4345B2060657F330
  1. 19
      web/.storybook/tools/Emoji.stories.mdx
  2. 2
      web/.storybook/tools/generate-emoji-story.mjs

19
web/.storybook/tools/Emoji.stories.md → web/.storybook/tools/Emoji.stories.mdx

@ -1,5 +1,3 @@ @@ -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'; @@ -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}}

2
web/.storybook/tools/generate-emoji-story.mjs

@ -31,7 +31,7 @@ emojiCollectionDirs.forEach(collection => { @@ -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);

Loading…
Cancel
Save