Update docs

This commit is contained in:
Mimi 2020-08-20 02:53:37 +08:00
parent a78d0ea2ff
commit 1bbe8f4101
4 changed files with 6 additions and 7 deletions

View File

@ -39,6 +39,7 @@ Issue resolved:
- Screenshots with this changes:
### How to use?
In NexT `_config.yml`:
```yml

View File

@ -1,7 +1,7 @@
name: Pull Request Labeler
on:
- pull_request
- pull_request_target
jobs:
triage:

View File

@ -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.

View File

@ -80,7 +80,7 @@ NexT.utils = {
});
});
if (!CONFIG.copycode) return;
element.insertAdjacentHTML('beforeend', '<div class="copy-btn"><i class="fa fa-clipboard fa-fw"></i></div>');
element.insertAdjacentHTML('beforeend', '<div class="copy-btn"><i class="fa fa-copy fa-fw"></i></div>');
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);
});
});