Skip to content

Commit c800d5c

Browse files
committed
fix(docs): ignore generated source and handle /docs
1 parent 9bf031c commit c800d5c

File tree

6 files changed

+3
-74
lines changed

6 files changed

+3
-74
lines changed

apps/docs/.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@
2323
# misc
2424
.DS_Store
2525
*.pem
26+
.source/
2627

2728
# debug
2829
npm-debug.log*

apps/docs/.source/browser.ts

Lines changed: 0 additions & 21 deletions
This file was deleted.

apps/docs/.source/dynamic.ts

Lines changed: 0 additions & 14 deletions
This file was deleted.

apps/docs/.source/server.ts

Lines changed: 0 additions & 29 deletions
This file was deleted.

apps/docs/.source/source.config.mjs

Lines changed: 0 additions & 8 deletions
This file was deleted.

apps/docs/app/llms-full.txt/route.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,8 +40,8 @@ export async function GET() {
4040
// Read the raw MDX file content
4141
try {
4242
// Construct file path from URL
43-
// URL format: /docs/client -> client.mdx
44-
const slug = url.replace('/docs/', '');
43+
// URL format: /docs/client -> client.mdx, /docs -> index.mdx
44+
const slug = url.replace(/^\/docs\/?/, '');
4545
const fileName = slug === '' ? 'index.mdx' : `${slug}.mdx`;
4646
const fullPath = join(process.cwd(), 'content', 'docs', fileName);
4747
const rawContent = await readFile(fullPath, 'utf-8');

0 commit comments

Comments
 (0)