Skip to content

Commit 04fa61c

Browse files
authored
Tighten authored docs prose across 51 pages (#143)
Rewrote stiff and repetitive phrasing across authored docs pages while keeping commands, flags, routes, error codes, limits, prerequisites, and exceptions unchanged.
1 parent 41d0e45 commit 04fa61c

52 files changed

Lines changed: 103 additions & 97 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

‎content/(account)/authentication.mdx‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ To create a Spacefast account, you need an email address and the six-digit code
99

1010
## Create an account
1111

12-
Type your email address on the sign-in page and press **Continue**. If the address has no account yet, Spacefast mails you a six-digit code. Enter the code and the account exists. That is the whole signup.
12+
Type your email address on the sign-in page and press **Continue**. If the address has no account yet, Spacefast mails you a six-digit code. Enter the code to finish signing up.
1313

1414
There is no password signup. Passwords are something you add later, from settings, once you already have an account.
1515

@@ -20,7 +20,7 @@ Two other ways in create an account for you:
2020

2121
## Sign in
2222

23-
One field, one button. Type the address, press **Continue**, and Spacefast picks the method for that account.
23+
Enter your email address and press **Continue**. Spacefast picks the right sign-in method for that account:
2424

2525
| What you see | When |
2626
|---|---|
@@ -132,7 +132,7 @@ Inside each team, the credential can't do more than your current role allows the
132132

133133
## Account settings
134134

135-
The whole `/account` branch opens as a dialog over the dashboard.
135+
Every `/account` page opens as a dialog over the dashboard.
136136

137137
| Page | Path | What lives there |
138138
|---|---|---|

‎content/(concepts)/spaces.mdx‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,11 @@ sidebar:
55
order: 1
66
---
77

8-
A Space is what you publish to: one stable hostname. Publishing creates versions inside it, and the Space decides which one visitors see.
8+
A Space is what you publish to, with one stable hostname. Publishing creates versions inside it, and the Space decides which one visitors see.
99

1010
## What a Space is
1111

12-
A Space owns a slug, a hostname, an owner, and one pointer that says which version visitors get. A publish can create a new immutable version or report no changes, and the Space decides which version is live.
12+
Each Space has a slug, a managed hostname, an owner, and a pointer to the version visitors see. A publish creates a new immutable version or reports no changes, and the Space controls which version is live.
1313

1414
Ids are `spc_` plus 32 hex characters:
1515

‎content/(concepts)/teams.mdx‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ A team has a name and a slug. The slug is the first segment of its dashboard URL
3636

3737
## Roles
3838

39-
Three roles, and the one you hold in a team caps everything you do there, whether through the dashboard, the CLI, the API, or an agent acting for you.
39+
Your team role caps what you can do across the dashboard, CLI, API, and any agent acting on your behalf.
4040

4141
| Action | Owner | Admin | Member |
4242
|---|---|---|---|
@@ -60,7 +60,7 @@ Three roles, and the one you hold in a team caps everything you do there, whethe
6060

6161
A credential with the `teams:members.write` scope, such as Agent access, can invite people. Cancelling or resending an invitation and every other membership change need a signed-in person in the dashboard, even for an owner or admin. See [credential limits](/api-keys#what-an-agent-grant-cannot-do).
6262

63-
Owner and admin differ in exactly one place. An admin can hand out `admin` and `member`, but only an owner can make someone else an owner.
63+
Admins can assign the `admin` and `member` roles, while only owners can grant the `owner` role or transfer ownership.
6464

6565
## Invite someone
6666

@@ -95,7 +95,7 @@ On **Members**, each row has role and removal actions for owners and admins. Rem
9595

9696
If the team uses [Connectors](/connectors), the removal review lists the departing member's connector dependencies. Their personal connections disconnect automatically along with any Space bindings pointing to them. Team connections they created stay active while their existing Space bindings stay in place; if an owner or admin rebinds a role on a public, link-shared, or password-protected Space, restore its public-serving allowance before expecting calls to succeed.
9797

98-
Two guards you cannot talk your way past:
98+
Two rules always apply:
9999

100100
- The last owner cannot be removed, and cannot be demoted. Add another owner first.
101101
- An admin cannot create an owner.

‎content/(concepts)/versions.mdx‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ A rollback points `live` back at a retained, ready version and doesn't rebuild i
99

1010
## A version is a snapshot
1111

12-
A publish that changes the files creates a version. A version is the exact set of files plus the config it finalized with, frozen. Nothing rewrites a version after it is ready. A publish with no changes can return `noop_publish` without creating a version.
12+
A publish that changes files creates a version, a frozen snapshot of those files and the config they finalized with. Nothing modifies a version after it is ready. A publish with no changes can return `noop_publish` without creating a version.
1313

1414
Ids are `ver_` plus 32 hex characters. Once a version reaches `ready` it also gets a number, and the CLI and dashboard call it by that number.
1515

@@ -27,7 +27,7 @@ Numbers are handed out in the order versions become ready, not the order they we
2727
| `uploading` | Bytes are landing |
2828
| `uploaded` | Every declared file arrived |
2929
| `finalizing` | The version is being compiled into its served form |
30-
| `ready` | Done, numbered, addressable, promotable |
30+
| `ready` | Ready to serve, numbered, and promotable |
3131
| `failed` | Finalize or the build that fed it failed |
3232
| `canceled` | Stopped before it finished |
3333
| `expired` | A draft that ran out of time before finalize |
@@ -74,7 +74,7 @@ Both take a version id, a ref such as `v12`, or a bare number. Both wait for the
7474

7575
Open **Versions**, find the row, and hit **Make live**. Confirm on **Make v12 live?**. The Overview page carries the same action as **Roll back to** next to the previous version.
7676

77-
Afterwards the list narrates the state you are in, for example *Rolled back from v13. Make it live below to roll forward.*
77+
Afterward, the list shows the rollback state, for example *Rolled back from v13. Make it live below to roll forward.*
7878

7979
</Tab>
8080
<Tab title="API">

‎content/(dynamic)/crons.mdx‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ Validation is blocking. A bad cron fails the publish rather than shipping a sche
4343

4444
## Schedule syntax
4545

46-
Three grammars in two kinds. Named and shorthand schedules are **simple** crons. Five-field crontab schedules are **advanced** crons, and your plan sets how many of each a Space runs.
46+
Crons support three schedule formats across two tiers. Named and shorthand schedules are **simple** crons. Five-field crontab schedules are **advanced** crons, and your plan sets how many of each a Space runs.
4747

4848
| Kind | Examples | Notes |
4949
| --- | --- | --- |
@@ -87,7 +87,7 @@ Advanced crons also run at their closest simple schedule for now, until advanced
8787

8888
A raised limit applies right away. After an upgrade or Boost, crons that were waiting start running without a publish.
8989

90-
A lowered limit applies at your next publish, promote or rollback. Until then, a downgrade or Boost ending changes nothing: crons that are running keep running.
90+
A lowered limit applies at your next publish, promote or rollback. Until then, a downgrade or Boost ending changes nothing, and crons that are running keep running.
9191

9292
For now, whatever the plan, a Space can declare at most **8** crons, and past that the publish fails validation. `allowance` in the API reports the capped numbers. The ceiling rises to the plan limits above as the runtime update reaches every box.
9393

‎content/(dynamic)/database.mdx‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -150,7 +150,7 @@ sf db migrate --rename
150150
| `drop_table`, `drop_column`, `drop_index` | `--drop` |
151151
| `rename_table`, `rename_column` | `--rename` |
152152

153-
`sf db migrate` decides Zero-ness from your local `sf.jsonc` before it contacts the API. A static or Functions project fails with `runtime_kind_mismatch` and exit code `30`, having sent no request. `--previous-artifact` diffs against a named artifact instead of the live schema.
153+
`sf db migrate` checks whether the project uses Zero from your local `sf.jsonc` before it contacts the API. A static or Functions project fails with `runtime_kind_mismatch` and exit code `30`, having sent no request. `--previous-artifact` diffs against a named artifact instead of the live schema.
154154

155155
`sf db`, `sf db dump`, and `sf db migrate` are Zero-only. A worker declares no table set, so they answer `runtime_kind_mismatch` for one.
156156

‎content/(dynamic)/environment-variables.mdx‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -57,9 +57,9 @@ So a brand new variable with no flag is write-only. Pass `--no-secret` when you
5757
| Reserved | Names starting with `SPACEFAST_` |
5858
| Empty values | Refused. A variable always has a value |
5959

60-
## Build time and runtime are different lanes
60+
## Build time and runtime are separate
6161

62-
A plain variable reaches both lanes. It is filled into template files when a version finalizes, and server code reads it at runtime. A secret reaches server code only. A template that references one is blocked with `secret_variable_in_template`.
62+
A plain variable reaches both stages. It is filled into template files when a version finalizes, and server code reads it at runtime. A secret reaches server code only. A template that references one is blocked with `secret_variable_in_template`.
6363

6464
### Build time, `{{ vars.NAME }}`
6565

@@ -109,7 +109,7 @@ export default capsule({
109109

110110
A [Functions](/functions) worker reads the same values from `env`, its second handler argument.
111111

112-
`.env.lakebed.server` is also accepted, for capsule portability. That file is treated as the full list: publishing also deletes Space-scope variables it doesn't name, even when the file is empty.
112+
`.env.lakebed.server` is also accepted, for capsule portability. That file is treated as the full list, so publishing also deletes Space-scope variables it doesn't name, even when the file is empty.
113113

114114

115115
An anonymous first publish, before you have an account, syncs nothing and reports `skipped: "anonymous"`.

‎content/(dynamic)/functions.mdx‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ Detection is the normal case. `sf publish` looks at the tree and picks the first
2323

2424
A directory matching none of these is a static site, which is the safe default.
2525

26-
The OpenNext build wins over a stray `handler.ts`, because framework output is the thing the build produced while a loose file may be a leftover.
26+
The OpenNext build wins over a stray `handler.ts`, because a framework build takes precedence over a leftover handler file.
2727

2828
### The `functions/` file router
2929

@@ -132,7 +132,7 @@ Outbound requests from a worker leave from Cloudflare's shared network addresses
132132

133133
`env.CONNECTORS` calls your Space's [connector roles](/space-connectors#call-it-from-functions) when the version declares any.
134134

135-
`env.DB` is always there. It is D1-shaped, so `env.DB.prepare(sql).bind(...).all()` is the call you already know. It reaches the space's own database through a broker, so no connection string ever lands in the bundle.
135+
`env.DB` is always there. It uses the D1 API (`env.DB.prepare(sql).bind(...).all()`) and reaches the space's own database through a broker, so no connection string ever lands in the bundle.
136136

137137
Two groups of variable names never reach a worker, dropped rather than blanked so your code reads them as absent instead of as "configured, but empty".
138138

‎content/(dynamic)/wordpress.mdx‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ Your published files are served in front of WordPress, so a static Space never u
99

1010
## `sf wp`
1111

12-
`sf wp` is the escape hatch under every named surface: whatever WP-CLI can do that Spacefast has not given its own command.
12+
`sf wp` runs WP-CLI directly for anything Spacefast doesn't have a dedicated command for.
1313

1414
```bash
1515
sf wp option get blogname

‎content/(dynamic)/zero-runtime.mdx‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ The other runtime is [Functions](/functions), a worker for npm-heavy code and fr
1717

1818
## Declare it
1919

20-
Zero is never inferred. A runtime that owns a database does not spring into existence from a directory shape, so both entry paths are required.
20+
Zero is never inferred. Because Zero provisions a database, Spacefast never enables it from directory detection; both entry paths are required.
2121

2222
```jsonc sf.jsonc
2323
{
@@ -160,7 +160,7 @@ Return one of the response helpers: `json(value)`, `text(value)`, `empty()` for
160160
3. Your endpoint table matches. A hit runs the handler in the QuickJS runner on the space's own machine, in one transaction with the database.
161161
4. Everything else falls to the app shell, which serves your client bundle.
162162

163-
Queries, mutations, and actions do not get their own URLs. The client sends them over `/__zero/run`. When a mutation commits, the runtime publishes an invalidation event. Every browser holding a matching subscription re-runs its query. That is the whole realtime story. Do not poll.
163+
Queries, mutations, and actions do not get their own URLs. The client sends them over `/__zero/run`. When a mutation commits, the runtime publishes an invalidation event and every browser holding a matching subscription re-runs its query automatically, so you don't need to poll.
164164

165165
An endpoint cannot claim `/`, `/index.html`, `/client.js`, `/auth/callback`, anything under `/auth/`, or anything under `/_spacefast/`. The shell, the client bundle, and the sign-in flow already answer those.
166166

@@ -257,7 +257,7 @@ Call them from the client with `useAction("invite")`. `scope: "/"` covers the wh
257257

258258
## Styling
259259

260-
Write Tailwind classes in your JSX. Zero compiles them at publish, so do not add a CSS, PostCSS, or Tailwind pipeline. `@plugin` and `@config` directives are rejected, and `theme.json` plus utility classes are the whole styling story.
260+
Write Tailwind classes in your JSX. Zero compiles them at publish, so do not add a CSS, PostCSS, or Tailwind pipeline. `@plugin` and `@config` directives are rejected; use `theme.json` and utility classes for styling.
261261

262262
Class names must be static strings. The compiler finds them by scanning source text, so `bg-${tone}-500` produces no CSS for that class. Branch to whole literals instead.
263263

0 commit comments

Comments
 (0)