Skip to content

Commit f5df782

Browse files
committed
reduce indirection
1 parent e7bd8d9 commit f5df782

File tree

1 file changed

+1
-5
lines changed
  • apps/svelte.dev/src/lib/server

1 file changed

+1
-5
lines changed

apps/svelte.dev/src/lib/server/llms.ts

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ export function generate_llm_content(options: GenerateLlmContentOptions): string
3636

3737
for (const section of options.sections) {
3838
if (options.sections.length > 1) {
39-
content += `${get_documentation_start_title(section)}\n\n`;
39+
content += `# Start of ${section.title} documentation\n\n`;
4040
}
4141

4242
for (const [path, document] of Object.entries(index)) {
@@ -67,10 +67,6 @@ export function get_documentation_title(section: Section): string {
6767
return `This is the developer documentation for ${section.title}.`;
6868
}
6969

70-
export function get_documentation_start_title(section: Section): string {
71-
return `# Start of ${section.title} documentation`;
72-
}
73-
7470
function minimize_content(content: string, options?: Partial<MinimizeOptions>): string {
7571
// Merge with defaults, but only for properties that are defined
7672
const settings: MinimizeOptions = { ...defaults, ...options };

0 commit comments

Comments
 (0)