Fix license link

This commit is contained in:
Gabe Kangas
2023-01-26 16:37:29 -08:00
parent d9914f3abd
commit 05151ab95f
2 changed files with 10 additions and 11 deletions

View File

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

View File

@@ -31,7 +31,7 @@ emojiCollectionDirs.forEach(collection => {
emojiCollections[collection] = { name: collection, images: emojiCollection }; 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 t = handlebars.compile(template);
let output = t({ emojiCollections }); let output = t({ emojiCollections });
console.log(output); console.log(output);