We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fc2f721 commit a086966Copy full SHA for a086966
apps/svelte.dev/src/routes/llms.json/+server.ts
@@ -11,16 +11,9 @@ async function getLlmDocuments() {
11
const documents = [];
12
13
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
21
documents.push({
22
title: document.metadata.title,
23
- url: `https://svelte.dev/docs/${topic}/${path}/llms.txt`,
+ url: `https://svelte.dev/${slug}/llms.txt`,
24
use_cases: document.metadata.use_cases || undefined
25
});
26
}
0 commit comments