Docs Site Overview
This workspace documents all RitoSwap workspaces, including the docs site itself. It is built with Nextra 4 and branded to match the RitoVision feel.
Stack & structure
| Concern | Implementation |
|---|---|
| Framework | Next.js (App Router) + Nextra 4 |
| Content | MDX files under docs/content |
| UI components | Custom React components under docs/app |
| Theme config | docs/theme.config.tsx |
| MDX components | docs/mdx-components.tsx |
- next.config.mjs
- theme.config.tsx
- package.json
Build & deploy
The docs site is deployed on Vercel and includes a Storybook build + sitemap generation in the pipeline.
pnpm devruns the docs site locally.pnpm buildbuilds the Next.js app.pnpm prebuildrunspnpm —filter ritoswap run build-sb:docsto publish Storybook intodocs/public/storybook-static.pnpm postbuildrunsdocs/scripts/generate-sitemap.mjsandpagefindfor search.pnpm testruns Vitest for docs-only tests.
Vercel deployment is configured in docs/vercel.json and uses pnpm build as the build command.
Branding source of truth
The docs theme and RitoVision styling are centralized in docs/styles/override.css. Other files exist in docs/styles, but override.css is the canonical source today.
Navigate this section
How interactive UI demos are embedded and built.
Storybook PlaygroundsInteractive Swagger UI for docs endpoints.
OpenAPI PlaygroundRitoVision typography, colors, and theme overrides.
Styling & BrandingDocs navigation system and drawer architecture.
Bottom BarCustom error UI and recovery flows.
Error Boundaries