Home / Function/ genClientSdkSectionTree() — supabase Function Reference

genClientSdkSectionTree() — supabase Function Reference

Architecture documentation for the genClientSdkSectionTree() function in Reference.generated.script.ts from the supabase codebase.

Entity Profile

Dependency Diagram

graph TD
  3208b6de_e89a_68cd_31fb_acee932136dc["genClientSdkSectionTree()"]
  c54513d8_ea67_94fc_f187_f9ae4cd2e3eb["writeSdkReferenceSections()"]
  c54513d8_ea67_94fc_f187_f9ae4cd2e3eb -->|calls| 3208b6de_e89a_68cd_31fb_acee932136dc
  a31dc3a9_2cda_bb58_7cbc_5f9391c9aabd["deepFilterRec()"]
  3208b6de_e89a_68cd_31fb_acee932136dc -->|calls| a31dc3a9_2cda_bb58_7cbc_5f9391c9aabd
  style 3208b6de_e89a_68cd_31fb_acee932136dc fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

apps/docs/features/docs/Reference.generated.script.ts lines 95–110

function genClientSdkSectionTree(
  fns: Array<{ id: unknown }>,
  excludeName: string
): AbbrevApiReferenceSection[] {
  const validSections = deepFilterRec(
    commonClientLibSections as AbbrevApiReferenceSection[],
    'items',
    (section) =>
      section.type === 'markdown' || section.type === 'category'
        ? !('excludes' in section && section.excludes?.includes(excludeName))
        : section.type === 'function'
          ? fns.some(({ id }) => section.id === id)
          : true
  )
  return validSections
}

Subdomains

Frequently Asked Questions

What does genClientSdkSectionTree() do?
genClientSdkSectionTree() is a function in the supabase codebase.
What does genClientSdkSectionTree() call?
genClientSdkSectionTree() calls 1 function(s): deepFilterRec.
What calls genClientSdkSectionTree()?
genClientSdkSectionTree() is called by 1 function(s): writeSdkReferenceSections.

Analyze Your Own Codebase

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

Try Supermodel Free