Unified documentation portal for the Quark platform — a Fuma Docs (Next.js) site that aggregates markdown from three product repositories into one searchable, navigable docs site.
This repo contains only the Next.js docs application. The actual documentation markdown lives in each product's own repository — this portal syncs it at build time using scripts/sync-content.sh.
| Section | Source repo | Content location |
|---|---|---|
| Platform | quarkloop/quark | docs/*.mdx |
| SDK | quarkloop/quark-js | docs/*.mdx |
| Agent | quarkloop/agent | docs/*.mdx |
- Fuma Docs — Next.js-based documentation framework with MDX support
- Multi-product portal — three product sections under one navigation
- Pagefind search — static search index generated at build time, no server required
- Content sync —
sync-content.shclones each product repo with--depth 1and copies ALL markdown files fromdocs/intocontent/docs/<section>/— no hardcoded filenames - Manual Vercel deployment —
vercel.tsconfigures the Vercel project; deploy withvercel --prodfrom the CLI - Warm design system — sand/ember color palette, no gradients, premium typography
git clone git@github.com:quarkloop/docs.git
cd docs
npm install# 1. Sync content from product repos:
./scripts/sync-content.sh
# 2. Start the dev server:
npm run devOpen http://localhost:3000 to see the docs portal.
This repo uses vercel.ts (not vercel.json) for type-safe configuration. Deployments are manual via the Vercel CLI — there is no CI/CD integration.
# Install Vercel CLI (one-time):
npm i -g vercel
# Preview deployment:
vercel
# Production deployment:
vercel --prodThe vercel.ts config automatically:
- Runs
sync-content.shto pull markdown from product repos - Builds the Next.js app
- Generates the Pagefind search index
Note: The sync script uses HTTPS URLs to clone product repos — all three repos are public, so no authentication is needed on Vercel or in CI.
- Vercel TS reference — official docs for the
vercel.tsformat - Fuma Docs — the documentation framework
- Pagefind — the static search engine
Product repos (3) Docs repo (this one)
┌─────────────────┐ ┌──────────────────────────┐
│ quarkloop/quark │──┐ │ │
│ quarkloop/ │ │ git clone │ scripts/sync-content.sh │
│ quark-js │──┼─────────────►│ clones each repo with │
│ quarkloop/agent │──┘ --depth 1 │ --depth 1, copies ALL │
└─────────────────┘ │ .md/.mdx from docs/ │
│ │
│ content/docs/ │
│ ├── platform/*.mdx │
│ ├── sdk/*.mdx │
│ └── agent/*.mdx │
│ │
│ next build │
│ pagefind (postbuild) │
│ │
│ → Vercel deployment │
└──────────────────────────┘
The content/ directory is gitignored — it is regenerated on every build. The source of truth for each doc file lives in its product repo.
| Component | Version |
|---|---|
| Next.js | 15.1+ |
| React | 19+ |
| Fuma Docs | 15+ (core), 11+ (mdx), 15+ (ui) |
| Pagefind | 1.1+ |
| Node.js | 20+ |
Documentation content changes should be made in the product repository, not here. This repo only contains the docs site infrastructure (Next.js app, components, styling, sync script).
If you need to change the docs site itself (layout, navigation, styling, build pipeline), open a PR here.
This project is licensed under the Apache License, Version 2.0 — see the LICENSE file for details.