Skip to content

Commit a086966

Browse files
committed
Update +server.ts
1 parent fc2f721 commit a086966

File tree

1 file changed

+1
-8
lines changed

1 file changed

+1
-8
lines changed

apps/svelte.dev/src/routes/llms.json/+server.ts

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -11,16 +11,9 @@ async function getLlmDocuments() {
1111
const documents = [];
1212

1313
for (const [slug, document] of Object.entries(docs.pages)) {
14-
// Extract the topic and path from the slug (format: docs/topic/path)
15-
const parts = slug.split('/');
16-
if (parts.length < 3 || parts[0] !== 'docs') continue;
17-
18-
const topic = parts[1];
19-
const path = parts.slice(2).join('/');
20-
2114
documents.push({
2215
title: document.metadata.title,
23-
url: `https://svelte.dev/docs/${topic}/${path}/llms.txt`,
16+
url: `https://svelte.dev/${slug}/llms.txt`,
2417
use_cases: document.metadata.use_cases || undefined
2518
});
2619
}

0 commit comments

Comments
 (0)