From 1bbe8f4101d8eb118b8707456ac535d71a205738 Mon Sep 17 00:00:00 2001 From: Mimi <1119186082@qq.com> Date: Thu, 20 Aug 2020 02:53:37 +0800 Subject: [PATCH] Update docs --- .github/PULL_REQUEST_TEMPLATE.md | 1 + .github/workflows/labeler.yml | 2 +- _config.yml | 6 ++---- source/js/utils.js | 4 ++-- 4 files changed, 6 insertions(+), 7 deletions(-) diff --git a/.github/PULL_REQUEST_TEMPLATE.md b/.github/PULL_REQUEST_TEMPLATE.md index b0aa78d..5f19239 100644 --- a/.github/PULL_REQUEST_TEMPLATE.md +++ b/.github/PULL_REQUEST_TEMPLATE.md @@ -39,6 +39,7 @@ Issue resolved: - Screenshots with this changes: ### How to use? + In NexT `_config.yml`: ```yml diff --git a/.github/workflows/labeler.yml b/.github/workflows/labeler.yml index 8b0ba5b..dd2d30f 100644 --- a/.github/workflows/labeler.yml +++ b/.github/workflows/labeler.yml @@ -1,7 +1,7 @@ name: Pull Request Labeler on: - - pull_request + - pull_request_target jobs: triage: diff --git a/_config.yml b/_config.yml index 9ce3bb9..0bfdd84 100644 --- a/_config.yml +++ b/_config.yml @@ -33,7 +33,6 @@ custom_file_path: # --------------------------------------------------------------- # Site Information Settings -# See: https://theme-next.js.org/docs/getting-started/ # --------------------------------------------------------------- favicon: @@ -327,7 +326,7 @@ calendar: # --------------------------------------------------------------- # Misc Theme Settings -# See: https://theme-next.js.org/docs/theme-settings/ +# See: https://theme-next.js.org/docs/theme-settings/miscellaneous # --------------------------------------------------------------- # Set the text alignment in posts / pages. @@ -393,7 +392,6 @@ github_banner: # --------------------------------------------------------------- # Font Settings -# See: https://theme-next.js.org/docs/theme-settings/#Fonts-Customization # --------------------------------------------------------------- # Find fonts on Google Fonts (https://fonts.google.com) # All fonts set here will have the following styles: @@ -845,7 +843,7 @@ canvas_ribbon: #! ============================================================== #! DO NOT EDIT THE FOLLOWING SETTINGS #! UNLESS YOU KNOW WHAT YOU ARE DOING -#! See: https://theme-next.js.org/docs/advanced-settings +#! See: https://theme-next.js.org/docs/advanced-settings/vendors #! ============================================================== # It's recommended to use the same version as in `_vendors.yml` to avoid potential problems. diff --git a/source/js/utils.js b/source/js/utils.js index 0f95a0d..8513c25 100644 --- a/source/js/utils.js +++ b/source/js/utils.js @@ -80,7 +80,7 @@ NexT.utils = { }); }); if (!CONFIG.copycode) return; - element.insertAdjacentHTML('beforeend', '
'); + element.insertAdjacentHTML('beforeend', '
'); const button = element.querySelector('.copy-btn'); button.addEventListener('click', () => { const lines = element.querySelector('.code') || element.querySelector('code'); @@ -103,7 +103,7 @@ NexT.utils = { }); element.addEventListener('mouseleave', () => { setTimeout(() => { - button.querySelector('i').className = 'fa fa-clipboard fa-fw'; + button.querySelector('i').className = 'fa fa-copy fa-fw'; }, 300); }); });