Home / Function/ getDemoFilePath() — ui Function Reference

getDemoFilePath() — ui Function Reference

Architecture documentation for the getDemoFilePath() function in llm.ts from the ui codebase.

Entity Profile

Dependency Diagram

graph TD
  71cc5361_9d12_7f85_828f_969e67dd74ac["getDemoFilePath()"]
  d4c19c52_649d_50ba_748b_40d85e37474b["llm.ts"]
  71cc5361_9d12_7f85_828f_969e67dd74ac -->|defined in| d4c19c52_649d_50ba_748b_40d85e37474b
  c62ff9be_3fe2_988c_c3bb_6f0e746aace4["processMdxForLLMs()"]
  c62ff9be_3fe2_988c_c3bb_6f0e746aace4 -->|calls| 71cc5361_9d12_7f85_828f_969e67dd74ac
  3849c20b_7178_4831_b7eb_018cc689fc9d["getBaseForStyle()"]
  71cc5361_9d12_7f85_828f_969e67dd74ac -->|calls| 3849c20b_7178_4831_b7eb_018cc689fc9d
  style 71cc5361_9d12_7f85_828f_969e67dd74ac fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

apps/v4/lib/llm.ts lines 19–29

function getDemoFilePath(name: string, styleName: string) {
  const base = getBaseForStyle(styleName)
  if (!base) {
    return null
  }
  const demo = ExamplesIndex[base]?.[name]
  if (!demo) {
    return null
  }
  return demo.filePath
}

Subdomains

Defined In

Frequently Asked Questions

What does getDemoFilePath() do?
getDemoFilePath() is a function in the ui codebase, defined in apps/v4/lib/llm.ts.
Where is getDemoFilePath() defined?
getDemoFilePath() is defined in apps/v4/lib/llm.ts at line 19.
What does getDemoFilePath() call?
getDemoFilePath() calls 1 function(s): getBaseForStyle.
What calls getDemoFilePath()?
getDemoFilePath() is called by 1 function(s): processMdxForLLMs.

Analyze Your Own Codebase

Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.

Try Supermodel Free