This directory contains the Vocs-based documentation site for LocusGraph.
- Vocs for docs site generation
- React + MDX for page authoring
- TypeScript for config and custom components
docs/
├── vocs.config.ts # Site config (sidebar, top nav, socials, theme)
├── package.json # Scripts and dependencies
├── pnpm-lock.yaml # Lockfile
├── layout.tsx # Root layout wrapper
├── styles.css # Global styles + theme tokens
├── components/ # Reusable MDX/React UI components
│ ├── api-endpoint.tsx
│ ├── badge.tsx
│ ├── Callout.tsx
│ ├── code-group.tsx
│ ├── link-card.tsx
│ ├── param-table.tsx
│ ├── response-preview.tsx
│ ├── step.tsx
│ ├── table.tsx
│ └── tabs.tsx
└── pages/ # Documentation routes
├── index.tsx # Root page (currently redirects to introduction)
├── getting-started/
├── concepts/
├── mcp/
├── context-engineering/
├── workflows/
├── sdks/
├── integrations/
├── api/
├── guides/
└── support/
Install dependencies:
pnpm installRun the docs dev server:
pnpm devBuild for production:
pnpm buildPreview the production build:
pnpm preview- Sidebar groups and links are defined in
vocs.config.tsundersidebar. - Top navigation links are defined in
vocs.config.tsundertopNav. - Social links are defined in
vocs.config.tsundersocials. - Theme colors/tokens are configured in
vocs.config.tsand refined instyles.css.
- Create or edit a page in
pages/using.mdx(or.tsxwhere needed). - Add/update the matching route in
vocs.config.tsso it appears in the sidebar. - Import reusable UI blocks from
components/when needed.
Example page skeleton:
# Page Title
Brief intro for the page.Use this lightweight workflow for docs changes:
- Sync your branch with the latest main branch.
- Create a focused branch (example:
docs/update-mcp-clients-page). - Run
pnpm devand keep the preview open while editing. - Make page/config/component changes.
- Verify navigation, links, and code snippets locally.
- Run
pnpm buildbefore opening a PR. - Open a PR with:
- What changed
- Why it changed
- Any screenshots (if visual/layout changes)
- Quick test notes
Recommended branch naming:
docs/<topic>docs/fix-<issue>docs/update-<section>
- Edit
.mdxfiles underpages/. - Keep one clear H1 (
#) at the top. - Prefer short sections, descriptive headings, and practical examples.
- Use inline code formatting for commands, env vars, and identifiers.
- Update
vocs.config.ts:sidebarfor left navigation groups/pagestopNavfor top-level linkssocialsfor icon links
- Ensure every sidebar link points to an existing route in
pages/.
- Import shared components from
components/in MDX pages. - Existing common blocks:
Calloutfor notes/warnings/tipsCodeGroupfor language tabsStep/Stepsfor guided flowsLinkCardfor "next step" navigationApiEndpoint,ParamTable,ResponsePreviewfor API docs
- Global wrapper:
layout.tsx - Global theme/styles:
styles.css - Site-level tokens/config:
vocs.config.ts - Keep style changes consistent with existing design tokens and spacing scale.
pnpm devruns without issues.pnpm buildsucceeds.- New/updated pages appear in sidebar as expected.
- Internal links work (no broken links in edited sections).
- Code snippets are copy-pasteable and use current SDK/API names.
- Wording is consistent (LocusGraph terminology, capitalization, tone).
pages/index.tsxcurrently redirects/to/getting-started/introduction.layout.tsxcurrently provides a minimal root wrapper and imports global styles.
- Push this repository to GitHub.
- Import the repository in Vercel.
- Ensure Vercel project settings use:
- Install Command:
pnpm install - Build Command:
pnpm build - Node.js Version:
20.x
- Install Command:
- Deploy and keep auto-deploy enabled for your main branch.