forked from tangly1024/NotionNext
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'enhance-code-highlight-switch' of https://github.com/jx…
…peng98/notionnext into pr/jxpeng98/1257
- Loading branch information
Showing
1 changed file
with
6 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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 | ||
|