@@ -132,18 +132,18 @@ export const docs = create_docs();
132132
133133export const examples = index . examples . children ;
134134
135- function getSectionPriority ( path : string ) : number {
135+ function getDocumentationSectionPriority ( path : string ) : number {
136136 if ( path . includes ( '/docs/svelte/' ) ) return 0 ;
137137 if ( path . includes ( '/docs/kit/' ) ) return 1 ;
138138 if ( path . includes ( '/docs/cli/' ) ) return 2 ;
139139 return 3 ;
140140}
141141
142- export function sortPaths ( paths : string [ ] ) : string [ ] {
142+ export function sortDocumentationPaths ( paths : string [ ] ) : string [ ] {
143143 return paths . sort ( ( a , b ) => {
144144 // First compare by section priority
145- const priorityA = getSectionPriority ( a ) ;
146- const priorityB = getSectionPriority ( b ) ;
145+ const priorityA = getDocumentationSectionPriority ( a ) ;
146+ const priorityB = getDocumentationSectionPriority ( b ) ;
147147 if ( priorityA !== priorityB ) return priorityA - priorityB ;
148148
149149 // Get directory paths
@@ -274,7 +274,7 @@ function minimizeContent(content: string, options?: Partial<MinimizeOptions>): s
274274 return minimized ;
275275}
276276
277- function shouldIncludeFile ( filename : string , ignore : string [ ] = [ ] ) : boolean {
277+ function shouldIncludeFileLlmDocs ( filename : string , ignore : string [ ] = [ ] ) : boolean {
278278 const shouldIgnore = ignore . some ( ( pattern ) => minimatch ( filename , pattern ) ) ;
279279 if ( shouldIgnore ) {
280280 if ( dev ) console . log ( `❌ Ignored by pattern: ${ filename } ` ) ;
@@ -284,16 +284,16 @@ function shouldIncludeFile(filename: string, ignore: string[] = []): boolean {
284284 return true ;
285285}
286286
287- interface GenerateContentOptions {
287+ interface GenerateLlmContentOptions {
288288 prefix ?: string ;
289289 ignore ?: string [ ] ;
290290 minimize ?: Partial < MinimizeOptions > ;
291291 package ?: Package ;
292292}
293293
294- export function generateContent (
294+ export function generateLlmContent (
295295 docs : Record < string , string > ,
296- options : GenerateContentOptions = { }
296+ options : GenerateLlmContentOptions = { }
297297) : string {
298298 const { prefix, ignore = [ ] , minimize : minimizeOptions , package : pkg } = options ;
299299
@@ -303,10 +303,10 @@ export function generateContent(
303303 }
304304
305305 let currentSection = '' ;
306- const paths = sortPaths ( Object . keys ( docs ) ) ;
306+ const paths = sortDocumentationPaths ( Object . keys ( docs ) ) ;
307307
308308 for ( const path of paths ) {
309- if ( ! shouldIncludeFile ( path , ignore ) ) continue ;
309+ if ( ! shouldIncludeFileLlmDocs ( path , ignore ) ) continue ;
310310
311311 // If a specific package is provided, only include its docs
312312 if ( pkg ) {
0 commit comments