From e0029fe1988acdde9be07de716cf9f3f0f4184c0 Mon Sep 17 00:00:00 2001 From: nxu Date: Tue, 13 Dec 2022 06:04:33 +0800 Subject: [PATCH] Version 1.0.2 --- changelog.md | 4 ++++ package.json | 2 +- src/app.ts | 9 ++++++--- 3 files changed, 11 insertions(+), 4 deletions(-) diff --git a/changelog.md b/changelog.md index 8ebac8d..65f27a7 100644 --- a/changelog.md +++ b/changelog.md @@ -1,3 +1,7 @@ +### Version 1.0.2 +- Add GitHub Actions badge +- Fix minor visual bug of the markdown + ### Version 1.0.1 - Fix the GitHub Actions workflow `auto-update` diff --git a/package.json b/package.json index 3082aef..d010806 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "github-emoji-icon-list", - "version": "1.0.1", + "version": "1.0.2", "description": "Generate GitHub Emoji Icon list in Markdown format.", "homepage": "https://github.com/jasonfoknxu/github-emoji-icon-list", "author": "jasonfoknxu (https://nxuweb.net)", diff --git a/src/app.ts b/src/app.ts index 28a7caf..ff9147f 100644 --- a/src/app.ts +++ b/src/app.ts @@ -1,6 +1,6 @@ /** - * GitHub Emoji Icon Icon Markdown Generator - * - Version: 1.0.1 + * GitHub Emoji Icon Markdown Generator + * - Version: 1.0.2 * - Developer: NXU (GitHub: @jasonfoknxu) * - https://github.com/jasonfoknxu/github-emoji-icon-list */ @@ -105,7 +105,7 @@ import * as Utils from './utilities'; tableOfContents += `|${tocColumns.join('|')}|\n`; tocColumns = []; } - tableOfContents += `\n- ${Utils.anchor(groupTitle)})\n\n`; + tableOfContents += `\n- ${Utils.anchor(groupTitle)}\n\n`; tableOfContents += `| | | | | |\n`; tableOfContents += `|:-----:|:-----:|:-----:|:-----:|:-----:|\n`; @@ -155,6 +155,9 @@ import * as Utils from './utilities'; // Add Table of Contents markdown = tableOfContents + '\n\n' + markdown; + // Add GitHub Actions badge (Auto Update) + markdown = `![Auto Update by GitHub Actions](https://github.com/jasonfoknxu/github-emoji-icon-list/actions/workflows/auto-update.yml/badge.svg)\n\n` + markdown; + // Introduction markdown = `This list includes all the usable Emoji icon shortcodes in GitHub Markdown. The list is automatically generated from [GitHub Emoji API](${config.GitHub_Emojis_List}) with the information from [Unicode Emoji data file](${config.Unicode_Emojis_Data}).\n\nThe first column is the emoji icon, second column is the shortcode for Markdown, third column is the name of the emoji from the Unicode data.\n\n*The emoji may be displayed in different result on various system*\n\n` + markdown;