Skip to content

Commit 838f66c

Browse files
committed
refactor: update getLLMText function to use updated path and content retrieval methods
1 parent e320850 commit 838f66c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/lib/get-llm-text.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@ const processor = remark().use(remarkMdx).use(remarkInclude).use(remarkGfm)
99

1010
export async function getLLMText(page: InferPageType<typeof source>) {
1111
const processed = await processor.process({
12-
path: page.data._file.absolutePath,
13-
value: page.data.content,
12+
path: page.data.info.fullPath,
13+
value: await page.data.getText("raw"),
1414
})
1515

1616
return `# ${page.data.title}

0 commit comments

Comments
 (0)