The Postgres development platform. Supabase gives you a dedicated Postgres database to build your web, mobile, and AI applications.
TypeScript aialternativeauthdatabasedenoembeddingsexamplefirebasenextjsoauth2pgvectorpostgispostgrespostgresqlpostgrestrealtimesupabasevectorswebsockets
Remove autodocs intro content
Terry Sutton249027c80ae5
diff --git a/studio/components/interfaces/TableGridEditor/APIDocumentationPanel.tsx b/studio/components/interfaces/TableGridEditor/APIDocumentationPanel.tsxindex 4565ba6ee28..d03907ffbef 100644--- a/studio/components/interfaces/TableGridEditor/APIDocumentationPanel.tsx+++ b/studio/components/interfaces/TableGridEditor/APIDocumentationPanel.tsx@@ -3,7 +3,7 @@ import { SidePanel, IconBookOpen } from 'ui'import { useStore } from 'hooks'import { useParams } from 'common/hooks'-import { GeneralContent, ResourceContent } from '../Docs'+import { ResourceContent } from '../Docs'import LangSelector from '../Docs/LangSelector'import GeneratingTypes from '../Docs/GeneratingTypes'import ActionBar from './SidePanelEditor/ActionBar'@@ -105,14 +105,6 @@ const APIDocumentationPanel = ({ visible, onClose }: APIDocumentationPanelProps)autoApiService={autoApiService}/></div>- <GeneralContent- autoApiService={autoApiService}- selectedLang={selectedLang}- showApiKey={true}- page={page}- />-- <GeneratingTypes selectedLang={selectedLang} />{jsonSchema?.definitions && (<ResourceContent@@ -126,6 +118,9 @@ const APIDocumentationPanel = ({ visible, onClose }: APIDocumentationPanelProps)refreshDocs={async () => await refetch()}/>)}+ <div className="mt-8">+ <GeneratingTypes selectedLang={selectedLang} />+ </div></>) : (<div className="p-6 mx-auto text-center sm:w-full md:w-3/4">diff --git a/studio/components/to-be-cleaned/Docs/Pages/Introduction.tsx b/studio/components/to-be-cleaned/Docs/Pages/Introduction.tsxindex a125f6c4006..c64f2f5457e 100644--- a/studio/components/to-be-cleaned/Docs/Pages/Introduction.tsx+++ b/studio/components/to-be-cleaned/Docs/Pages/Introduction.tsx@@ -1,24 +1,6 @@-import Image from 'next/image'import { AutoApiService } from 'data/config/project-api-query'-import { BASE_PATH } from 'lib/constants'import Snippets from '../Snippets'import CodeSnippet from '../CodeSnippet'-import { useTheme } from 'common'--const libs = [- {- name: 'Javascript',- url: 'https://supabase.com/docs/reference/javascript/introduction',- icon: 'javascript',- },- { name: 'Flutter', url: 'https://supabase.com/docs/reference/dart/introduction', icon: 'dart' },- {- name: 'Python',- url: 'https://supabase.com/docs/reference/python/introduction',- icon: 'python',- },- { name: 'C#', url: 'https://supabase.com/docs/reference/csharp/introduction', icon: 'csharp' },-]interface Props {autoApiService: AutoApiService@@ -26,84 +8,10 @@ interface Props {}export default function Introduction({ autoApiService, selectedLang }: Props) {- const { isDarkMode } = useTheme()-return (<>- <h2 className="doc-heading">Introduction</h2>- <div className="doc-section doc-section--introduction">- <article className="text ">- <p>- This API provides an easy way to integrate with your Postgres database. The API- documentation below is specifically generated for your database.- </p>- <p>- This is an <b>auto-generating</b> API, so as you make changes to your database, this- documentation will change too.- </p>- <p>- <b>Note:</b> if you make changes to a field (column) name or type, the API interface for- those fields will change correspondingly. Therefore, please make sure to update your API- implementation accordingly whenever you make changes to your Supabase schema from the- graphical interface.- </p>-- <div className="not-prose mb-6">- <p>Read the reference documentation:</p>- <div className="flex items-center gap-4 mt-2">- {libs.map((lib, i) => (- <a- key={i}- href={lib.url}- target="_blank"- rel="noreferrer"- className="- flex items-center gap-1 rounded-md px-3 py-1- bg-scale-300 dark:bg-scale-500- hover:bg-scale-500 hover:dark:bg-scale-700 transition-colors- !text-scale-1100 hover:text-scale-1100- "- >- <Image- src={`${BASE_PATH}/img/icons/reference-${- isDarkMode ? lib.icon : `${lib.icon}-light`- }.svg`}- width={16}- height={16}- alt={lib.name}- />- {lib.name}- </a>- ))}- </div>- </div>- </article>- </div>-- <h2 className="doc-heading">API URL</h2>- <div className="doc-section ">- <article className="text ">- <p>The API URL for your project.</p>- </article>- <article className="code">- <CodeSnippet- selectedLang={selectedLang}- snippet={Snippets.endpoint(autoApiService.endpoint)}- />- </article>- </div>-- <h2 className="doc-heading">Client Libraries</h2><div className="doc-section doc-section--client-libraries">- <article className="text">- <p>Your API consists of both a RESTful interface and a Realtime interface.</p>- <p>- For interacting with the Realtime streams, we provide client libraries that handle the- websockets.- </p>- </article><article className="code">- <CodeSnippet selectedLang={selectedLang} snippet={Snippets.install()} /><CodeSnippetselectedLang={selectedLang}snippet={Snippets.init(autoApiService.endpoint)}diff --git a/studio/styles/ui.scss b/studio/styles/ui.scssindex e080e04ecde..e2cb9d9e6cb 100644--- a/studio/styles/ui.scss+++ b/studio/styles/ui.scss@@ -255,7 +255,7 @@}&.Docs--table-editor .doc-section__table-name {- @apply mt-12;+ @apply mt-4;}.text {@@ -448,4 +448,4 @@line {@apply stroke-scale-1000;}-}\ No newline at end of file+}