Home / Function/ gen_v001() — supabase Function Reference

gen_v001() — supabase Function Reference

Architecture documentation for the gen_v001() function in config.ts from the supabase codebase.

Entity Profile

Dependency Diagram

graph TD
  e7038c4b_ef92_333a_7e99_a1b9088faabd["gen_v001()"]
  e1dd0227_d94a_32dc_cc60_3188f48c332b["gen()"]
  e1dd0227_d94a_32dc_cc60_3188f48c332b -->|calls| e7038c4b_ef92_333a_7e99_a1b9088faabd
  c3f63f97_1b0c_be51_f93b_a348e9e50e58["writeToDisk()"]
  e7038c4b_ef92_333a_7e99_a1b9088faabd -->|calls| c3f63f97_1b0c_be51_f93b_a348e9e50e58
  style e7038c4b_ef92_333a_7e99_a1b9088faabd fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

apps/docs/generator/config.ts lines 32–44

async function gen_v001(spec: ConfigSpec, dest: string) {
  const specLayout = spec.info.tags
  const sections = specLayout.map((section: Section) => {
    const parameters = spec.parameters.filter((parameter) => parameter.tags[0] === section.id)
    return { ...section, parameters }
  })

  const content = ejs.render(template, { info: spec.info, sections })
  // console.log(content)
  // Write to disk
  await writeToDisk(dest, content)
  console.log('Saved: ', dest)
}

Subdomains

Called By

Frequently Asked Questions

What does gen_v001() do?
gen_v001() is a function in the supabase codebase.
What does gen_v001() call?
gen_v001() calls 1 function(s): writeToDisk.
What calls gen_v001()?
gen_v001() 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