Skip to content

Commit 6f26458

Browse files
committed
docs: handle import code path
1 parent 7458fb3 commit 6f26458

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

docs/.vuepress/config.ts

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -140,6 +140,16 @@ export default defineUserConfig<DefaultThemeOptions>({
140140
},
141141
},
142142

143+
markdown: {
144+
importCode: {
145+
handleImportPath: (str) =>
146+
str.replace(
147+
/^@vuepress/,
148+
path.resolve(__dirname, '../../packages/@vuepress')
149+
),
150+
},
151+
},
152+
143153
plugins: [
144154
['@vuepress/plugin-debug'],
145155
[

0 commit comments

Comments
 (0)