Public product documentation for Hast AIP, Task Agent, GTM, and accounts. The repository owns the documentation content, its UI, images, and public API snapshot. It has no dependency on a private repository or a running Hast backend.
- Staging documentation
- Hast
- Languages: English, Japanese, and Simplified Chinese
Use Node.js 24 and pnpm 11.7.0, as specified in .nvmrc and package.json.
pnpm install --frozen-lockfile
pnpm devOpen http://localhost:3219/en/docs/overview. Set the public origins in
.env.local when needed. No token or product account is required to build docs.
content/docs/{en,ja,zh-CN}contains the product pages.src/content/docscontains navigation, translations, search registration, and the public API snapshot adapter.srccontains the documentation components and MDX plugins.public/docscontains shared, public-safe screenshots.public/openapi/task-agent.jsoncontains the public AIP API snapshot.
Keep page slugs, section IDs, API fields, and limits aligned across languages. Register a new page in the catalogue and each content registry. Check the complete affected documentation flow, including its links and images.
pnpm check
pnpm test
pnpm buildThe build exports static files into out/ and checks every translated page.
Do not put generated output inside the content tree.
A push to main runs the checks and deploys only Staging. The deployment writes
release.json with the exact source commit and run. Staging is excluded from
search indexing. An accepted stable product release invokes Publish product docs, which publishes one compatible docs commit after its exact Staging run
passes. See release ownership and recovery.
The separate Deploy docs production manual workflow remains available for an
explicitly authorized correction. It requires a full main source SHA and its
successful Staging push run. Both paths use the same build and deployment
implementation. A production export enables search indexing and uses
https://docs.hast.so for canonical URLs and the sitemap.
These workflows publish only the hast-docs Vercel project. Existing
/{locale}/docs/{slug} and legacy task-api-* paths remain valid. The main Hast
website keeps its marketing, customer stories and legal content; its old docs
URLs redirect to the separate docs site.
Prose and documentation images use CC BY 4.0. Code uses MIT. Font licenses are included with the font files. Hast names and logos identify the product; the license grants no trademark rights.
See the maintenance guide for automated contributions.
See RELEASES.md for daily Staging maintenance, stable product Docs Production publication, recovery, and the two Agent responsibilities.