mirror of
https://github.com/simstudioai/sim.git
synced 2026-09-21 13:00:04 +08:00
* improvement(docs): remove Ask AI, add missing surfaces, align sidebar to the app - Removes the Ask AI widget, its /api/chat route, and the four deps exclusive to it (@ai-sdk/openai, @ai-sdk/react, ai, streamdown). lib/embeddings and docsEmbeddings stay — /api/search uses them. - Adds --surface-7 and --surface-hover, the last two platform surfaces docs lacked. - Aligns the sidebar with the app's canonical nav chrome: px-2.5 -> px-2, text-small -> text-sm, hover --surface-3 -> --surface-active, and an active hover of --surface-6, matching the Chip the app's sidebar items are built on. * fix(docs): make the sidebar hover CSS agree with the utilities Review caught that the sidebar hover alignment in this PR had no visual effect. `global.css` carries !important rules for both the link and button sidebar items — they exist to beat fumadocs' own styles — and they were still forcing the pre-alignment values: --surface-3 on an inactive hover, and --surface-active on an active hover. So the Tailwind utilities were dead on arrival. The global rules now carry the app's values instead (--surface-active inactive, --surface-6 active), matching the utilities rather than fighting them, with a comment noting the two must move together.
53 lines
1.5 KiB
JSON
53 lines
1.5 KiB
JSON
{
|
|
"name": "docs",
|
|
"version": "0.0.0",
|
|
"private": true,
|
|
"license": "Apache-2.0",
|
|
"scripts": {
|
|
"dev": "bun run dev:cache:cap && next dev --port 3001",
|
|
"dev:cache:cap": "bun run ../../scripts/prune-turbopack-cache.ts",
|
|
"dev:clean": "rm -rf .next/dev/cache",
|
|
"build": "fumadocs-mdx && NODE_OPTIONS='--max-old-space-size=8192' next build",
|
|
"start": "next start",
|
|
"postinstall": "fumadocs-mdx",
|
|
"type-check": "fumadocs-mdx && tsc --noEmit",
|
|
"lint": "biome check --write --unsafe .",
|
|
"lint:check": "biome check .",
|
|
"format": "biome format --write .",
|
|
"format:check": "biome format ."
|
|
},
|
|
"dependencies": {
|
|
"@sim/db": "workspace:*",
|
|
"@sim/emcn": "workspace:*",
|
|
"@sim/workflow-renderer": "workspace:*",
|
|
"class-variance-authority": "^0.7.1",
|
|
"clsx": "^2.1.1",
|
|
"drizzle-orm": "^0.45.2",
|
|
"fumadocs-core": "16.8.5",
|
|
"fumadocs-mdx": "14.3.2",
|
|
"fumadocs-openapi": "10.8.1",
|
|
"fumadocs-ui": "16.8.5",
|
|
"next": "16.2.12",
|
|
"next-themes": "^0.4.6",
|
|
"react": "19.2.4",
|
|
"react-dom": "19.2.4",
|
|
"remark-breaks": "^4.0.0",
|
|
"shiki": "4.3.1",
|
|
"tailwind-merge": "^3.0.2",
|
|
"reactflow": "^11.11.4",
|
|
"framer-motion": "^12.5.0",
|
|
"zod": "4.3.6"
|
|
},
|
|
"devDependencies": {
|
|
"@sim/tsconfig": "workspace:*",
|
|
"@tailwindcss/postcss": "^4.0.12",
|
|
"@types/mdx": "^2.0.13",
|
|
"@types/node": "24.2.1",
|
|
"@types/react": "^19.1.2",
|
|
"@types/react-dom": "^19.0.4",
|
|
"postcss": "^8.5.3",
|
|
"tailwindcss": "^4.0.12",
|
|
"typescript": "^7.0.2"
|
|
}
|
|
}
|