Skip to content

Commit

Permalink
🐞 fix(Q&A): file dir
Browse files Browse the repository at this point in the history
  • Loading branch information
lqzhgood committed Nov 13, 2023
1 parent a843743 commit c48b64e
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 6 deletions.
2 changes: 1 addition & 1 deletion docs/guide/setup-runtime/Q&A-detail/cannot-find-module.md
Original file line number Diff line number Diff line change
Expand Up @@ -38,4 +38,4 @@ Node.js v18.14.0

##### 解决办法

`nodejs` 没有安装依赖, 参考 [setup-nodejs](./nodejs.md)
`nodejs` 没有安装依赖, 参考 [setup-nodejs](../nodejs.md)
5 changes: 0 additions & 5 deletions docs/guide/setup-runtime/Q&A-detail/list.data.ts
Original file line number Diff line number Diff line change
@@ -1,9 +1,4 @@
import { createContentLoader } from 'vitepress';
import path from 'path';
import { fileURLToPath } from 'node:url';

const files = path.join(path.dirname(fileURLToPath(import.meta.url)), './*.md');
console.log('🚀 ~ file: list.data.ts:6 ~ files:', files);

export default createContentLoader('guide/setup-runtime/Q&A-detail/*.md', {
includeSrc: true, // include raw markdown source?
Expand Down

0 comments on commit c48b64e

Please sign in to comment.