Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
18 commits
Select commit Hold shift + click to select a range
848e3e9
Restructure docs content into the five-tab information architecture
batuhan Nov 26, 2026
3160eba
Refresh the generated reference snapshot from the public product source
batuhan Nov 26, 2026
d7254f8
Rewrite and expand docs for the five-tab IA and absorb open PRs
batuhan Nov 26, 2026
d0bb5e3
Wire five-tab navigation, prune redirects, and update build checks
batuhan Nov 26, 2026
7705f2b
Reposition the docs around building in one Space and fix coherence gaps
batuhan Nov 26, 2026
a17b678
Keep agent-config filenames out of the published artifact
batuhan Nov 26, 2026
1f6060e
Pass the publish secret scan
batuhan Nov 27, 2026
5f57701
Document platform HTTP status codes locally and polish header and use…
batuhan Nov 27, 2026
ee935ae
Unify SpacePress docs across Build and clarify Claude app setup
batuhan Nov 27, 2026
d281778
Absorb docs#150 post-sync updates: Official listing, canonical featur…
batuhan Nov 27, 2026
1cecd05
Document deploy tokens, visual reviews, and CLI diagnostics; drop uns…
batuhan Nov 28, 2026
9e11fa8
Complete coverage for SpacePress, Worker bindings, labels, join links…
batuhan Nov 28, 2026
0b7a270
Preserve domain purchase, DNS ownership, and assistant research detai…
batuhan Nov 28, 2026
01e868b
Update Docs favicon to current S mark; add SpacePress snippet injecti…
batuhan Nov 28, 2026
4a95b58
Merge remote-tracking branch 'origin/main' into t3/docs-ia-overhaul
batuhan Nov 28, 2026
bcc6e3c
Refresh generated API, CLI, error, and setup references; migrate lega…
batuhan Nov 28, 2026
f3602a5
Normalize api-catalog anchor and sentence-final docs URLs during fina…
batuhan Nov 28, 2026
d57c767
Polish openers, sentence length, headings, em-dash spacing, and Space…
batuhan Nov 28, 2026
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,11 @@
dist/
.spacefast/
node_modules/
content/cli/reference.md
content/(reference)/cli/reference.md
content/(reference)/errors/
content/(reference)/changelog/
content/setup/
content/connect/
public/_redirects
.env
.env.*
Expand Down
18 changes: 14 additions & 4 deletions .vale.ini
Original file line number Diff line number Diff line change
Expand Up @@ -31,17 +31,27 @@ Spacefast.Wordiness = NO
Spacefast.Condescension = NO
Spacefast.ApiKey = NO
Spacefast.Hosting = NO
Spacefast.WpCloud = NO
Spacefast.Internals = NO

; Generated error pages are a verified snapshot synced from the monorepo, and
; the OpenAPI prose extraction reads generated/openapi. Both stay exempt from
; the "hosting" rule until the snapshot is refreshed with the monorepo fixes;
; then remove these carve-outs.
; Generated error pages and OpenAPI prose are synced snapshots from the product
; source. Keep narrow carve-outs here until the upstream snapshot removes those
; strings, then drop them.
[content/(reference)/errors/**]
BasedOnStyles = Vale, Spacefast
Vale.Spelling = NO
Spacefast.Hosting = NO
Spacefast.ApiKey = NO
Spacefast.Internals = NO

[*openapi-prose.md]
BasedOnStyles = Vale, Spacefast
Vale.Spelling = NO
Spacefast.Hosting = NO

; Generated /connect pages put backticked `npx -y spacefast ...` commands inside
; YAML frontmatter descriptions, where Vale ignores Markdown code spans.
[content/connect/**]
BasedOnStyles = Vale, Spacefast
Vale.Spelling = NO
Spacefast.ProductName = NO
2 changes: 1 addition & 1 deletion AGENTS.md
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ Assume every commit and every line of history will be public.
producer-owned snapshot. The exporter owns every file there, including the
manifest and ownership marker. Do not hand-edit them.
- `.blume/**` and `dist/**` are generated by Blume. Never edit or commit them.
- `content/cli/reference.md`, `content/(reference)/errors/**`,
- `content/(reference)/cli/reference.md`, `content/(reference)/errors/**`,
`content/(reference)/changelog/**`, `content/setup/**`, and
`public/_redirects` are ignored build overlays materialized from the verified
snapshot. Do not hand-edit them.
Expand Down
16 changes: 11 additions & 5 deletions blume.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ export default defineConfig({
// Plan values from scripts/pricing-next.mjs, the source Pricing & Limits renders.
...planVariables(),
},
description: "Publish what your agents build.",
description: "Build better and ship with Spacefast — skills, tools, database, Workers, domains, and infrastructure in one Space.",
// Two links (components/Logo.astro): the mark goes to the Website home at the
// origin root, outside the /docs base; "Docs" goes to the Docs home.
logo: { href: "/", image: { light: "/spacefast-wordmark.svg", alt: "Spacefast" }, text: "Docs" },
Expand Down Expand Up @@ -127,12 +127,16 @@ export default defineConfig({
],
repo: true,
sidebar: { display: "group" },
// Five tabs. Guides, Agents, and Platforms are real folders, so Blume
// scopes them by path. The Reference tab spans /cli, /api, and the other
// reference pages; components/Sidebar.astro and components/Header.astro
// resolve it from the (reference) folder group instead of a path prefix.
tabs: [
{ label: "Docs", path: "/", icon: icons.book },
{ label: "CLI", path: "/cli", icon: icons.terminal },
{ label: "API", path: "/api", icon: icons.braces },
{ label: "Guides", path: "/guides", icon: icons.rocket },
{ label: "Agents", path: "/agents", icon: icons.robot },
{ label: "Spacefast for Platforms", path: "/platforms", icon: icons.handshake },
{ label: "Reference", path: "/reference", href: "/cli", icon: icons.braces },
{ label: "Platforms", path: "/platforms", icon: icons.handshake },
],
},
reference: [
Expand Down Expand Up @@ -166,7 +170,7 @@ export default defineConfig({
enabled: true,
endpoint: "https://api.spacefast.com/v1/docs/ask",
suggestions: [
{ label: "How do I publish a site?" },
{ label: "How do I publish a Space?" },
{ label: "How should an agent use Spacefast?" },
{ label: "How do I roll back a version?" },
],
Expand All @@ -178,6 +182,8 @@ export default defineConfig({
// and MCP: without this the component ships as raw JSX.
markdownComponents: {
PricingTable: ({ props }) => pricingTableMarkdown(String(props.table), props.row ? String(props.row) : undefined),
SpacefastStage: () =>
`\`\`\`ts\nimport { defineConfig } from "spacefast/config";\n\nexport default defineConfig({\n name: "quiet-harbor",\n app: {\n collections: { posts: { title: "Posts" } },\n actions: { subscribe: { access: "anyone" } },\n },\n crons: [{ path: "/api/digest", schedule: "daily" }],\n});\n\`\`\``,
WpCloudDocs: ({ props }) =>
`Using the [Partner API](${deploymentBase}/platforms/partner-api)? See [${String(props.title)}](${String(props.href)}) in the upstream infrastructure reference.`,
},
Expand Down
6 changes: 4 additions & 2 deletions components.ts
Original file line number Diff line number Diff line change
@@ -1,13 +1,15 @@
import { defineComponents } from "blume";

import Breadcrumbs from "./components/Breadcrumbs.astro";
import Header from "./components/Header.astro";
import Logo from "./components/Logo.astro";
import Pagination from "./components/Pagination.astro";
import Sidebar from "./components/Sidebar.astro";
import PricingTable from "./components/PricingTable.astro";
import SpacefastStage from "./components/SpacefastStage.astro";
import WpCloudDocs from "./components/WpCloudDocs.astro";

export default defineComponents({
layout: { Breadcrumbs, Logo, Pagination, Sidebar },
mdx: { PricingTable, WpCloudDocs },
layout: { Breadcrumbs, Header, Logo, Pagination, Sidebar },
mdx: { PricingTable, SpacefastStage, WpCloudDocs },
});
20 changes: 20 additions & 0 deletions components/Header.astro
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
---
/*
* Blume's header, with the active tab picked by components/sections.ts. Blume
* marks the tab whose path is the longest prefix of the route, which would
* mark Docs on /cli or /setup/codex. The header uses `route` only to pick
* that tab (this site has no selectors or tab menus), so passing the owning
* tab's path is all the change needs.
*/
import Header from "blume/components/layout/Header.astro";
import data from "blume:data";

import { tabForRoute } from "./sections.ts";

const props = Astro.props as Record<string, unknown> & { route: string };
const { sidebar, tabs } = data.navigation;
const tab = tabForRoute(tabs, sidebar, props.route);
const route = tab && tab.path !== "/" ? tab.path : props.route;
---

<Header {...props} route={route} />
43 changes: 29 additions & 14 deletions components/Logo.astro
Original file line number Diff line number Diff line change
@@ -1,13 +1,22 @@
---
// The brand lockup: the Spacefast mark links to the Website home, "Docs" links
// to the Docs home. Docs are always served inside the Website artifact at
// /docs, so the configured root-relative `logo.href` ("/") is emitted as is,
// without the deployment base, and reaches the Website home on whatever origin
// serves the page. The Website is not part of the Docs' client router, so the
// mark's link does a plain page load instead of a router fetch first.
// The brand's section lockup, drawn the way Drop and Push draw it
// ("spacefast | Drop"): the wordmark at 20px, a 28px rule in ink at 55% with
// 14px either side, and the section name in ink at text-lg, raised 1px so the
// lighter name sits level with the heavy wordmark. On a phone the lockup gives
// way to the star alone at 28px.
//
// Two links: the logo goes to the Website home, "Docs" to the Docs home. Docs
// are always served inside the Website artifact at /docs, so the configured
// root-relative `logo.href` ("/") is emitted as is, without the deployment
// base, and reaches the Website home on whatever origin serves the page. The
// Website is not part of the Docs' client router, so the logo's link does a
// plain page load instead of a router fetch first.
import { withBase } from "blume/components/islands/base-path.ts";
import type { BlumeLogo } from "blume/core/data.ts";

// The logo's star alone, for phones: the shared brand asset's path.
import star from "./spacefast-star.svg?raw";

interface Props {
site: { title: string };
logo?: BlumeLogo | null;
Expand All @@ -16,26 +25,32 @@ interface Props {

const { site, logo } = Astro.props;
const label = logo?.text ?? site.title;
const link = "inline-flex items-center transition-opacity hover:opacity-80";
// The logo and a linked title share one box: 36px tall and 6px either side,
// drawn back by matching negative margins so the lockup's spacing holds.
const box = "-mx-1.5 inline-flex h-9 shrink-0 items-center rounded-md px-1.5";
// The config inlines the wordmark so it follows the theme. Fail the build
// rather than ship a header whose mark silently disappeared.
// rather than ship a header whose logo silently disappeared.
if (!logo?.svg) throw new Error("components/Logo.astro needs blume.config.ts `logo` to resolve to an inline SVG.");
---

<div class="flex min-w-0 items-center gap-2" data-sf-brand>
<div class="flex min-w-0 items-center" data-sf-brand>
<a
aria-label={`${logo.alt || "Spacefast"} home`}
class:list={[link, "shrink-0 text-foreground"]}
class:list={[box, "text-foreground transition-opacity hover:opacity-80"]}
data-astro-reload
href={logo.href}
>
<span aria-hidden="true" class="inline-flex h-5 items-center [&>svg]:h-5 [&>svg]:w-auto" set:html={logo.svg} />
<span aria-hidden="true" class="inline-flex size-7 sm:hidden [&>svg]:size-7" set:html={star} />
<span aria-hidden="true" class="inline-flex h-5 items-center max-sm:hidden [&>svg]:h-5 [&>svg]:w-auto" set:html={logo.svg} />
</a>
{
label && (
<a class:list={[link, "min-w-0 font-semibold text-base text-foreground"]} href={withBase("/")}>
<span class="truncate">{label}</span>
</a>
<>
<span aria-hidden="true" class="mx-3.5 h-7 w-px shrink-0 bg-foreground/55 max-sm:hidden" />
<a class:list={[box, "min-w-0 font-medium text-foreground text-lg max-sm:hidden"]} href={withBase("/")}>
<span class="relative -top-px truncate">{label}</span>
</a>
</>
)
}
</div>
22 changes: 10 additions & 12 deletions components/Pagination.astro
Original file line number Diff line number Diff line change
@@ -1,22 +1,20 @@
---
// Keep the /setup pages, which the Docs sidebar doesn't list, out of the Docs reading order.
// Previous/next follow the reading order of the page's own tab
// (components/sections.ts), so the Reference and Agents tabs page through
// their own sections instead of Blume's prefix-scoped tree.
import Pagination from "blume/components/layout/Pagination.astro";
import { flattenPages, getPagination, sidebarForRoute } from "blume/components/layout/nav-utils.ts";
import { flattenPages, getPagination } from "blume/components/layout/nav-utils.ts";
import { stripBasePath } from "blume/core/base-path.ts";
import data from "blume:data";

const { prev, next, strings } = Astro.props;
import { sectionSidebar } from "./sections.ts";

const { strings } = Astro.props;

const base = import.meta.env.BASE_URL.replace(/\/$/u, "");
const route = stripBasePath(base, Astro.url.pathname.replace(/(.)\/$/u, "$1"));
const isSetup = (route: string) => route === "/setup" || route.startsWith("/setup/");
let links = { prev, next };
if (!isSetup(route) && [prev, next].some((link) => link && isSetup(link.route))) {
const { sidebar, tabs, root } = data.navigation;
const order = flattenPages(sidebarForRoute(sidebar, tabs, route, root))
.filter((page) => !isSetup(page.route));
links = getPagination(order, route);
}
const { sidebar, tabs, root } = data.navigation;
const { prev, next } = getPagination(flattenPages(sectionSidebar(sidebar, tabs, route, root)), route);
---

<Pagination next={links.next} prev={links.prev} strings={strings} />
<Pagination next={next} prev={prev} strings={strings} />
71 changes: 10 additions & 61 deletions components/Sidebar.astro
Original file line number Diff line number Diff line change
@@ -1,73 +1,22 @@
---
/*
* Blume's sidebar with two changes that link pages across folders, which
* folder meta can't express:
* - Docs: the Setup group lists plain links to the CLI and agent setup
* sections (which live under their own tabs) instead of the generated
* per-client setup pages.
* - Agents: the tab's own pages render as a flat "Agents" section, followed
* by an "Other agents" section linking the generated /setup/<client> pages
* that have no authored /agents page, split into coding and personal. The
* /setup/<client> pages keep this Agents sidebar instead of the Docs one.
* Blume's sidebar, scoped to this site's five tabs (components/sections.ts).
* Blume scopes by URL prefix, which cannot express the Reference tab (it spans
* /cli, /api, /config-file, and other root pages) or the Agents tab's generated
* /setup and /connect pages, so this recomputes the tab's tree from the full
* navigation.
*/
import NavTree from "blume/components/layout/NavTree.astro";
import { sidebarForRoute } from "blume/components/layout/nav-utils.ts";
import type { NavNode } from "blume/core/types.ts";
import data from "blume:data";

import setupSections from "../content/setup/_sidebar.json";
import { sectionSidebar } from "./sections.ts";

type Props = Record<string, unknown> & { items: NavNode[]; currentRoute: string };

const { items, ...rest } = Astro.props as Props;
// Navigation routes are base-less; Blume adds the deployment base when it renders links.
const agentsRoute = "/agents";
const setupRoute = "/setup";
const under = (route: string, root: string) => route === root || route.startsWith(`${root}/`);

const page = (label: string, route: string): NavNode => ({ kind: "page", label, route, pageId: "" });

// The generated /setup folder is the Docs "Setup" group; its header stops linking to
// the per-client index, and its rows point at the CLI and Agents tabs instead.
const withSetupLinks = (nodes: NavNode[]): NavNode[] =>
nodes.map((node) =>
node.kind === "group" && node.route === setupRoute
? { ...node, route: undefined, children: [page("CLI", "/cli"), page("Agent setup", agentsRoute)] }
: node,
);

const withOtherAgents = (nodes: NavNode[]): NavNode[] => {
const hasAuthored = (slug: string) =>
nodes.some((node) => node.kind === "page" && node.route === `${agentsRoute}/${slug}`);
const sections = setupSections.map(({ title, pages }) => ({
kind: "group" as const,
label: title,
display: "group" as const,
collapsed: true,
children: pages
.filter(({ slug }) => !hasAuthored(slug))
.map(({ slug, label }) => page(label, `${setupRoute}/${slug}`)),
}));
return [
{
kind: "group",
label: "Agents",
display: "flat",
route: agentsRoute,
children: nodes.filter((node) => !(node.kind === "page" && node.route === agentsRoute)),
},
{ kind: "group", label: "Other agents", display: "flat", children: sections },
];
};

const route = rest.currentRoute;
let sidebar = withSetupLinks(items);
if (under(route, agentsRoute)) sidebar = withOtherAgents(items);
else if (route.startsWith(`${setupRoute}/`)) {
// Outside the tab, Blume hands over the Docs tree; take the Agents tab's instead.
const { sidebar: tree, tabs, root } = data.navigation;
sidebar = withOtherAgents(sidebarForRoute(tree, tabs, agentsRoute, root));
}
const { items: _scoped, ...rest } = Astro.props as Props;
const { sidebar, tabs, root } = data.navigation;
const items = sectionSidebar(sidebar, tabs, rest.currentRoute, root);
---

<NavTree {...rest} items={sidebar} />
<NavTree {...rest} items={items} />
Loading
Loading