Thanks to visit codestin.com
Credit goes to github.com

Skip to content

ultravioletrs/cocos-docs

Repository files navigation

Cocos Docs

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-ai

Getting Started

Prerequisites

Installation

pnpm install

Develop

Run the development server:

pnpm dev

Open http://localhost:3000/docs/cocos-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/cocos-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/cocos-ai.
  • wrangler.jsonc: Cloudflare Workers assets deployment config.

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

Cocos AI documentation

Resources

Code of conduct

Contributing

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors