The Postgres development platform. Supabase gives you a dedicated Postgres database to build your web, mobile, and AI applications.
TypeScript aialternativeauthdatabasedenoembeddingsexamplefirebasenextjsoauth2pgvectorpostgispostgrespostgresqlpostgrestrealtimesupabasevectorswebsockets
Update readme and developers docs
Terry Sutton3a78460b7631
diff --git a/DEVELOPERS.md b/DEVELOPERS.mdindex 36341560526..0d23fbd42f6 100644--- a/DEVELOPERS.md+++ b/DEVELOPERS.md@@ -183,7 +183,7 @@ Then edit and visit any of the following sites:Site | Directory | Description | Local development server---- | --------- | ----------- | ------------------------[supabase.com](https://supabase.com) | `/apps/www` | The main website | http://localhost:3000-[supabase.com/docs](https://supabase.com/docs) | `apps/docs` | Guides and Reference documentation | http://localhost:3010/docs+[supabase.com/docs](https://supabase.com/docs) | `apps/docs` | Guides and Reference documentation | http://localhost:3001/docs[POC] Community forum | `/apps/temp-community-forum` | GitHub Discussions in a Next.js site | http://localhost:3002[POC] DEV articles site | `/apps/temp-community-tutorials` | A Next.js site for our DEV articles (which community members can write) | http://localhost:3003diff --git a/apps/docs/README.md b/apps/docs/README.mdindex 1d67ece731b..7ae88ade7d0 100644--- a/apps/docs/README.md+++ b/apps/docs/README.md@@ -1,30 +1,45 @@-## Getting Started+# Reference Docs-First, run the development server:+Supabase Reference Docs-```bash-yarn dev-```+## Maintainers++If you are a maintainer of any tools in the Supabase ecosystem, you can use this site to provide documentation for the tools & libraries that you maintain.++## Types of docs-Open [http://localhost:3000](http://localhost:3000) with your browser to see the result.+There are many types of docs:-You can start editing the page by modifying `pages/index.js`. The page auto-updates as you edit the file.+1. Guides: teach developers how to use a product. "I have XX problem, how do I solve it?"+2. Tutorials: walk-throughs, have a large outcome. "Build a React application with Supabase".+3. Explanations: teach developers about a broad topic. "What is a database?"+4. Reference: technical descriptions of tools and how to use them. "What errors does the API return?"-[API routes](https://nextjs.org/docs/api-routes/introduction) can be accessed on [http://localhost:3000/api/hello](http://localhost:3000/api/hello). This endpoint can be edited in `pages/api/hello.js`.+In these docs, you should focus only on the fourth type: "Reference Docs".-The `pages/api` directory is mapped to `/api/*`. Files in this directory are treated as [API routes](https://nextjs.org/docs/api-routes/introduction) instead of React pages.+## Versioning-## Learn More+All tools have versioned docs, which are kept in separate folders. For example, the CLI has the following folders and files:-To learn more about Next.js, take a look at the following resources:+- `cli`: the "next" release.+- `cli_spec`: contains the DocSpec for the "next" release (see below).+- `cli_versioned_docs`: a version of the documentation for every release (including the most current version).+- `cli_versioned_sidebars`: a version of the sidebar for every release (including the most current version).-- [Next.js Documentation](https://nextjs.org/docs) - learn about Next.js features and API.-- [Learn Next.js](https://nextjs.org/learn) - an interactive Next.js tutorial.+When you release a new version of a tool, you should also release a new version of the docs. You can do this via the command line. For example, if you just released the CLI version `1.0.1`:++```+npm run cli:version 1.0.1+```-You can check out [the Next.js GitHub repository](https://github.com/vercel/next.js/) - your feedback and contributions are welcome!+## DocSpec-## Deploy on Vercel+We use documentation specifications which can be used to generate human-readable docs.-The easiest way to deploy your Next.js app is to use the [Vercel Platform](https://vercel.com/new?utm_source=github.com&utm_medium=referral&utm_campaign=turborepo-readme) from the creators of Next.js.+- OpenAPI: for documenting API endpoints.+- SDKSpec (custom to Supabase): for SDKs and client libraries.+- ConfigSpec (custom to Supabase): for configuration options.+- CLISpec (custom to Supabase): for CLI commands and usage.-Check out our [Next.js deployment documentation](https://nextjs.org/docs/deployment) for more details.+The benefit of using custom specifications is that we can generate many other types from a strict schema (eg, HTML and manpages).+It also means that we can switch any documentation system we want. On this site we use Next.JS, but in Supabase's official website we use a custom React site and expose only a subset of the available API for each tool.