Skip to content

About

Docs for Prism Collaborative AI Platform

Topics

Resources

Code of conduct

Contributing

Stars

1 star

Watchers

3 watching

Forks

Repository files navigation

Prism Docs

This is the source code for the Prism AI documentation site, built with Next.js and Fumadocs.

The site is configured to live under:

https://www.ultraviolet.rs/docs/prism-ai

Getting Started

Prerequisites

Installation

pnpm install

Develop

Run the development server:

pnpm dev

Open http://localhost:3000/docs/prism-ai with your browser to see the docs.

Validate

pnpm run lint
pnpm run types:check

Biome is used for code linting and formatting:

pnpm run lint:fix
pnpm run format

Build

pnpm run build

The build exports static assets to out/, then nests the export under out/docs/prism-ai so Cloudflare Workers can serve the docs at the configured base path.

Project Structure

  • app/: Next.js app router pages and layouts.
  • content/docs/: Documentation content in Markdown and MDX.
  • lib/: Utility functions and Fumadocs configuration.
  • public/: Static assets, Cloudflare _headers, _redirects, and robots.txt.
  • scripts/nest-static-export.mjs: Moves the static export under out/docs/prism-ai.
  • worker.ts: Cloudflare Worker that serves images from R2 on top of the static export (see Images).
  • wrangler.jsonc: Cloudflare Workers assets + R2 binding deployment config.

Images

Images are served from Cloudflare R2 (not committed to this repo) via worker.ts, which keeps existing /img/... URLs (under this site's /docs/prism-ai basePath) working unchanged. Maintainers publishing new/updated images: see scripts/README.md.

Deploy

The site is exported as static assets and can be deployed to Cloudflare Workers with Wrangler:

pnpm run deploy

To upload a version without deploying it immediately:

pnpm run upload

About

Docs for Prism Collaborative AI Platform

Topics

Resources

Code of conduct

Contributing

Stars

1 star

Watchers

3 watching

Forks

Releases

Packages

Used by

Contributors

Languages