Skip to content

The Postgres development platform. Supabase gives you a dedicated Postgres database to build your web, mobile, and AI applications.

Adds heading links

Copple9e1c9e9be18d
diff --git a/apps/reference/_cli/usage.mdx b/apps/reference/_cli/usage.mdx
index 31c4666ddd0..9959e7dc443 100644
--- a/apps/reference/_cli/usage.mdx
+++ b/apps/reference/_cli/usage.mdx
@@ -12,7 +12,10 @@ Supabase CLI.
<!-- AUTOGENERATED: DO NOT EDIT DIRECTLY IF THIS IS VERSION "next" -->
-## Manage your Edge Functions
+<br /><br />
+
+## Manage your Edge Functions {#supabase-functions}
+
Manage your Edge Functions.
@@ -28,11 +31,11 @@ supabase functions [command] [flags]
### Available Commands
-- supabase-functions-new
+- <a href="#supabase-functions-new">supabase-functions-new</a>
-- supabase-functions-deploy
+- <a href="#supabase-functions-deploy">supabase-functions-deploy</a>
-- supabase-functions-delete
+- <a href="#supabase-functions-delete">supabase-functions-delete</a>
@@ -47,7 +50,10 @@ supabase functions [command] [flags]
<!-- AUTOGENERATED: DO NOT EDIT DIRECTLY IF THIS IS VERSION "next" -->
-## Create an Edge Functions
+<br /><br />
+
+## Create an Edge Functions {#supabase-functions-new}
+
Create an Edge Functions.
@@ -72,7 +78,10 @@ supabase functions new <Function name>
<!-- AUTOGENERATED: DO NOT EDIT DIRECTLY IF THIS IS VERSION "next" -->
-## Deploy an Edge Functions
+<br /><br />
+
+## Deploy an Edge Functions {#supabase-functions-deploy}
+
Deploy an Edge Functions.
@@ -97,7 +106,10 @@ supabase functions deploy <Function name>
<!-- AUTOGENERATED: DO NOT EDIT DIRECTLY IF THIS IS VERSION "next" -->
-## Delete an Edge Functions
+<br /><br />
+
+## Delete an Edge Functions {#supabase-functions-delete}
+
Delete an Edge Functions.
diff --git a/packages/spec/package.json b/packages/spec/package.json
index 9f17375d624..79a62bcc64f 100644
--- a/packages/spec/package.json
+++ b/packages/spec/package.json
@@ -8,7 +8,7 @@
"api:gen": "npm run api:gen:api",
"api:gen:api": "ts-node ./index.ts gen --type api --input ../../spec/api_v0_openapi.json --output ../../apps/reference/_api/usage.mdx",
"cli:gen": "npm run cli:gen:commands && npm run cli:gen:config",
- "cli:gen:commands": "ts-node ./index.ts gen --type command --input ../../spec/cli_v1_commands.yaml --output ../../apps/reference/_cli/usage.mdx ",
+ "cli:gen:commands": "ts-node ./index.ts gen --type cli --input ../../spec/cli_v1_commands.yaml --output ../../apps/reference/_cli/usage.mdx ",
"cli:gen:config": "ts-node ./index.ts gen --type config --input ../../spec/cli_v1_config.yaml --output ../../apps/reference/_cli/config.mdx",
"gotrue:gen": "npm run gotrue:gen:config",
"gotrue:gen:config": "ts-node ./index.ts gen --type config --input ../../spec/gotrue_v1_config.yaml --output ../../apps/reference/_gotrue/config.mdx",
diff --git a/packages/spec/src/docs/templates/ApiTemplate.ts b/packages/spec/src/docs/templates/ApiTemplate.ts
index 9be269bd4ac..cca56ac3f2f 100644
--- a/packages/spec/src/docs/templates/ApiTemplate.ts
+++ b/packages/spec/src/docs/templates/ApiTemplate.ts
@@ -15,7 +15,7 @@ title: Usage
<% paths.forEach(function(path){ %>
<% path.operations.forEach(function(operation){ %>
-### <%- operation.summary %>
+## <%- operation.summary %> {#<%- operation.operationId %>}
\`\`\`
<%- path.path %>
diff --git a/packages/spec/src/docs/templates/CliTemplate.ts b/packages/spec/src/docs/templates/CliTemplate.ts
index be7ecaa8912..1f441e96fbf 100644
--- a/packages/spec/src/docs/templates/CliTemplate.ts
+++ b/packages/spec/src/docs/templates/CliTemplate.ts
@@ -12,7 +12,10 @@ title: Usage
<!-- AUTOGENERATED: DO NOT EDIT DIRECTLY IF THIS IS VERSION "next" -->
-## <%= command.summary %>
+<br /><br />
+
+## <%- command.summary %> {#<%- command.id %>}
+
<%- command.description %>
@@ -24,7 +27,7 @@ title: Usage
### Available Commands
<% command.subcommands.forEach(function(subcommand){ %>
-- <%- subcommand %>
+- <a href="#<%- subcommand %>"><%- subcommand %></a>
<% }); %>
<% } %>