Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 1 addition & 7 deletions apps/svelte.dev/src/lib/server/llms.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@ interface MinimizeOptions {
remove_details_blocks: boolean;
remove_playground_links: boolean;
remove_prettier_ignore: boolean;
normalize_whitespace: boolean;
}

interface Topic {
Expand All @@ -27,8 +26,7 @@ const defaults: MinimizeOptions = {
remove_note_blocks: false,
remove_details_blocks: false,
remove_playground_links: false,
remove_prettier_ignore: false,
normalize_whitespace: false
remove_prettier_ignore: false
};

export function generate_llm_content(options: GenerateLlmContentOptions): string {
Expand Down Expand Up @@ -105,10 +103,6 @@ function minimize_content(content: string, options?: Partial<MinimizeOptions>):
.join('\n');
}

if (settings.normalize_whitespace) {
minimized = minimized.replace(/\s+/g, ' ');
}

minimized = minimized.trim();

return minimized;
Expand Down
3 changes: 1 addition & 2 deletions apps/svelte.dev/src/routes/llms-medium.txt/+server.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,7 @@ export function GET() {
remove_note_blocks: true,
remove_details_blocks: true,
remove_playground_links: true,
remove_prettier_ignore: true,
normalize_whitespace: true
remove_prettier_ignore: true
}
});
const content = `<SYSTEM>This is the abridged developer documentation for Svelte and SvelteKit.</SYSTEM>\n\n${main_content}`;
Expand Down