@ruan-cat/vitepress-preset-config 2.4.1 → 2.5.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/config.mjs +5 -1
- package/package.json +1 -1
- package/src/config.mts +6 -0
package/dist/config.mjs
CHANGED
|
@@ -172,7 +172,11 @@ var defaultUserConfig = {
|
|
|
172
172
|
},
|
|
173
173
|
// 自动化侧边栏
|
|
174
174
|
sidebar: setGenerateSidebar(),
|
|
175
|
-
socialLinks: [{ icon: "github", link: "https://github.com/ruan-cat" }]
|
|
175
|
+
socialLinks: [{ icon: "github", link: "https://github.com/ruan-cat" }],
|
|
176
|
+
editLink: {
|
|
177
|
+
pattern: "https://github.com/ruan-cat/monorepo/blob/dev/packages/vitepress-preset-config/src/docs/please-reset-themeConfig-editLink.md",
|
|
178
|
+
text: "\u5728 github \u4E0A\u6253\u5F00\u6B64\u9875\u9762\u4EE5\u9884\u89C8\u539F\u7248 markdown \u6587\u6863"
|
|
179
|
+
}
|
|
176
180
|
},
|
|
177
181
|
vite: {
|
|
178
182
|
server: { open: true, port: 8080 },
|
package/package.json
CHANGED
package/src/config.mts
CHANGED
|
@@ -115,6 +115,12 @@ const defaultUserConfig: UserConfig<DefaultTheme.Config> = {
|
|
|
115
115
|
sidebar: setGenerateSidebar(),
|
|
116
116
|
|
|
117
117
|
socialLinks: [{ icon: "github", link: "https://github.com/ruan-cat" }],
|
|
118
|
+
|
|
119
|
+
editLink: {
|
|
120
|
+
pattern:
|
|
121
|
+
"https://github.com/ruan-cat/monorepo/blob/dev/packages/vitepress-preset-config/src/docs/please-reset-themeConfig-editLink.md",
|
|
122
|
+
text: "在 github 上打开此页面以预览原版 markdown 文档",
|
|
123
|
+
},
|
|
118
124
|
},
|
|
119
125
|
|
|
120
126
|
vite: {
|