This is the source code for the Cocos AI documentation site, built with Next.js and Fumadocs.
The site is configured to live under:
https://www.ultraviolet.rs/docs/cocos-aipnpm installRun the development server:
pnpm devOpen http://localhost:3000/docs/cocos-ai with your browser to see the docs.
pnpm run lint
pnpm run types:checkBiome is used for code linting and formatting:
pnpm run lint:fix
pnpm run formatpnpm run buildThe build exports static assets to out/, then nests the export under out/docs/cocos-ai so Cloudflare Workers can serve the docs at the configured base path.
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, androbots.txt.scripts/nest-static-export.mjs: Moves the static export underout/docs/cocos-ai.wrangler.jsonc: Cloudflare Workers assets deployment config.
The site is exported as static assets and can be deployed to Cloudflare Workers with Wrangler:
pnpm run deployTo upload a version without deploying it immediately:
pnpm run upload