diff --git a/apps/docs/components/reference/CLICommandSection.tsx b/apps/docs/components/reference/CLICommandSection.tsx index d340a28ffca..473ad848907 100644 --- a/apps/docs/components/reference/CLICommandSection.tsx +++ b/apps/docs/components/reference/CLICommandSection.tsx @@ -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 ( { {/* {command.usage && ( - - {command.usage} - - )} */} + + {command.usage} + + )} */} {command.subcommands.length > 0 && (
diff --git a/apps/docs/components/reference/RefSectionHandler.tsx b/apps/docs/components/reference/RefSectionHandler.tsx index ced32c6a586..cca2e834ac9 100644 --- a/apps/docs/components/reference/RefSectionHandler.tsx +++ b/apps/docs/components/reference/RefSectionHandler.tsx @@ -65,7 +65,7 @@ const RefSectionHandler = (props) => { /> ) case 'cli-command': - return + return break case 'operation': return diff --git a/spec/common-cli-sections.json b/spec/common-cli-sections.json index d7bb3af701a..94570bfab9b 100644 --- a/spec/common-cli-sections.json +++ b/spec/common-cli-sections.json @@ -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",