Documentation
The Documentation module is powered by Nextra, a static site generator framework for Next.js. It allows you to write content in MDX and automatically generates the sidebar navigation and layout.
Overview
- Location:
content/(Content files) andmodules/docs(Logic). - Key Files:
content/_meta.ts: Sidebar configuration for the documentation root.modules/docs/suggestions.tsx: Component for handling search suggestions and 404 redirections (coming soon).
Adding New Pages
To add a new documentation page:
- Create a
.mdxfile incontent/en/(or the appropriate locale folder). - Add the file ID to the
_meta.tsfile in the same directory to include it in the sidebar.
Example about.mdx:
Example _meta.ts:
MDX Features
You can use standard Markdown features as well as React components directly in your MDX files.
Last updated on