Skip to content

Commit a7133f1

Browse files
committed
chore: add fumadocs-mdx:collections path in tsconfig
1 parent edd780b commit a7133f1

File tree

3 files changed

+5
-6
lines changed

3 files changed

+5
-6
lines changed

docs/package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,10 +13,10 @@
1313
"dependencies": {
1414
"class-variance-authority": "^0.7.1",
1515
"clsx": "^2.1.1",
16-
"fumadocs-core": "16.4.6",
17-
"fumadocs-mdx": "14.2.4",
16+
"fumadocs-core": "^16.4.6",
17+
"fumadocs-mdx": "^14.2.4",
1818
"fumadocs-typescript": "^5.0.1",
19-
"fumadocs-ui": "16.4.6",
19+
"fumadocs-ui": "^16.4.6",
2020
"lucide-react": "^0.548.0",
2121
"next": "catalog:next",
2222
"react": "catalog:react",

docs/src/lib/source.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { docs } from "@/.source"
1+
import { docs } from "fumadocs-mdx:collections/server"
22
import { type InferPageType, loader } from "fumadocs-core/source"
33
import { lucideIconsPlugin } from "fumadocs-core/source/lucide-icons"
44

@@ -19,7 +19,6 @@ export function getPageImage(page: InferPageType<typeof source>) {
1919

2020
export async function getLLMText(page: InferPageType<typeof source>) {
2121
const processed = await page.data.getText("processed")
22-
2322
return `# ${page.data.title}
2423
2524
${processed}`

docs/tsconfig.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
"incremental": true,
1818
"paths": {
1919
"@/*": ["./src/*"],
20-
"@/.source": [".source"]
20+
"fumadocs-mdx:collections/*": [".source/*"]
2121
},
2222
"plugins": [
2323
{

0 commit comments

Comments
 (0)