Skip to Content
Welcome to RitoSwap's documentation!
Documentation SiteOverview

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

ConcernImplementation
FrameworkNext.js (App Router) + Nextra 4
ContentMDX files under docs/content
UI componentsCustom React components under docs/app
Theme configdocs/theme.config.tsx
MDX componentsdocs/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 dev runs the docs site locally.
  • pnpm build builds the Next.js app.
  • pnpm prebuild runs pnpm —filter ritoswap run build-sb:docs to publish Storybook into docs/public/storybook-static.
  • pnpm postbuild runs docs/scripts/generate-sitemap.mjs and pagefind for search.
  • pnpm test runs 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.

Last updated on

RitoSwap Docs does not store, collect or access any of your conversations. All saved prompts are stored locally in your browser only.