generateSpotlight() — supabase Function Reference
Architecture documentation for the generateSpotlight() function in legacy.ts from the supabase codebase.
Entity Profile
Dependency Diagram
graph TD c37ec867_efed_0cde_e502_6f46856f7ff2["generateSpotlight()"] 797c645c_8063_cca7_a388_c741cda42c70["gen()"] 797c645c_8063_cca7_a388_c741cda42c70 -->|calls| c37ec867_efed_0cde_e502_6f46856f7ff2 b1714d70_a526_94cf_64d9_11129d14c6f3["generateCodeBlocks()"] c37ec867_efed_0cde_e502_6f46856f7ff2 -->|calls| b1714d70_a526_94cf_64d9_11129d14c6f3 style c37ec867_efed_0cde_e502_6f46856f7ff2 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
apps/docs/generator/legacy.ts lines 200–207
function generateSpotlight(id: string, specExamples: any | any[], allLanguages: any) {
if (!Array.isArray(specExamples)) {
throw new Error(`Examples for each spec should be an array, received: \n${specExamples}`)
}
const spotlight = (specExamples && specExamples.find((x) => x.isSpotlight)) || null
const spotlightContent = !spotlight ? '' : generateCodeBlocks(allLanguages, spotlight)
return spotlightContent
}
Domain
Subdomains
Calls
Called By
Source
Frequently Asked Questions
What does generateSpotlight() do?
generateSpotlight() is a function in the supabase codebase.
What does generateSpotlight() call?
generateSpotlight() calls 1 function(s): generateCodeBlocks.
What calls generateSpotlight()?
generateSpotlight() is called by 1 function(s): gen.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free