Home / Function/ getContent() — supabase Function Reference

getContent() — supabase Function Reference

Architecture documentation for the getContent() function in page.tsx from the supabase codebase.

Entity Profile

Dependency Diagram

graph TD
  59093974_e6d4_28f2_ee0c_e48bac3ddd48["getContent()"]
  c287b6a1_7e27_18b3_c523_eb34f9a1f3e6["ActionDocs()"]
  c287b6a1_7e27_18b3_c523_eb34f9a1f3e6 -->|calls| 59093974_e6d4_28f2_ee0c_e48bac3ddd48
  70c06384_8dda_31de_ba22_ce75a80729a6["newEditLink()"]
  59093974_e6d4_28f2_ee0c_e48bac3ddd48 -->|calls| 70c06384_8dda_31de_ba22_ce75a80729a6
  569852a0_6fc2_34d0_9b3f_ea353f93379a["removeRedundantH1()"]
  59093974_e6d4_28f2_ee0c_e48bac3ddd48 -->|calls| 569852a0_6fc2_34d0_9b3f_ea353f93379a
  style 59093974_e6d4_28f2_ee0c_e48bac3ddd48 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

apps/docs/app/guides/deployment/ci/[slug]/page.tsx lines 74–97

const getContent = async ({ slug }: Params) => {
  const page = pageMap.find(({ slug: validSlug }) => validSlug && validSlug === slug)

  if (!page) {
    notFound()
  }

  const { remoteFile, meta } = page

  const editLink = newEditLink(`${org}/${repo}/blob/${branch}/${docsDir}/${remoteFile}`)

  const response = await fetchRevalidatePerDay(
    `https://raw.githubusercontent.com/${org}/${repo}/${branch}/${docsDir}/${remoteFile}`
  )

  const content = removeRedundantH1(await response.text())

  return {
    pathname: `/guides/cli/github-action/${slug}` satisfies `/${string}`,
    meta,
    content,
    editLink,
  }
}

Subdomains

Called By

Frequently Asked Questions

What does getContent() do?
getContent() is a function in the supabase codebase.
What does getContent() call?
getContent() calls 2 function(s): newEditLink, removeRedundantH1.
What calls getContent()?
getContent() is called by 1 function(s): ActionDocs.

Analyze Your Own Codebase

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

Try Supermodel Free