Home / Function/ getNavHrefsInSection() — supabase Function Reference

getNavHrefsInSection() — supabase Function Reference

Architecture documentation for the getNavHrefsInSection() function in merge-internal-content.ts from the supabase codebase.

Entity Profile

Dependency Diagram

graph TD
  a5ff300b_93e2_75db_5fa8_809a8ca0a579["getNavHrefsInSection()"]
  9acf4ce4_ed5f_e968_0b88_8392ea05a861["mergeInternalContentIntoSections()"]
  9acf4ce4_ed5f_e968_0b88_8392ea05a861 -->|calls| a5ff300b_93e2_75db_5fa8_809a8ca0a579
  style a5ff300b_93e2_75db_5fa8_809a8ca0a579 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

apps/learn/lib/merge-internal-content.ts lines 6–17

function getNavHrefsInSection(items?: SidebarNavItem[]): Set<string> {
  const hrefs = new Set<string>()
  if (!items) return hrefs

  items.forEach((item) => {
    if (item.href) {
      hrefs.add(item.href)
    }
  })

  return hrefs
}

Subdomains

Frequently Asked Questions

What does getNavHrefsInSection() do?
getNavHrefsInSection() is a function in the supabase codebase.
What calls getNavHrefsInSection()?
getNavHrefsInSection() is called by 1 function(s): mergeInternalContentIntoSections.

Analyze Your Own Codebase

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

Try Supermodel Free