mirror of
https://github.com/supabase/supabase.git
synced 2026-06-02 19:02:06 +08:00
Fix cli docs
This commit is contained in:
@@ -1,3 +1,5 @@
|
||||
// @ts-expect-error
|
||||
import spec from '~/../../spec/cli_v1_commands.yaml' assert { type: 'yml' }
|
||||
import CodeBlock from '~/components/CodeBlock/CodeBlock'
|
||||
import Options from '~/components/Options'
|
||||
import Param from '~/components/Params'
|
||||
@@ -46,7 +48,7 @@ export type Command = {
|
||||
}
|
||||
|
||||
const CliCommandSection = (props) => {
|
||||
const command = props.spec.commands.find((x: any) => x.id === props.funcData.id)
|
||||
const command = spec.commands.find((x: any) => x.id === props.funcData.id)
|
||||
|
||||
return (
|
||||
<RefSubLayout.Section
|
||||
@@ -72,10 +74,10 @@ const CliCommandSection = (props) => {
|
||||
</header>
|
||||
|
||||
{/* {command.usage && (
|
||||
<CodeBlock language="bash" className="relative">
|
||||
{command.usage}
|
||||
</CodeBlock>
|
||||
)} */}
|
||||
<CodeBlock language="bash" className="relative">
|
||||
{command.usage}
|
||||
</CodeBlock>
|
||||
)} */}
|
||||
|
||||
{command.subcommands.length > 0 && (
|
||||
<div className="">
|
||||
|
||||
@@ -65,7 +65,7 @@ const RefSectionHandler = (props) => {
|
||||
/>
|
||||
)
|
||||
case 'cli-command':
|
||||
return <CliCommandSection funcData={x} commonFuncData={x} spec={props.spec} />
|
||||
return <CliCommandSection funcData={x} commonFuncData={x} />
|
||||
break
|
||||
case 'operation':
|
||||
return <ApiOperationSection funcData={x} commonFuncData={x} spec={props.spec} />
|
||||
|
||||
@@ -267,12 +267,6 @@
|
||||
"slug": "supabase-db-remote-commit",
|
||||
"type": "cli-command"
|
||||
},
|
||||
{
|
||||
"id": "supabase-db-remote-changes",
|
||||
"title": "supabase db remote changes",
|
||||
"slug": "supabase-db-remote-changes",
|
||||
"type": "cli-command"
|
||||
},
|
||||
{
|
||||
"id": "supabase-db-push",
|
||||
"title": "supabase db push",
|
||||
|
||||
Reference in New Issue
Block a user