getDemoFilePath() — ui Function Reference
Architecture documentation for the getDemoFilePath() function in rehype.ts from the ui codebase.
Entity Profile
Dependency Diagram
graph TD 39c6b506_a59e_3c5f_e2db_d7c56a400c96["getDemoFilePath()"] e2427336_4794_0f1c_982a_f2089ffcec85["rehype.ts"] 39c6b506_a59e_3c5f_e2db_d7c56a400c96 -->|defined in| e2427336_4794_0f1c_982a_f2089ffcec85 d0e9b290_610b_ba71_e7bb_ceeef3917003["rehypeComponent()"] d0e9b290_610b_ba71_e7bb_ceeef3917003 -->|calls| 39c6b506_a59e_3c5f_e2db_d7c56a400c96 9d8bdcac_10b0_e037_824e_790a734fe5aa["getBaseForStyle()"] 39c6b506_a59e_3c5f_e2db_d7c56a400c96 -->|calls| 9d8bdcac_10b0_e037_824e_790a734fe5aa style 39c6b506_a59e_3c5f_e2db_d7c56a400c96 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
apps/v4/lib/rehype.ts lines 29–37
function getDemoFilePath(name: string, styleName: string) {
const base = getBaseForStyle(styleName)
if (!base) return null
const demo = ExamplesIndex[base]?.[name]
if (!demo) return null
return path.join(process.cwd(), demo.filePath)
}
Domain
Subdomains
Defined In
Calls
Called By
Source
Frequently Asked Questions
What does getDemoFilePath() do?
getDemoFilePath() is a function in the ui codebase, defined in apps/v4/lib/rehype.ts.
Where is getDemoFilePath() defined?
getDemoFilePath() is defined in apps/v4/lib/rehype.ts at line 29.
What does getDemoFilePath() call?
getDemoFilePath() calls 1 function(s): getBaseForStyle.
What calls getDemoFilePath()?
getDemoFilePath() is called by 1 function(s): rehypeComponent.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free