Skip to content

Commit e789f1a

Browse files
committed
docs: update Import Code Snippets
1 parent dbbf4a5 commit e789f1a

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

packages/docs/docs/guide/markdown.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -251,12 +251,12 @@ It also supports [line highlighting](#line-highlighting-in-code-blocks):
251251
**Input**
252252

253253
``` md
254-
<<< @/test/markdown/fragments/snippet.js{2}
254+
<<< @/../@vuepress/markdown/__tests__/fragments/snippet.js{2}
255255
```
256256

257257
**Output**
258258

259-
<<< @/test/markdown/fragments/snippet.js{2}
259+
<<< @/../@vuepress/markdown/__tests__/fragments/snippet.js{2}
260260

261261
::: tip
262262
Since the import of the code snippets will be executed before webpack compilation, you can't use the path alias in webpack. The default value of `@` is `process.cwd()`.

packages/docs/docs/zh/guide/markdown.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -249,12 +249,12 @@ module.exports = {
249249
**Input**
250250

251251
```
252-
<<< @/test/markdown/fragments/snippet.js{2}
252+
<<< @/../@vuepress/markdown/__tests__/fragments/snippet.js{2}
253253
```
254254

255255
**Output**
256256

257-
<<< @/test/markdown/fragments/snippet.js{2}
257+
<<< @/../@vuepress/markdown/__tests__/fragments/snippet.js{2}
258258

259259
::: tip 注意
260260
由于代码段的导入将在 webpack 编译之前执行,因此你无法使用 webpack 中的路径别名,此处的 `@` 默认值是 `process.cwd()`

0 commit comments

Comments
 (0)