Skip to content

Commit 1500848

Browse files
committed
Fix .md file path
1 parent bc0a6fc commit 1500848

File tree

3 files changed

+4
-3
lines changed

3 files changed

+4
-3
lines changed

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,3 +40,5 @@ scripts/code-type-checking/dart/snippets/*
4040

4141

4242
tmp/*
43+
44+
.opencode/*

src/plugins/generateLllmsFullTxt.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -355,7 +355,6 @@ export default function createLLMFullFile(context) {
355355
(item, index, self) => index === self.findIndex((t) => t.module === item.module),
356356
);
357357
const importsWithoutBlocks = uniqueImports.filter((item) => !item.module.includes("_blocks"));
358-
console.log(JSON.stringify(importsWithoutBlocks, null, 2));
359358

360359
const fdiIntro = await parseMdxContent("./docs/references/fdi/introduction.mdx", true);
361360
const cdiIntro = await parseMdxContent("./docs/references/cdi/introduction.mdx", true);
@@ -375,7 +374,7 @@ ${cdiReferenceFullTxt}
375374
for (const file of parsedFiles) {
376375
const regex = /.*\/docs\/(.+)\.mdx$/;
377376
const match = file.path.match(regex);
378-
const outputPath = path.join(outDir, `md/${match[1]}`);
377+
const outputPath = path.join(outDir, `md/${match[1]}.md`);
379378
const directoryPath = path.dirname(outputPath);
380379
const normalizedPath = path.normalize(directoryPath);
381380

src/plugins/generateLllmsTxt.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ function buildContent(files: { path: string; description?: string; title: string
5757
const regex = /.*\/docs\/(.+)\.mdx$/;
5858
const match = file.path.match(regex);
5959

60-
const src = `https://supertokens.com/docs/${match[1]}`;
60+
const src = `https://supertokens.com/docs/${match[1]}.md`;
6161
const parsedDescription = file.description ? `: ${file.description}` : "";
6262
return `- [${file.title}](${src})${parsedDescription}`;
6363
})

0 commit comments

Comments
 (0)