Skip to content

Overhaul Spacefast Docs IA, refresh generated references, and absorb open PRs - #151

Merged
batuhan merged 18 commits into
mainfrom
t3/docs-ia-overhaul
Nov 29, 2026
Merged

batuhan merged 18 commits into
mainfrom
t3/docs-ia-overhaul

Conversation

@batuhan

@batuhan batuhan commented Nov 26, 2026 •

Copy link
Copy Markdown
Contributor

Summary

Unifies the Spacefast documentation site around a five-tab information architecture (Docs, Guides, Agents, Reference, Platforms), refreshes the generated reference snapshot from the latest public product source, prunes legacy redirects down to 192 routing rules, and absorbs the 20 valid open docs pull requests into one reviewable change.

Key changes

  • Five-tab navigation (blume.config.ts, components/Header.astro, components/Sidebar.astro, components/Pagination.astro, components/sections.ts):

    • Docs (/): Get started (including new /request-lifecycle), Build under the unified One Space model (/build, /collections, /actions, /database, /functions, /email, /object-storage, /crons, /environment-variables, /connectors, /zero-migration), Deploy (including new /channels), Domains & routing (5-page /domains group with /urls, /domains, /domains/dns, /domains/registration, /domains/transfers; /redirects, new /headers, /caching, /customization), Operate (including /sso, unified /stats, /tag-manager, /activity, /exports, /space-transfers, /security, /production-checklist, /performance, /feedback, and the 13 /infrastructure pages), and Teams & account (including Labs: /labs, /team-memories, /team-skills, /design-system).
    • Guides (/guides): New /guides hub, /guides/starters, /guides/frameworks, /guides/recipes/{html,vite,next,astro}, /guides/migrate, and /guides/migrate-from/*.
    • Agents (/agents): Consolidated /agents hub (non-technical + technical tracks, https://spacefast.com/setup.md, npx -y spacefast, drop.fast, push.fast), new /agents/poppy (Poppy 1.0), /agents/mcp-server, /agents/skills, /agents/permissions, /agents/anonymous-and-claim, /agents/domain-research, plus generated /setup/* and /connect/* pages.
    • Reference (/reference → /cli): CLI overview (/cli) + generated /cli/reference, REST API guides + new /api/versioning + generated /api/reference, /config-file (rewritten around spacefast.config.ts primary, sf.jsonc fallback, and spacepress.config.ts coexistence), /limits, generated /errors, /glossary, and generated /changelog.
    • Platforms (/platforms): Platforms overview, Partner API guides, and generated /platforms/api/reference.
    • Updated the AI assistant starter prompt from "How do I publish a site?" to "How do I publish a Space?".
  • spacefast.config.ts primary & One Space model:

    • Every configuration, routing, header, runtime, cron, connector, and app guide leads with spacefast.config.ts (defineConfig from spacefast/config), documenting sf.jsonc as JSON fallback and _redirects/_headers as optional convenience/migration files.
    • Removed Beta/Labs labels from GA-track capabilities (Collections & CMS, Actions & forms, Transactional email, Tag Manager, Connectors, Sign in with Spacefast, Stats), keeping only Team Memories, Team Skills, and Design system under Labs.
  • Generated snapshot refresh (generated/**):

    • Refreshed OpenAPI specs (600 REST API operations, 382 Partner API operations), 1,012 error codes, grouped CLI reference, 38 changelog releases across 28 packages, 42 /setup agent pages, and 12 /connect method pages.
  • Deletions & aggressive redirect pruning (redirects.ts, scripts/redirect-rules.mjs, scripts/reference-aliases.json):

    • Retired /wordpress-data-sources, /wordpress, /recipes/eleventy, /migrate-from/glitch, /migrate-from/val-town, /agents/share-chatgpt-html, /agents/share-claude-artifact, the 23 hand-authored /cli/*.mdx subpages, and the stale hand-authored client setup duplicates.
    • Dropped all Partner API compatibility redirects (/partners/api/*, /partner-api/*, /platform-api/*) and pre-launch OpenAPI alias permutations (/api/operations/*, /api/reference/operations/*, /api/reference/resources/*), removed the prefix-compression logic, and removed the /headers and /api/versioning redirect collisions. Total routing rules dropped from 1,742 to 192 (189 static, 1 dynamic mount rewrite).
  • Positioning and coherence pass:

    • Home, the agent preamble, Build, Agents, Guides, and Platforms now lead with building and shipping in one Space, not only the upload step.
    • Removed internal details from public pages: the reserved-slug substring list, internal plan codes, runtime transport paths, a legacy header prefix and state file, and an internal merge-helper name.
    • Pricing table matches enforced limits (24 MiB Workers bundle on every plan; project config declares at most 8 crons today); beta labels removed from generally available capabilities.
    • Commands, operations, and error codes link to their /cli/reference, /api/reference, and /errors anchors so agents can follow each step to its contract.
    • A small product stage on the Docs home page, plus tabular numerals in tables and quieter card hover states.
  • Publish gate fixes (Spacefast Builds):

    • The platform refuses any file named mcp.json. Blume wrote one as the JSON twin of the @spacefast/mcp changelog page, so scripts/finalize-site.mjs drops that twin and its api/docs/pages.json pointer and fails the build if such a name remains.
    • The publish secret scan blocks Space-key-shaped values. The anonymous publishing example now uses an obvious sfc_xxx placeholder, and public/spacefast.jsonc allowlists only the two fingerprints of the createPublish OpenAPI example claim key.
  • Agent index & verification scripts:

    • Updated scripts/build-llms-index.mjs and scripts/sidebar-routes.mjs to collapse generated /setup/* and /connect/* descendants to their family indexes, keeping dist/llms.txt at 27,677 bytes (below the 32,768-byte ceiling).
    • Updated scripts/verify-routes.mjs, scripts/docs-experience.test.mjs, scripts/redirect-rules.test.mjs, scripts/build-llms-index.test.mjs, and evals.yaml for the five-tab IA.

Open PRs absorbed (20)

All valid changes from the following open PRs are folded into this PR (please close after merge; none have been closed automatically):

  • #150 — Consolidate agent docs & unified onboarding UX (setup.md, npx -y spacefast, drop.fast, push.fast, generated /setup and /connect)
  • #145 — Uniform 24 MiB uncompressed compiled Functions/Workers bundle limit across plans (limits.mdx, pricing.mdx, functions.mdx, performance.mdx)
  • #139 — Usage budgets alerts (50% / 80% / 100%) and pause thresholds on pricing.mdx (reconciled with current plan defaults)
  • #137 — Exact Next.js server build support (15.5.29+ / 16.4.5+ via OpenNext 1.20.17) across frameworks.mdx, recipes/next.mdx, and migrate-from/vercel.mdx
  • #136 — .spacefast/config-source.ts version storage, visibility, and one-time publish warning in config-file.mdx
  • #135 — Updated device approval consent layout (Customize Access, Team Access, Allow / Deny) in authentication.mdx and agents/permissions.mdx
  • #131 — Domain registration, contacts/privacy, renewal/redemption, and DNS guides integrated into the 5-page /domains section
  • #95 — SSO & external identity (/sso) and access reference updates (/share)
  • #94 — Crawler protection, cache testing, local header inspection (sf routing inspect / sf routing compute), and domain verification caveats
  • #93 — Distinguish sf domains rm (unassign) from sf domains delete
  • #92 — Black-on-green public/favicon.svg (already present on main via #98, verified intact)
  • #91 — Verified browser Telemetry folded into unified /stats without Beta split (button label reconciled to Spacebar Stats)
  • #85 — Archiving/restoring Spaces and owner/admin inactive Space audit in /exports and /spaces
  • #82 — Claude Desktop connector-first caveats (no .mcpb recommendation, reconciled with #150)
  • #77 — spacefast.config.ts, defineConfig, exported types, async config, discovery precedence, and sf.jsonc fallback in /config-file
  • #76 — Prompt-first connected AI conversation onboarding in /agents and /agents/anonymous-and-claim
  • #72 — Team context moved under Labs (/labs, /team-memories, /team-skills) and removed nonexistent CLI 0.3.0 output
  • #71 — Platform HTTP 429 response replacement caveat in /functions
  • #68 — External proxy routes available independently of Partner feature grants in /platforms/partner-api/configuration
  • #59 — Root handler.ts owns all non-file paths and 404s in /functions

Intentionally excluded (2):

  • #96 (wordpress-data-sources.mdx retired)
  • #65 (old Zero 0.8 /zero-runtime replaced by single /zero-migration page)

Companion follow-ups (separate repos)

  1. Product docs exporter & upstream prose:
    • Remove the three legacy OpenAPI/Partner redirect families from the public docs exporter so generated/redirects.json emits only active canonical renames.
    • Fix upstream generated strings currently carved out in .vale.ini / scripts/openapi-prose-scope.mjs:
      • Error catalog domain_connect_authorization_not_found ("access token" → "OAuth access token")
      • Error catalog zero_v2_compiler_mismatch ("runtime engine" → user-facing runtime phrasing)
      • Partner API OpenAPI info.description ("wp.cloud-compatible" → "WP Cloud-compatible")
      • Remove the temporary .vale.ini carve-outs once the next snapshot refresh carries those upstream fixes.
  2. Product source (re-export after):
    • https://spacefast.com/schemas/sf.json returns 404 although SPACE_CONFIG_SCHEMA_URL points there; publish the JSON Schema (the docs now describe $schema as a format marker and point editor completion at spacefast.config.ts).
    • The generated CLI help still lists the reserved-slug substring blocklist and calls the app a "SpacePress app"; fix those sf spaces/sf app help strings at the source.
    • Product links to retired docs routes: @spacefast/client homepage (/docs/client), the Git push receipt (/docs/git-push), and the dashboard MCP step (/docs/mcp). All three now 301 to the new pages, but should point there directly.
    • Replace the realistic sfc_A1b2C3d4E5f6G7h8I9j0K1 example in the createPublish OpenAPI response with a low-entropy placeholder, then drop the docs allowlist entry.
    • CONNECT_DOC_PAGES_LIVE can be flipped to true once this merges, since /connect/* pages now ship.
  3. Website (spacefast.com):
    • Update any marketing or dashboard deep links that pointed at moved pages (/routing → /redirects, /zero-runtime → /zero-migration, /frameworks → /guides/frameworks, /migrate → /guides/migrate, /recipes/* → /guides/recipes/*, /cli/<subcommand> → /cli/reference#sf-..., /agents/<client> → /setup/<client>). All moved public routes also keep 301 redirects in _redirects during transition.

Verification

CI on the head commit: docs pass, Spacefast Builds pass, Socket pass. A local run of the product's own secret scanner (Spacefast rules plus Gitleaks defaults) over dist/ reports 0 blocking findings across 13,831 files.

All required local verification checks pass:

  • bun run verify:generated — 1,142 artifacts, 600 API ops, 382 Partner ops, 1,012 error codes, 28 packages, 38 releases
  • bun run verify:commands — 1,251 Markdown files
  • bun run check (blume check --strict --isolated) — 0 errors, 0 warnings, 0 hints
  • bun run validate (blume validate --strict) — 0 broken links
  • bun run build — built cleanly; dist/llms.txt is 27,677 bytes (< 32,768 bytes)
  • bun run test:docs — 41/41 tests passing
  • bun run audit — 2,235 pages audited; the only findings are the declared Website-owned dependencies checked at composition
  • bun run verify:public-safety — 2,527 text files and 3 symlinks scanned, clean
  • bun run verify:prose — 0 Vale alerts across 1,250 pages and 3,694 OpenAPI prose fields
  • bun run verify:routes — all 118 IA routes, 2,350 HTML pages, 2,233 Pagefind records, 1,960 sitemap URLs, 2,233 LLM/corpus pages, 192 routing rules, and SEO checks on 2,234 pages passed

Move every authored page into its new section folder (Get started, Build,
Deploy, Domains & routing, Operate, Teams & account, Guides, Agents,
Reference, Platforms), rewrite the folder meta files for the new order, and
delete the pages this overhaul retires: the WordPress pages, the Eleventy
recipe, the Glitch and Val Town migrations, the share-an-artifact agent
pages, the hand-authored client setup duplicates, and the 23 CLI subpages
the generated CLI reference replaces.
Re-export the OpenAPI documents, error catalog, CLI reference, changelog,
and agent setup registry. The snapshot now carries 600 API operations, 382
Partner API operations, 1,012 error codes, 42 agent setup pages, and the
12 generated connection method pages.
Author 24 net-new pages across Get started, Build, Deploy, Domains &
routing, Operate, Labs, Guides, Agents, and Reference; rewrite stale
guides around spacefast.config.ts and the One Space model; fold in the
20 valid open docs pull requests; and polish prose to zero Vale alerts.
Scope the header, sidebar, and pagination across Docs, Guides, Agents,
Reference, and Platforms; prune Partner API and pre-launch OpenAPI alias
redirects down to 192 total routing rules; collapse generated /setup and
/connect children in llms.txt (26 KB); and update route, experience, and
prose-scope verification tests for the new IA.
@spacefast
spacefast Bot temporarily deployed to preview/t3/docs-ia-overhaul November 26, 2026 22:39 Inactive
@coderabbitai

coderabbitai Bot commented Nov 26, 2026 •

Copy link
Copy Markdown

Explain Change →

Caution

Review failed

The pull request is closed.

Walkthrough

[!WARNING]
Review details and warnings were omitted to fit the comment limit.

  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Warning

Billing warning: we have not been able to collect payment for this subscription for more than 72 hours. Please update the payment method or pay any pending invoices in Billing to avoid service interruption.

Lead the home page, agent preamble, Build, Agents, Guides, and Platforms
pages with building and shipping in one Space instead of only the upload
step. Remove internal details from public pages: the reserved-slug
substring list, internal plan codes, runtime transport paths, a legacy
header prefix and state file, and an internal merge helper name.

Reconcile the pricing table with enforced limits: the 24 MiB Workers
bundle on every plan and the 8-entry cron cap in project config. Remove
beta labels from capabilities that are generally available.

Link commands, operations, and error codes to their reference anchors so
agents can follow each step to its contract, fix the sf check anchor,
and stop linking an error code that has no reference page. Add a quiet
product stage to the home page and light table and card polish.
@spacefast
spacefast Bot temporarily deployed to preview/t3/docs-ia-overhaul November 26, 2026 23:25 Inactive
The platform refuses to publish any file named mcp.json or .mcp.json.
Blume writes a per-page JSON twin for the @spacefast/mcp changelog at
api/docs/pages/changelog/packages/mcp.json, which failed the Spacefast
build. Drop that one twin and its pointer in api/docs/pages.json during
finalize, and fail the build if any such filename remains. The page and
its Markdown mirror still publish.
@spacefast
spacefast Bot temporarily deployed to preview/t3/docs-ia-overhaul November 26, 2026 23:42 Inactive
The Spacefast publish step blocks any value shaped like a Space key. The
anonymous publishing page used a realistic sfc_ example, so it now uses an
obvious sfc_xxx placeholder.

The REST API reference's createPublish response example carries a
documented placeholder claim key from the product's OpenAPI document.
Allowlist that exact example by its two fingerprints (the token and claim
link rules) in the published serving config, so no other value is
exempt. Fixing the example at its source would remove this entry.
@spacefast
spacefast Bot temporarily deployed to preview/t3/docs-ia-overhaul November 27, 2026 00:01 Inactive
…r-facing copy

Add /infrastructure/http-status-codes covering Spacefast edge and
infrastructure status codes (including 429 Worker response replacement)
so Functions and Infrastructure pages no longer link out to external WP
Cloud status code docs. Also update the header wordmark lockup and
tighten user-facing copy on transfers, Labs, crons, and customization.
@spacefast
spacefast Bot temporarily deployed to preview/t3/docs-ia-overhaul November 27, 2026 00:30 Inactive
Weave SpacePress as the default full-stack app layer across Build,
Collections and CMS, Actions/queries/jobs, Database and ORM, Email,
Starters (including sf add shop), Glossary, homepage, and llms.txt.
Add /wordpress covering SpacePress Admin, proxied and direct WordPress
REST APIs, WordPress Abilities, generated clients, three-way content
sync, sf app wp, and sf apply, and remove the stale /wordpress redirect.

Also transform the /setup/claude-app overlay during overlay preparation
to explain each Claude app (web/mobile, Desktop, Cowork, Claude Code),
what each connection method enables, and resolve the Free-plan plugins
contradiction with official Anthropic documentation sources.
@spacefast
spacefast Bot temporarily deployed to preview/t3/docs-ia-overhaul November 27, 2026 02:14 Inactive
@spacefast
spacefast Bot temporarily deployed to preview/t3/docs-ia-overhaul November 28, 2026 02:51 Inactive
@spacefast
spacefast Bot temporarily deployed to preview/t3/docs-ia-overhaul November 28, 2026 03:14 Inactive
@spacefast
spacefast Bot temporarily deployed to preview/t3/docs-ia-overhaul November 28, 2026 04:08 Inactive
…on, MCP parent_team access, and space.created accessSource
# Conflicts:
#	content/(operate)/comments.mdx
#	scripts/pricing-next.mjs
@spacefast
spacefast Bot temporarily deployed to preview/t3/docs-ia-overhaul November 28, 2026 04:14 Inactive
@spacefast
spacefast Bot temporarily deployed to preview/t3/docs-ia-overhaul November 28, 2026 04:30 Inactive
@spacefast
spacefast Bot temporarily deployed to preview/t3/docs-ia-overhaul November 28, 2026 05:00 Inactive
@spacefast
spacefast Bot temporarily deployed to preview/t3/docs-ia-overhaul November 28, 2026 14:39 Inactive
@batuhan
batuhan marked this pull request as ready for review November 29, 2026 02:01
@batuhan
batuhan merged commit 478b9f5 into main Nov 29, 2026
5 checks passed
@batuhan
batuhan deleted the t3/docs-ia-overhaul branch November 29, 2026 02:01
@indent

indent Bot commented Nov 29, 2026

Copy link
Copy Markdown
Contributor

Indent Indent is reviewing this pull request.

Review agents

Select any unchecked box below to run or rerun that agent.

Pending (1)
  • Indent Review Agent · This agent has not run.
Full results

Indent Review Agent

  • Summary: This agent has not run.
  • Latest resultNo result — this agent has not run.

This branch was previously deployed

1 inactive deployment
preview/t3/docs-ia-overhaul — d57c767e Deployed Nov 28, 2026 by spacefast[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant