From ece33e0e0df29e6dc4d8b83ce236b9bda2176f87 Mon Sep 17 00:00:00 2001 From: Wenjun Xu <906626481@qq.com> Date: Fri, 6 Dec 2024 21:14:43 +0800 Subject: [PATCH] =?UTF-8?q?docs:=20=E5=85=B3=E9=97=AD=E5=8A=A8=E7=94=BB?= =?UTF-8?q?=E6=95=88=E6=9E=9C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- packages/rspress-site/rspress.config.ts | 30 ++++++++++++------------- 1 file changed, 15 insertions(+), 15 deletions(-) diff --git a/packages/rspress-site/rspress.config.ts b/packages/rspress-site/rspress.config.ts index fa3977a..e1bb3cf 100644 --- a/packages/rspress-site/rspress.config.ts +++ b/packages/rspress-site/rspress.config.ts @@ -13,35 +13,35 @@ export default defineConfig({ icon: "/rspress-icon.png", logo: { light: "/rspress-light-logo.png", - dark: "/rspress-dark-logo.png", + dark: "/rspress-dark-logo.png" }, themeConfig: { socialLinks: [ { icon: "github", mode: "link", - content: "https://github.com/wjgogogo/dive-react-19", + content: "https://github.com/wjgogogo/dive-react-19" }, { icon: "wechat", mode: "img", - content: "/dive-react-19/qrcode.png", - }, + content: "/dive-react-19/qrcode.png" + } ], nav: [ { text: "源码解析", link: "/guide/", - activeMatch: "/guide/", - }, + activeMatch: "/guide/" + } ], sidebar: { "/guide/": [ { text: "如何调试 React 源码?", link: "/guide/how-to-debug" }, - { text: "什么是 JSX ?", link: "/guide/what-is-jsx" }, - ], + { text: "什么是 JSX ?", link: "/guide/what-is-jsx" } + ] }, - enableAppearanceAnimation: true, + enableAppearanceAnimation: false, enableScrollToTop: true, lastUpdated: true, lastUpdatedText: "最后更新时间", @@ -51,19 +51,19 @@ export default defineConfig({ searchPlaceholderText: "搜索文档", searchNoResultsText: "未搜索到相关结果", searchSuggestedQueryText: "可更换不同的关键字后重试", - sourceCodeText: "源码", + sourceCodeText: "源码" }, markdown: { - showLineNumbers: true, + showLineNumbers: true }, plugins: [ pluginShiki(), pluginPreview({ defaultRenderMode: "pure", iframeOptions: { - position: "fixed", - }, - }) /* pluginPlayground() */, - ], + position: "fixed" + } + }) /* pluginPlayground() */ + ] });