Nextra

Simple, powerful and flexible site generation framework with everything you...

README

Nextra


Simple, powerful and flexible site generation framework with everything you love from Next.js.

Documentation



Development


Installation


The Nextra repository uses PNPM Workspaces and Turborepo. To install dependencies, just simply runpnpm in the project root directory.

Build Nextra Core


  1. ```bash
  2. cd packages/nextra
  3. pnpm build
  4. ```

Watch mode: pnpm dev

Build Nextra Theme


  1. ```bash
  2. cd packages/nextra-theme-docs
  3. pnpm build
  4. ```

CommandDescription
-----------------------------------------
pnpmWatch
pnpmWatch
pnpmWatch

Development


You can also debug them together with a website locally. For instance, to start examples/docs locally, run

  1. ```bash
  2. cd examples/docs
  3. pnpm dev
  4. ```

Any change to example/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.