Skip to content

Commit d2968de

Browse files
committed
docs: update documentation structure, navigation, and content for consistency and clarity
- Renamed FAQ from edge-worker to general FAQ for broader scope - Adjusted sidebar order for better navigation hierarchy - Added banners indicating queue-only version for relevant docs - Updated links and import paths for deployment and installation guides - Corrected formatting and spacing in various MDX files for readability - Clarified instructions and fixed typos in configuration and setup guides - Improved consistency in feature descriptions and feature list presentation - Minor content updates to reflect current process and best practices
1 parent 3b41a26 commit d2968de

19 files changed

+56
-26
lines changed

pkgs/website/astro.config.mjs

Lines changed: 21 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,12 @@ export default defineConfig({
3737
},
3838
redirects: {
3939
'/edge-worker/how-to/run-on-hosted-supabase':
40-
'/edge-worker/how-to/deploy-to-supabasecom/',
40+
'/how-to/deploy-to-supabasecom/',
41+
'/edge-worker/faq/': '/faq/',
42+
'/edge-worker/how-to/': '/faq/',
43+
'/edge-worker/how-to/deploy-to-supabasecom/':
44+
'/how-to/deploy-to-supabasecom/',
45+
'/edge-worker/how-to/prepare-db-string/': '/how-to/prepare-db-string/',
4146
},
4247
integrations: [
4348
react(),
@@ -81,6 +86,10 @@ export default defineConfig({
8186
label: 'START HERE',
8287
autogenerate: { directory: 'getting-started/' },
8388
},
89+
{
90+
label: 'FAQ - Common Questions',
91+
link: '/faq/',
92+
},
8493
{
8594
label: 'How To',
8695
autogenerate: { directory: 'how-to/' },
@@ -103,12 +112,17 @@ export default defineConfig({
103112
autogenerate: { directory: 'edge-worker/getting-started/' },
104113
},
105114
{
106-
label: 'How to?',
107-
autogenerate: { directory: 'edge-worker/how-to/' },
108-
},
109-
{
110-
label: 'FAQ - Common Questions',
111-
link: '/edge-worker/faq/',
115+
label: 'How To',
116+
items: [
117+
{
118+
label: 'Deploy to Supabase.com',
119+
link: '/how-to/deploy-to-supabasecom/',
120+
},
121+
{
122+
label: 'Prepare DB Connection String',
123+
link: '/how-to/prepare-db-string/',
124+
},
125+
],
112126
},
113127
],
114128
},

pkgs/website/src/content/docs/edge-worker/getting-started/configuration.mdx

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,9 @@ title: Configuration
33
description: Learn how to configure EdgeWorker with options for configuring Supabase Queues, message processing, polling behavior, and retries. Includes defaults and best practices.
44
sidebar:
55
order: 3
6+
banner:
7+
content: |
8+
This guide is for the queue-only version of Edge Worker. Main docs are <a href="/getting-started/">here</a>
69
---
710

811
import { Aside, Steps } from "@astrojs/starlight/components";
@@ -138,7 +141,7 @@ EdgeWorker.start(handler, {
138141
Amount of seconds to wait for a message to be available in the queue.
139142

140143
:::caution[Polling and Worker Health]
141-
Keep `maxPollSeconds` at 5 seconds or lower.
144+
Keep `maxPollSeconds` at 5 seconds or lower.
142145
<details>
143146
<summary>
144147
Here's why:
@@ -164,7 +167,7 @@ The interval (in milliseconds) between database polling attempts by `pgmq.read_w
164167
The default value is suitable for most use cases.
165168

166169
<Aside type="caution" title="Polling Intervals">
167-
Keep `pollIntervalMs` lower than `maxPollSeconds * 1000`.
170+
Keep `pollIntervalMs` lower than `maxPollSeconds * 1000`.
168171
<details>
169172
<summary>
170173
Here's why:

pkgs/website/src/content/docs/edge-worker/getting-started/create-first-worker.mdx

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,9 @@ title: Create your first worker
33
description: Build a web scraping worker with EdgeWorker in minutes. Step-by-step tutorial to process queues on top of Supabase Background Tasks in a reliable way
44
sidebar:
55
order: 2
6+
banner:
7+
content: |
8+
This guide is for the queue-only version of Edge Worker. Main docs are <a href="/getting-started/">here</a>
69
---
710

811
import { Aside, Steps } from "@astrojs/starlight/components";

pkgs/website/src/content/docs/edge-worker/getting-started/install-edge-worker.mdx

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,9 @@ title: Install Edge Worker
33
description: Quick setup guide for EdgeWorker on Supabase Background Tasks. Configure connection pooling, migrations, and environment in 5 simple steps.
44
sidebar:
55
order: 1
6+
banner:
7+
content: |
8+
This guide is for the queue-only version of Edge Worker. Main docs are <a href="/getting-started/">here</a>
69
---
710

811
import { Aside, Steps } from "@astrojs/starlight/components";
@@ -27,7 +30,7 @@ If you haven't installed the CLI yet or need to upgrade, see Supabase's [install
2730
1. ### Install Edge Worker
2831

2932
You can install Edge Worker using the pgflow installer (recommended) or [manually](/how-to/manual-installation/) if you want more control over the process.
30-
33+
3134
Run the pgflow installer with npx:
3235

3336
```bash frame="none"

pkgs/website/src/content/docs/edge-worker/getting-started/observability.mdx

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,9 @@ title: Observability
33
description: Learn how to monitor Edge Worker with logging and heartbeat tracking. Configure log levels and track worker status using built-in SQL views.
44
sidebar:
55
order: 4
6+
banner:
7+
content: |
8+
This guide is for the queue-only version of Edge Worker. Main docs are <a href="/getting-started/">here</a>
69
---
710

811
## Logging
@@ -33,7 +36,7 @@ Edge Worker sends heartbeats every 5 seconds and updates `last_heartbeat_at` col
3336
In order to get a list of active workers, we need to fetch those that have pinged in the last 6 seconds (+1s to account for delays):
3437

3538
```sql frame="none"
36-
SELECT *
37-
FROM edge_worker.workers
39+
SELECT *
40+
FROM edge_worker.workers
3841
WHERE last_heartbeat_at > now() - make_interval(secs => 6)
3942
```

pkgs/website/src/content/docs/edge-worker/how-it-works.mdx

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
11
---
22
title: How it works?
33
description: Discover how Edge Worker enhances Supabase Background Tasks with retries, concurrency control, and automatic scaling while ensuring zero message loss.
4+
banner:
5+
content: |
6+
This guide is for the queue-only version of Edge Worker. Main docs are <a href="/getting-started/">here</a>
47
---
58

69
import { Aside } from "@astrojs/starlight/components";
@@ -9,7 +12,7 @@ import { Aside } from "@astrojs/starlight/components";
912

1013
[![](https://mermaid.ink/img/pako:eNplkcFugzAMhl8lyrl9AQ47VLBxqdSqlZAGHEziASokyEkmTaXvvoR0o1VziGL_n_9Y9pULLZEnvFItwdSxc1op5o9xTUxU_OQmaMAgy2SL7N0pYXutTMUjGU5WlItYaLog1VFAJSv14paCXdweyw8f-2MZLnZ06LBelXxXRk_DztAM-Gp9KA-kpRP-W7bdvs3Ga4aNaAy0OC_WdzD4B4IQVsLMvvkIZMUiA4mu_8ZHYjW5MxNp4dUnKC9zUHJA-h9R_VQTG-sQyDYINlTs-IaPSCP00q_gGvCK2w5HP53EPyXQJczp5jlwVp9-lOCJJYcbTtq13V_gJgkW0x78lEeefMFgfHYC9an1GqPsraZ9XPiy99svlAqmtA?type=png)](https://mermaid.live/edit#pako:eNplkcFugzAMhl8lyrl9AQ47VLBxqdSqlZAGHEziASokyEkmTaXvvoR0o1VziGL_n_9Y9pULLZEnvFItwdSxc1op5o9xTUxU_OQmaMAgy2SL7N0pYXutTMUjGU5WlItYaLog1VFAJSv14paCXdweyw8f-2MZLnZ06LBelXxXRk_DztAM-Gp9KA-kpRP-W7bdvs3Ga4aNaAy0OC_WdzD4B4IQVsLMvvkIZMUiA4mu_8ZHYjW5MxNp4dUnKC9zUHJA-h9R_VQTG-sQyDYINlTs-IaPSCP00q_gGvCK2w5HP53EPyXQJczp5jlwVp9-lOCJJYcbTtq13V_gJgkW0x78lEeefMFgfHYC9an1GqPsraZ9XPiy99svlAqmtA)
1114

12-
### Features
15+
### Features
1316

1417
Under the hood, it wraps [Supabase Background Tasks](https://supabase.com/docs/guides/functions/background-tasks) and adds a lot of useful features:
1518

pkgs/website/src/content/docs/edge-worker/faq.mdx renamed to pkgs/website/src/content/docs/faq.mdx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
---
22
title: FAQ - Common Questions
33
description: Common questions about Edge Worker functionality, usage, and billing.
4-
topic: edge-worker
54
---
65

76
## Will running Edge Worker 24/7 affect my billing?

pkgs/website/src/content/docs/getting-started/compile-to-sql.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
title: Compile flow to SQL
33
description: Learn how to compile your flow definition to SQL and apply it to your database
44
sidebar:
5-
order: 3
5+
order: 30
66
---
77

88
import { Aside, Steps } from "@astrojs/starlight/components";

pkgs/website/src/content/docs/getting-started/create-first-flow.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
title: Create your first flow
33
description: Learn how to define a workflow using pgflow's TypeScript DSL
44
sidebar:
5-
order: 2
5+
order: 20
66
---
77

88
import { Aside, Steps, Tabs, TabItem } from "@astrojs/starlight/components";

pkgs/website/src/content/docs/getting-started/install-pgflow.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
title: Install pgflow
33
description: Quick setup guide for pgflow on Supabase. Set up the workflow engine in your project with a simple npx command.
44
sidebar:
5-
order: 1
5+
order: 10
66
---
77

88
import { Aside, Steps } from "@astrojs/starlight/components";

0 commit comments

Comments
 (0)