Introduction
Hello, world! Welcome to the Nextra + Mantine template.
This is a starter template for Next.js app router + Mantine + Nextra documentation site.
Features
This template comes with the following features:
- PostCSS with mantine-postcss-preset
- TypeScript
- Storybook
- Jest setup with React Testing Library
- ESLint setup with eslint-config-mantine
- Provides API example in
/api/version
Nextra Features
- Nextra documentation site with Mantine theme
- Sync Dark mode between documentation and application (Mantine/Nextra)
- Customizable components in
componentsfolder - Provides new Navigation and Footer components for Nextra documentation site
Folder structure
You will find a lot of predefined folders and files in the project. Here is a short description of the most important ones:
- layout.tsx
Main layout - page.tsx
Homepage
- index.ts
Most of the config are here!
You can start by changing the main configuration in config/index.ts file. This file contains the most important configuration for the project.
npm scripts
Build and dev scripts
dev– start dev serverbuild– bundle application for productionanalyze– analyzes application bundle with @next/bundle-analyzer
Testing scripts
typecheck– checks TypeScript typeslint– runs ESLintprettier:check– checks files with Prettierjest– runs jest testsjest:watch– starts jest watchtest– runsjest,prettier:check,lintandtypecheckscripts
Other scripts
storybook– starts storybook dev serverstorybook:build– build production storybook bundle tostorybook-staticprettier:write– formats all files with Prettier
Last updated on