generateSourceLlmsTxt() — supabase Function Reference
Architecture documentation for the generateSourceLlmsTxt() function in llms.ts from the supabase codebase.
Entity Profile
Relationship Graph
Source Code
apps/docs/scripts/llms.ts lines 125–136
async function generateSourceLlmsTxt(sourceDefn: Source) {
const source = await sourceDefn.fetch()
const sourceText = source
.map((section) => {
section.process()
return section.extractIndexedContent()
})
.join('\n\n')
const fullText = sourceDefn.title + '\n\n' + sourceText
fs.writeFile(`public/${sourceDefn.relPath}`, fullText)
}
Domain
Subdomains
Source
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free