Home / Function/ isDisabledGuide() — supabase Function Reference

isDisabledGuide() — supabase Function Reference

Architecture documentation for the isDisabledGuide() function in guideModelLoader.ts from the supabase codebase.

Entity Profile

Dependency Diagram

graph TD
  0bf5e20d_de53_c586_d17f_d498453effe0["isDisabledGuide()"]
  46d218d1_4c2d_c813_f0c6_3dc0d7dce1f0["walkMdxFiles()"]
  46d218d1_4c2d_c813_f0c6_3dc0d7dce1f0 -->|calls| 0bf5e20d_de53_c586_d17f_d498453effe0
  1673fedf_e2e8_e78f_d1bc_ea27d0b7b85a["checkGuidePageEnabled()"]
  0bf5e20d_de53_c586_d17f_d498453effe0 -->|calls| 1673fedf_e2e8_e78f_d1bc_ea27d0b7b85a
  style 0bf5e20d_de53_c586_d17f_d498453effe0 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

apps/docs/resources/guide/guideModelLoader.ts lines 30–39

function isDisabledGuide(relPath: string, baseDir: string): boolean {
  const fullPath = resolve(baseDir, relPath)
  if (!fullPath.startsWith(GUIDES_DIRECTORY)) return false

  const relGuidePath = relative(GUIDES_DIRECTORY, fullPath)
  const urlPath = relGuidePath.replace(/\.mdx?$/, '').replace(/\/index$/, '')
  const guidesPath = `/guides/${urlPath}`

  return !checkGuidePageEnabled(guidesPath)
}

Subdomains

Called By

Frequently Asked Questions

What does isDisabledGuide() do?
isDisabledGuide() is a function in the supabase codebase.
What does isDisabledGuide() call?
isDisabledGuide() calls 1 function(s): checkGuidePageEnabled.
What calls isDisabledGuide()?
isDisabledGuide() is called by 1 function(s): walkMdxFiles.

Analyze Your Own Codebase

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

Try Supermodel Free