doc: migrate keys from v4 to v5
Lint, build, test and deploy / build (push) Successful in 1m40s
Lint, build, test and deploy / test (push) Successful in 6s
Lint, build, test and deploy / deploy (push) Successful in 6s

This commit is contained in:
Leon Xu committed 2026-11-29 21:58:00 -08:00
1 parent 3858fd68ce
commit d210c94403
1 file changed
+147 -204
+147 -204
View File
@@ -20,12 +20,20 @@ menu:
# Code Blocks (代碼相關) # Code Blocks (代碼相關)
# -------------------------------------- # --------------------------------------
highlight_theme: light # darker / pale night / light / ocean / mac / mac light / false code_blocks:
highlight_copy: true # copy button # Code block theme: darker / pale night / light / ocean / false
highlight_lang: true # show the code language theme: light
highlight_shrink: false # true: shrink the code blocks / false: expand the code blocks | none: expand code blocks and hide the button macStyle: false
highlight_height_limit: false # unit: px # Code block height limit (unit: px)
code_word_wrap: false height_limit: false
word_wrap: false
# Toolbar
copy: true # copy button
language: true # show the code language
# true: shrink the code blocks | false: expand the code blocks | none: expand code blocks and hide the button
shrink: false
fullpage: false
# copy settings # copy settings
# copyright: Add the copyright information after copied content (複製的內容後面加上版權信息) # copyright: Add the copyright information after copied content (複製的內容後面加上版權信息)
@@ -48,34 +56,40 @@ social:
# search (搜索) # search (搜索)
# -------------------------------------- # --------------------------------------
# Algolia search search:
algolia_search: # Choose: algolia_search / local_search / docsearch
enable: true # leave it empty if you don't need search
hits: use: algolia_search
per_page: 6 placeholder:
# Local search # Algolia Search
local_search: algolia_search:
enable: false # Number of search results per page
hitsPerPage: 6
# Math (數學) # Math (數學)
# -------------------------------------- # --------------------------------------
# About the per_page # About the per_page
# if you set it to true, it will load mathjax/katex script in each page (true 表示每一頁都加載js) # if you set it to true, it will load mathjax/katex script in each page (true 表示每一頁都加載js)
# if you set it to false, it will load mathjax/katex script according to your setting (add the 'mathjax: true' in page's front-matter) # if you set it to false, it will load mathjax/katex script according to your setting (add the 'mathjax: true' or 'katex: true' in page's front-matter)
# (false 需要時加載,須在使用的 Markdown Front-matter 加上 mathjax: true) # (false 需要時加載,須在使用的 Markdown Front-matter 加上 mathjax: true 或 katex: true)
math:
# MathJax # Choose: mathjax, katex
mathjax: # Leave it empty if you don't need math
enable: false use:
per_page: false
# KaTeX
katex:
enable: false
per_page: false per_page: false
hide_scrollbar: true hide_scrollbar: true
mathjax:
# Enable the contextual menu
enableMenu: true
# Choose: all / ams / none, This controls whether equations are numbered and how
tags: none
katex:
# Enable the copy KaTeX formula
copy_tex: false
# Image (圖片設置) # Image (圖片設置)
# -------------------------------------- # --------------------------------------
@@ -122,9 +136,6 @@ cover:
index_enable: true index_enable: true
aside_enable: true aside_enable: true
archives_enable: true archives_enable: true
# the position of cover in home page (封面顯示的位置)
# left/right/both
position: both
# When cover is not set, the default cover is displayed (當沒有設置cover時,默認的封面顯示) # When cover is not set, the default cover is displayed (當沒有設置cover時,默認的封面顯示)
default_cover: default_cover:
- https://i.loli.net/2020/05/01/gkihqEjXxJ5UZ1C.jpg - https://i.loli.net/2020/05/01/gkihqEjXxJ5UZ1C.jpg
@@ -161,6 +172,16 @@ wordcount:
min2read: true min2read: true
total_wordcount: true total_wordcount: true
# Article layout on the homepage (主頁文章佈局)
# 1: Cover on the left, info on the right
# 2: Cover on the right, info on the left
# 3: Cover and info alternate between left and right
# 4: Cover on top, info on the bottom
# 5: Info displayed on the cover
# 6: Masonry layout - Cover on top, info on the bottom
# 7: Masonry layout - Info displayed on the cover
index_layout: 3
# Display the article introduction on homepage # Display the article introduction on homepage
# 1: description # 1: description
# 2: both (if the description exists, it will show description, or show the auto_excerpt) # 2: both (if the description exists, it will show description, or show the auto_excerpt)
@@ -170,9 +191,11 @@ index_post_content:
method: 3 method: 3
length: 500 # if you set method to 2 or 3, the length need to config length: 500 # if you set method to 2 or 3, the length need to config
# anchor anchor:
# when you scroll in post, the URL will update according to header id. # When you scroll, the URL will update according to header id.
anchor: false auto_update: false
# Click the headline to scroll and update the anchor
click_to_scroll: false
# Post # Post
# -------------------------------------- # --------------------------------------
@@ -238,30 +261,27 @@ noticeOutdate:
# Share System (分享功能) # Share System (分享功能)
# -------------------------------------- # --------------------------------------
# AddThis share:
# https://www.addthis.com/ # Choose: sharejs / addtoany
addThis: # Leave it empty if you don't need share
enable: false use: sharejs
pubid:
# Share.js # Share.js
# https://github.com/overtrue/share.js # https://github.com/overtrue/share.js
sharejs: sharejs:
enable: true sites: facebook,x,wechat,weibo,qq
sites: facebook,twitter,wechat,weibo,qq
# AddToAny # AddToAny
# https://www.addtoany.com/ # https://www.addtoany.com/
addtoany: addtoany:
enable: false item: facebook,x,wechat,sina_weibo,facebook_messenger,email,copy_link
item: facebook,twitter,wechat,sina_weibo,facebook_messenger,email,copy_link
# Comments System # Comments System
# -------------------------------------- # --------------------------------------
comments: comments:
# Up to two comments system, the first will be shown as default # Up to two comments system, the first will be shown as default
# Choose: Disqus/Disqusjs/Livere/Gitalk/Valine/Waline/Utterances/Facebook Comments/Twikoo/Giscus # Choose: Disqus/Disqusjs/Livere/Gitalk/Valine/Waline/Utterances/Facebook Comments/Twikoo/Giscus/Remark42/Artalk
use: Valine use: Valine
text: true # Display the comment name next to the button text: true # Display the comment name next to the button
# lazyload: The comment system will be load when comment element enters the browser's viewport. # lazyload: The comment system will be load when comment element enters the browser's viewport.
@@ -315,7 +335,8 @@ valine:
waline: waline:
serverURL: # Waline server address url serverURL: # Waline server address url
bg: # waline background bg: # waline background
visitor: false # Use Waline pageview count as the page view count
pageview: false
option: option:
# utterances # utterances
@@ -351,49 +372,37 @@ giscus:
repo: repo:
repo_id: repo_id:
category_id: category_id:
theme: light_theme: light
light: light dark_theme: dark
dark: dark js:
option: option:
# Chat Services # Chat Services
# -------------------------------------- # --------------------------------------
# Chat Button [recommend] chat:
# It will create a button in the bottom right corner of website, and hide the origin button # Choose: chatra/tidio/crisp/knocket
chat_btn: true # Leave it empty if you don't need chat
use: tidio
# The origin chat button is displayed when scrolling up, and the button is hidden when scrolling down # Chat Button [recommend]
chat_hide_show: true # It will create a button in the bottom right corner of website, and hide the origin button
rightside_button: true
# The origin chat button is displayed when scrolling up, and the button is hidden when scrolling down
button_hide_show: true
# chatra # chatra
# https://chatra.io/ # https://chatra.io/
chatra: chatra:
enable: false
id: id:
# tidio # tidio
# https://www.tidio.com/ # https://www.tidio.com/
tidio: tidio:
enable: true
public_key: lmwbkic143sjd63td4fkpoyut23zykez public_key: lmwbkic143sjd63td4fkpoyut23zykez
# daovoice
# http://daovoice.io/
daovoice:
enable: false
app_id:
# gitter
# https://gitter.im/
gitter:
enable: false
room:
# crisp # crisp
# https://crisp.chat/en/ # https://crisp.chat/en/
crisp: crisp:
enable: false
website_id: website_id:
# Footer Settings # Footer Settings
@@ -403,7 +412,10 @@ footer:
enable: true enable: true
since: 2021 since: 2021
custom_text: <a href="https://icp.gov.moe/?keyword=20260342" target="_blank">萌ICP备20260342号</a> custom_text: <a href="https://icp.gov.moe/?keyword=20260342" target="_blank">萌ICP备20260342号</a>
copyright: false # Copyright of theme and framework # Copyright of theme and framework
copyright:
enable: false
version: true
footer_beautify: footer_beautify:
enable: enable:
@@ -456,10 +468,6 @@ baidu_analytics: 0942eee6b774b3a9dfa6adc422b18e4b
# https://analytics.google.com/analytics/web/ # https://analytics.google.com/analytics/web/
google_analytics: G-H2JKRKKLWE google_analytics: G-H2JKRKKLWE
# CNZZ Analytics
# https://www.umeng.com/
cnzz_analytics:
# Cloudflare Analytics # Cloudflare Analytics
# https://www.cloudflare.com/zh-tw/web-analytics/ # https://www.cloudflare.com/zh-tw/web-analytics/
cloudflare_analytics: cloudflare_analytics:
@@ -535,10 +543,10 @@ tag_ui: # 留空或 index
background: background:
# Footer Background # Footer Background
footer_bg: false footer_img: false
# the position of bottom right button/default unit: px (右下角按鈕距離底部的距離/默認單位為px) # the position of bottom right button/default unit: px (右下角按鈕距離底部的距離/默認單位為px)
rightside-bottom: rightside_bottom:
# Enter transitions (開啓網頁進入效果) # Enter transitions (開啓網頁進入效果)
enter_transitions: true enter_transitions: true
@@ -591,7 +599,7 @@ click_heart:
mobile: false mobile: false
# Mouse click effects: words (鼠標點擊效果: 文字) # Mouse click effects: words (鼠標點擊效果: 文字)
ClickShowText: clickShowText:
enable: false enable: false
text: text:
# - I # - I
@@ -609,40 +617,42 @@ display_mode: light
beautify: beautify:
enable: false enable: false
field: post # site/post field: post # site/post
title-prefix-icon: '\f0c1' title_prefix_icon: '\f0c1'
title-prefix-icon-color: '#F47466' title_prefix_icon_color: '#F47466'
# Global font settings # Global font settings
# Don't modify the following settings unless you know how they work (非必要不要修改) # Don't modify the following settings unless you know how they work (非必要不要修改)
font: font:
global-font-size: global_font_size:
code-font-size: code_font_size:
font-family: font_family:
code-font-family: code_font_family:
# Font settings for the site title and site subtitle # Font settings for the site title and site subtitle
# 左上角網站名字 主頁居中網站名字 # 左上角網站名字 主頁居中網站名字
blog_title_font: blog_title_font:
font_link: font_link:
font-family: font_family:
# The setting of divider icon (水平分隔線圖標設置) # The setting of divider icon (水平分隔線圖標設置)
hr_icon: hr_icon:
enable: true enable: true
icon: # the unicode value of Font Awesome icon, such as '\3423' icon: # the unicode value of Font Awesome icon, such as '\3423'
icon-top: icon_top:
# the subtitle on homepage (主頁subtitle) # the subtitle on homepage (主頁subtitle)
subtitle: subtitle:
enable: true enable: true
# Typewriter Effect (打字效果) # Typewriter Effect (打字效果)
effect: true effect: true
# loop (循環打字) # Customize typed.js (自定義打字效果)
loop: true # https://github.com/mattboldt/typed.js/#customization
typed_option:
loop: true # 循環打字
# source 調用第三方服務 # source 調用第三方服務
# source: false 關閉調用 # source: false 關閉調用
# source: 1 調用一言網的一句話(簡體) https://hitokoto.cn/ # source: 1 調用一言網的一句話(簡體) https://hitokoto.cn/
# source: 2 調用一句網(簡體) http://yijuzhan.com/ # source: 2 調用一言(簡體) https://api.aa1.cn/doc/yiyan.html
# source: 3 調用今日詩詞(簡體) https://www.jinrishici.com/ # source: 3 調用今日詩詞(簡體) https://www.jinrishici.com/
# subtitle 會先顯示 source , 再顯示 sub 的內容 # subtitle 會先顯示 source , 再顯示 sub 的內容
source: 2 source: 2
@@ -650,7 +660,14 @@ subtitle:
sub: sub:
# Loading Animation (加載動畫) # Loading Animation (加載動畫)
preloader: false preloader:
enable: false
# source
# 1. fullpage-loading
# 2. pace (progress bar)
source: 1
# pace theme (see https://codebyzach.github.io/pace/)
pace_css_url:
# aside (側邊欄) # aside (側邊欄)
# -------------------------------------- # --------------------------------------
@@ -699,6 +716,16 @@ aside:
post_count: true post_count: true
last_push_date: true last_push_date: true
sort_order: # Don't modify the setting unless you know how it works sort_order: # Don't modify the setting unless you know how it works
# Time difference between publish date and now (網頁運行時間)
# Formal: Month/Day/Year Time or Year/Month/Day Time
# Leave it empty if you don't enable this feature
runtime_date: 07/02/2021 00:00:00
card_newest_comments:
enable: false
sort_order: # Don't modify the setting unless you know how it works
limit: 6
storage: 10 # unit: mins, save data to localStorage
avatar: true
# busuanzi count for PV / UV in site # busuanzi count for PV / UV in site
# 訪問人數 # 訪問人數
@@ -707,20 +734,6 @@ busuanzi:
site_pv: true site_pv: true
page_pv: true page_pv: true
# Time difference between publish date and now (網頁運行時間)
# Formal: Month/Day/Year Time or Year/Month/Day Time
runtimeshow:
enable: true
publish_date: 07/02/2021 00:00:00
# Aside widget - Newest Comments
newest_comments:
enable: false
sort_order: # Don't modify the setting unless you know how it works
limit: 6
storage: 10 # unit: mins, save data to localStorage
avatar: true
# Bottom right button (右下角按鈕) # Bottom right button (右下角按鈕)
# -------------------------------------- # --------------------------------------
@@ -762,15 +775,11 @@ rightside_item_order:
# Lightbox (圖片大圖查看模式) # Lightbox (圖片大圖查看模式)
# -------------------------------------- # --------------------------------------
# You can only choose one, or neither (只能選擇一個 或者 兩個都不選) # Choose: fancybox / medium_zoom (只能選擇一個 或者 留空不使用)
# medium-zoom
# https://github.com/francoischalifour/medium-zoom # https://github.com/francoischalifour/medium-zoom
medium_zoom: false # https://fancyapps.com/fancybox/
# Leave it empty if you don't need lightbox
# fancybox lightbox: fancybox
# http://fancyapps.com/fancybox/3/
fancybox: true
# Tag Plugins settings (標籤外掛) # Tag Plugins settings (標籤外掛)
# -------------------------------------- # --------------------------------------
@@ -829,12 +838,6 @@ snackbar:
# prefetch (預加載) # prefetch (預加載)
instantpage: false instantpage: false
# https://github.com/vinta/pangu.js
# Insert a space between Chinese character and English character (中英文之間添加空格)
pangu:
enable: false
field: site # site/post
# Lazyload (圖片懶加載) # Lazyload (圖片懶加載)
# https://github.com/verlok/vanilla-lazyload # https://github.com/verlok/vanilla-lazyload
lazyload: lazyload:
@@ -855,8 +858,17 @@ lazyload:
# mask_icon: /pwa/safari-pinned-tab.svg # mask_icon: /pwa/safari-pinned-tab.svg
# Open graph meta tags # Open graph meta tags
# https://developers.facebook.com/docs/sharing/webmasters/ # https://hexo.io/docs/helpers#open-graph
Open_Graph_meta: true Open_Graph_meta:
enable: true
option:
# twitter_card:
# twitter_image:
# twitter_id:
# twitter_site:
# google_plus:
# fb_admins:
# fb_app_id:
# Add the vendor prefixes to ensure compatibility # Add the vendor prefixes to ensure compatibility
css_prefix: true css_prefix: true
@@ -874,88 +886,19 @@ inject:
# Don't modify the following settings unless you know how they work # Don't modify the following settings unless you know how they work
# 非必要請不要修改 # 非必要請不要修改
CDN: CDN:
# main # The CDN provider for internal and third-party scripts
main_css: # Options for both: local/jsdelivr/unpkg/cdnjs/custom
main: # Note: Dev version can only use 'local' for internal scripts
utils: # Note: When setting third-party scripts to 'local', you need to install hexo-butterfly-extjs
internal_provider: local
third_party_provider: jsdelivr
# pjax # Add version number to url, true or false
pjax: version: true
# comments # Custom format
gitalk: # For example: https://cdn.staticfile.org/${cdnjs_name}/${version}/${min_cdnjs_file}
gitalk_css: custom_format:
blueimp_md5:
valine:
disqusjs:
disqusjs_css:
utterances:
twikoo:
waline:
giscus:
# share # Override the URL of a single library, e.g. fancybox: https://xxx/fancybox.umd.js
addtoany: option:
sharejs:
sharejs_css:
# search
local_search:
algolia_js:
algolia_search_v4:
instantsearch_v4:
# math
mathjax:
katex:
katex_copytex:
katex_copytex_css:
mermaid:
# count
busuanzi:
# background effect
canvas_ribbon:
canvas_fluttering_ribbon:
canvas_nest:
lazyload:
instantpage:
typed:
pangu:
# photo
fancybox_css_v4:
fancybox_v4:
medium_zoom:
# snackbar
snackbar_css:
snackbar:
# effect
activate_power_mode:
fireworks:
click_heart:
ClickShowText:
# fontawesome
fontawesome:
# Conversion between Traditional and Simplified Chinese
translate:
# flickr-justified-gallery
flickr_justified_gallery_js:
flickr_justified_gallery_css:
# aplayer
aplayer_css:
aplayer_js:
meting_js:
# Prism.js
prismjs_js:
prismjs_lineNumber_js:
prismjs_autoloader: