mirror of
https://github.com/supabase/supabase.git
synced 2026-06-22 21:16:29 +08:00
* initial commit * fix: remove methods which aren't in python lib yet * temporarily remove postgrest * feat: add non-admin methods * fix: temporarily remove non-admin methods * Update Dashboard Auth Settings links * Update example names * Add example * started adding pages * fix: update python ids * fix: change python docs image back to grayscale * fix: update ids of storage functions * Update apps/docs/pages/reference/python/[...slug].tsx Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> * fix: reinstate python image * filter common navmenu sections based on library * fix reference icons * Add introduction * Add IDs * Update common client libs sections * Update intro * fix: add reference section and database section Co-authored-by: joel@joellee.org <joel@joellee.org> Co-authored-by: dannykng <danny@supabase.io> Co-authored-by: Jonathan Summers-Muir <MildTomato@users.noreply.github.com> Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> Co-authored-by: Francisco Mazzoni <francisco@supabase.io>
31 lines
945 B
TypeScript
31 lines
945 B
TypeScript
import clientLibsCommonSections from '~/../../spec/common-client-libs-sections.json'
|
|
import typeSpec from '~/../../spec/enrichments/tsdoc_v2/combined.json'
|
|
// @ts-expect-error
|
|
import spec from '~/../../spec/supabase_py_v2.yml' assert { type: 'yml' }
|
|
import RefSectionHandler from '~/components/reference/RefSectionHandler'
|
|
import { flattenSections } from '~/lib/helpers'
|
|
import handleRefGetStaticPaths from '~/lib/mdx/handleRefStaticPaths'
|
|
import handleRefStaticProps from '~/lib/mdx/handleRefStaticProps'
|
|
|
|
const sections = flattenSections(clientLibsCommonSections)
|
|
|
|
export default function PyReference(props) {
|
|
return (
|
|
<RefSectionHandler
|
|
sections={sections}
|
|
spec={spec}
|
|
typeSpec={typeSpec}
|
|
pageProps={props}
|
|
type="client-lib"
|
|
/>
|
|
)
|
|
}
|
|
|
|
export async function getStaticProps() {
|
|
return handleRefStaticProps(sections, '/python')
|
|
}
|
|
|
|
export function getStaticPaths() {
|
|
return handleRefGetStaticPaths()
|
|
}
|