This is the codebase for the Cosmic API v2 docs. For the latest docs, go to https://www.cosmicjs.com/docs.
This is the codebase for the Cosmic docs v2.
The Nextra repository uses Yarn Workspaces. To install dependencies, just simply run yarn
in the project root directory.
cd packages/nextra-theme-docs
yarn build
Watch mode: yarn dev
Watch mode (layout only): yarn dev:layout
Watch mode (style only): yarn dev:tailwind
To start Cosmic Docs locally, run
cd cosmic-docs
yarn dev
Any change to cosmic-docs will be re-rendered instantly.
If you update the core or theme packages, a rebuild is required. Or you can use the watch mode for both nextra and the theme in separated terminals.