Documentation site for Osaurus — the local-first AI harness for Apple Silicon. Live at docs.osaurus.ai.
Built with Docusaurus 3. Docs are served from the site root (routeBasePath: "/"), so docs/intro.md is the homepage.
- Node.js 20+ (Node 22 LTS recommended)
- npm (this repo uses
package-lock.json; do not use yarn or pnpm)
npm install
npm startStarts a local dev server at http://localhost:3000 with hot reload.
npm run buildGenerates the static site into build/. The build fails on broken internal links (onBrokenLinks: "throw"), so run it before pushing content changes.
To preview the production build locally:
npm run servenpm run typecheck| Path | Purpose |
|---|---|
docs/ |
All documentation pages (Markdown/MDX) |
sidebars.ts |
Sidebar structure (manual, source of truth for ordering) |
docusaurus.config.ts |
Site config: navbar, footer, SEO, plugins, redirects |
src/css/custom.css |
Osaurus brand theme (light + dark palettes) |
src/components/ |
Custom React components exposed to MDX |
src/theme/MDXComponents.tsx |
Registers components for use in any doc without imports |
static/img/ |
Logos, social cards, and other static assets |
- Every page needs
titleanddescriptionfrontmatter. - Mermaid diagrams are supported via fenced
```mermaidcode blocks. - Custom MDX components available in any doc:
<Icon name="..." />,<GitHubStats />,<JourneyCards>/<JourneyCard>. - Adding a page? Register it in
sidebars.ts— pages not in the sidebar are unreachable.