Skip to Content
EnModulesDocumentation

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) and modules/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:

  1. Create a .mdx file in content/en/ (or the appropriate locale folder).
  2. Add the file ID to the _meta.ts file 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