Skip to content

Commit

Permalink
Merge branch 'enhance-code-highlight-switch' of https://github.com/jx…
Browse files Browse the repository at this point in the history
…peng98/notionnext into pr/jxpeng98/1257
  • Loading branch information
tangly1024 committed Jul 26, 2023
2 parents 947fd1d + 86e314a commit fcd4a69
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions blog.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -90,17 +90,20 @@ const BLOG = {

BEI_AN: process.env.NEXT_PUBLIC_BEI_AN || '', // 备案号 闽ICP备XXXXXXX

// START********代码相关********
// PrismJs 代码相关
PRISM_JS_AUTO_LOADER: 'https://npm.elemecdn.com/[email protected]/plugins/autoloader/prism-autoloader.min.js',
PRISM_JS_PATH: 'https://npm.elemecdn.com/[email protected]/components/',
// 代码主题 https://github.com/PrismJS/prism-themes
PRISM_JS_AUTO_LOADER: 'https://npm.elemecdn.com/[email protected]/plugins/autoloader/prism-autoloader.min.js',

// 代码主题 @see https://github.com/PrismJS/prism-themes
PRISM_THEME_PREFIX_PATH: 'https://cdn.jsdelivr.net/npm/[email protected]/themes/prism-okaidia.css', // 代码块默认主题
PRISM_THEME_SWITCH: process.env.NEXT_PUBLIC_PRISM_THEME_SWITCH || true, // 是否开启浅色/深色模式代码主题切换
PRISM_THEME_SWITCH: process.env.NEXT_PUBLIC_PRISM_THEME_SWITCH || true, // 是否开启浅色/深色模式代码主题切换; 开启后将显示以下两个主题
PRISM_THEME_LIGHT_PATH: 'https://cdn.jsdelivr.net/npm/[email protected]/themes/prism-solarizedlight.css', // 浅色模式主题
PRISM_THEME_DARK_PATH: 'https://cdn.jsdelivr.net/npm/[email protected]/themes/prism-okaidia.min.css', // 深色模式主题

CODE_MAC_BAR: process.env.NEXT_PUBLIC_CODE_MAC_BAR || true, // 代码左上角显示mac的红黄绿图标
CODE_LINE_NUMBERS: process.env.NEXT_PUBLIC_CODE_LINE_NUMBERS || 'false', // 是否显示行号
// END********代码相关********

// Mermaid 图表CDN
MERMAID_CDN: process.env.NEXT_PUBLIC_MERMAID_CDN || 'https://cdn.jsdelivr.net/npm/[email protected]/dist/mermaid.min.js', // CDN
Expand Down

0 comments on commit fcd4a69

Please sign in to comment.