mirror of
https://github.com/clockworklabs/SpacetimeDB.git
synced 2026-06-27 16:30:35 -04:00
dc20faa611
## Summary - Fix TypeScript view examples to use `ctx.sender` as a property, matching the server SDK `ViewCtx` API. - Update the architecture overview TypeScript view snippet to use `players.rowType` and `undefined` for optional view returns. - Clarify shared `ViewContext` prose so it does not imply every language uses a callable `ctx.sender()` API. - Improve docs agent-readiness metadata: - publish `/docs/robots.txt` with a docs sitemap directive and Content-Signal policy - add Markdown alternate links for the existing `/docs/llms.txt` and `/docs/llms-full.txt` outputs - generate `/.well-known/agent-skills`-style discovery metadata under `/docs/.well-known/agent-skills/` from the repo's existing `skills/` source files during docs builds ## Validation - `pnpm --dir docs build` - `pnpm --dir docs typecheck` - Verified the docs build emits `robots.txt` and `.well-known/agent-skills/index.json`. - Verified generated Agent Skills SHA-256 digests match the emitted `SKILL.md` artifacts. ## Notes The Cloudflare agent-readiness scan for `spacetimedb.com` still depends on the root/marketing host exposing root-level files such as `/robots.txt`, `/sitemap.xml`, and `/.well-known/agent-skills/index.json`. This PR makes the docs origin produce the corresponding docs-scoped artifacts at `/docs/...`; the root host can route or mirror these if we want the exact `spacetimedb.com` scan to pick them up. --------- Co-authored-by: clockwork-labs-bot <clockwork-labs-bot@users.noreply.github.com> Co-authored-by: rain <rain@rain.local> Co-authored-by: Tyler Cloutier <cloutiertyler@users.noreply.github.com>
75 lines
2.2 KiB
JSON
75 lines
2.2 KiB
JSON
{
|
|
"name": "docs",
|
|
"version": "0.0.0",
|
|
"private": true,
|
|
"scripts": {
|
|
"docusaurus": "docusaurus",
|
|
"dev": "docusaurus start",
|
|
"prebuild": "node scripts/sync-agent-skills.mjs",
|
|
"build": "docusaurus build",
|
|
"swizzle": "docusaurus swizzle",
|
|
"deploy": "docusaurus deploy",
|
|
"clear": "docusaurus clear",
|
|
"serve": "docusaurus serve",
|
|
"generate-cli-docs": "node scripts/generate-cli-docs.mjs",
|
|
"generate-llms": "docusaurus build && node scripts/generate-llms.mjs",
|
|
"sync-agent-skills": "node scripts/sync-agent-skills.mjs",
|
|
"rewrite-links": "node scripts/rewrite-doc-links.mjs",
|
|
"rewrite-links:write": "node scripts/rewrite-doc-links.mjs --write",
|
|
"write-translations": "docusaurus write-translations",
|
|
"write-heading-ids": "docusaurus write-heading-ids",
|
|
"typecheck": "tsc"
|
|
},
|
|
"dependencies": {
|
|
"@docusaurus/core": "3.9.2",
|
|
"@docusaurus/plugin-client-redirects": "^3.9.2",
|
|
"@docusaurus/plugin-content-docs": "3.9.2",
|
|
"@docusaurus/preset-classic": "3.9.2",
|
|
"@docusaurus/theme-common": "3.9.2",
|
|
"@easyops-cn/docusaurus-search-local": "^0.49.2",
|
|
"@fontsource-variable/inter": "^5.2.8",
|
|
"@fontsource-variable/source-code-pro": "^5.2.7",
|
|
"@inkeep/cxkit-docusaurus": "^0.5.98",
|
|
"@inkeep/cxkit-react": "^0.5.101",
|
|
"@inkeep/widgets": "^0.2.292",
|
|
"@mdx-js/react": "^3.0.0",
|
|
"@shikijs/rehype": "^3.3.0",
|
|
"clsx": "^2.0.0",
|
|
"prism-react-renderer": "^2.3.0",
|
|
"react": "^18.3.1",
|
|
"react-dom": "^18.3.1",
|
|
"shiki": "^3.3.0"
|
|
},
|
|
"devDependencies": {
|
|
"@docusaurus/module-type-aliases": "3.9.2",
|
|
"@docusaurus/tsconfig": "3.9.2",
|
|
"@docusaurus/types": "3.9.2",
|
|
"@signalwire/docusaurus-plugin-llms-txt": "^1.2.2",
|
|
"@types/react": "^18.3.23",
|
|
"@types/react-dom": "^18.3.0",
|
|
"typescript": "~5.6.2"
|
|
},
|
|
"pnpm": {
|
|
"overrides": {
|
|
"@docusaurus/*": "3.9.2",
|
|
"react": "18.3.1",
|
|
"react-dom": "18.3.1"
|
|
}
|
|
},
|
|
"browserslist": {
|
|
"production": [
|
|
">0.5%",
|
|
"not dead",
|
|
"not op_mini all"
|
|
],
|
|
"development": [
|
|
"last 3 chrome version",
|
|
"last 3 firefox version",
|
|
"last 5 safari version"
|
|
]
|
|
},
|
|
"engines": {
|
|
"node": ">=18.0"
|
|
}
|
|
}
|