Skip to content

Commit

Permalink
feat: #1 代码块样式优化
Browse files Browse the repository at this point in the history
  • Loading branch information
terwer committed Mar 3, 2023
1 parent d2bd3cb commit 8cb4188
Show file tree
Hide file tree
Showing 7 changed files with 13 additions and 11 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@

- 主题灵感源自于知乎但不限于知乎风格,外观优化包括不限于:

- 字体样式美化,以 `落霞孤鹜` `Times New Roman` 为主
- 字体样式美化,以 `落霞孤鹜` 为主
- 代码块美化,类似 `Mac` 窗口风格
- 文档图片背景自动透明

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,11 +24,11 @@
*/

const initPluginSystem = () => {
return ["/appearance/themes/zhi/dist-cjs/lib/plugin/plugin-system-hook.js"]
return ["/appearance/themes/zhi/dist-cjs/lib/plugin/plugin-system/plugin-system-hook.js"]
}

const pluginSystem = {
initPluginSystem
initPluginSystem,
}

module.exports = pluginSystem
File renamed without changes.
7 changes: 4 additions & 3 deletions public/lib/vendor/translucify/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,10 @@
*/

const initTranslucify = () => {
return [
"/appearance/themes/zhi/dist-cjs/lib/vendor/translucify/translucify.js",
]
return []
// return [
// "/appearance/themes/zhi/dist-cjs/lib/vendor/translucify/translucify.js",
// ]
}

const translucify = {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,11 +24,12 @@
*/

const initPostPublisher = () => {
return ["/widgets/sy-post-publisher/lib/siyuanhook.js"]
return []
// return ["/widgets/sy-post-publisher/lib/siyuanhook.js"]
}

const postPublisher = {
initPostPublisher
initPostPublisher,
}

module.exports = postPublisher
2 changes: 1 addition & 1 deletion src/styles/common/vars/vars-common.styl
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// 字体
_font-family-mono = "Times New Roman", "LXGW WenKai", "JetBrains Mono", "-apple-system", "Microsoft YaHei", "方正北魏楷书_GBK"
_font-family-mono = "LXGW WenKai", "JetBrains Mono", "-apple-system", "Microsoft YaHei", "Times New Roman", "方正北魏楷书_GBK"
_font-size-mini = 12px
_font-size-small = 14px
_font-size-normal = 16px
Expand Down
4 changes: 2 additions & 2 deletions src/utils/otherlib/loadOtherlib.js
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ const requireOtherlib = (entryName, libfile, alias) => {
const loadPluginSystemScript = () => {
const pluginSystem = requireOtherlib(
"zhi",
"plugin/plugin-system.js",
"plugin/plugin-system/index.js",
"插件系统"
)
return pluginSystem.initPluginSystem()
Expand All @@ -104,7 +104,7 @@ const loadPluginSystemScript = () => {
const loadPostPublisherScript = () => {
const postPublisher = requireOtherlib(
"zhi",
"widgets/sy-post-publisher.js",
"widgets/sy-post-publisher/index.js",
"发布工具"
)
return postPublisher.initPostPublisher()
Expand Down

0 comments on commit 8cb4188

Please sign in to comment.