WrappersDocs() — supabase Function Reference
Architecture documentation for the WrappersDocs() function in page.tsx from the supabase codebase.
Entity Profile
Dependency Diagram
graph TD a81c7658_9b4f_fc60_f8e0_789f62805e13["WrappersDocs()"] ab4f49e3_ca6f_6ee7_e6ce_c61c06858edc["getContent()"] a81c7658_9b4f_fc60_f8e0_789f62805e13 -->|calls| ab4f49e3_ca6f_6ee7_e6ce_c61c06858edc 3bccbd15_9b7a_4cb4_f121_966a377bae6a["assetUrlTransform()"] a81c7658_9b4f_fc60_f8e0_789f62805e13 -->|calls| 3bccbd15_9b7a_4cb4_f121_966a377bae6a 66d74c0c_73ea_a066_0958_8b1b5e45d668["urlTransform()"] a81c7658_9b4f_fc60_f8e0_789f62805e13 -->|calls| 66d74c0c_73ea_a066_0958_8b1b5e45d668 e307623f_b9fa_899a_57f4_728d71cf8eb0["getDashboardIntegrationURL()"] a81c7658_9b4f_fc60_f8e0_789f62805e13 -->|calls| e307623f_b9fa_899a_57f4_728d71cf8eb0 style a81c7658_9b4f_fc60_f8e0_789f62805e13 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
apps/docs/app/guides/database/extensions/wrappers/[[...slug]]/page.tsx lines 258–318
const WrappersDocs = async (props: { params: Promise<Params> }) => {
if (!isFeatureEnabled('docs:fdw')) {
notFound()
}
const params = await props.params
const { isExternal, meta, assetsBaseUrl, ...data } = await getContent(params)
// Create a combined URL transformer that handles both regular URLs and asset URLs
const combinedUrlTransformer: UrlTransformFunction = (url, node) => {
// First try assets URL transformation (starts with ../assets/)
const transformedUrl = assetUrlTransform(url, assetsBaseUrl)
// If URL wasn't changed proceed with regular URL transformation
if (transformedUrl === url) {
return urlTransform(url, node)
}
return transformedUrl
}
const options = isExternal
? ({
mdxOptions: {
remarkPlugins: [
remarkMkDocsAdmonition,
emoji,
remarkPyMdownTabs,
[removeTitle, meta.title],
],
rehypePlugins: [[linkTransform, combinedUrlTransformer], rehypeSlug],
},
} as SerializeOptions)
: undefined
const dashboardIntegrationURL = getDashboardIntegrationURL(meta.dashboardIntegrationPath)
return (
<Guide meta={meta}>
<GuideArticle>
<GuideHeader />
{dashboardIntegrationURL && (
<Admonition type="tip" className="mb-4">
<p>You can enable the {meta.title} wrapper right from the Supabase dashboard.</p>
<Button asChild>
<Link href={dashboardIntegrationURL} className="no-underline">
Open wrapper in dashboard
</Link>
</Button>
</Admonition>
)}
<GuideMdxContent content={data.content} mdxOptions={options} />
<GuideFooter editLink={data.editLink} />
</GuideArticle>
</Guide>
)
}
Domain
Subdomains
Source
Frequently Asked Questions
What does WrappersDocs() do?
WrappersDocs() is a function in the supabase codebase.
What does WrappersDocs() call?
WrappersDocs() calls 4 function(s): assetUrlTransform, getContent, getDashboardIntegrationURL, urlTransform.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free