Edit Documentation
Easy SaaS Next integrates with fumadocs for convenient markdown documentation editing
fumadocs is a library for building documentation systems.
You can use markdown or mdx to edit documentation. All documentation files are located in the content/docs directory.
You can visit http://localhost:3000/docs to view the documentation.
Creating & Editing Documents
You can create a new document by creating an mdx (recommended) file. Documents need to follow the fumadocs specification.
Using mdx, you can not only use standard markdown syntax but also React components.
import { Button } from '@/components/ui/button'
<Button>Click me</Button>All documents need to have frontmatter at the top to configure document metadata.
---
title: Document Title
description: Document Description
icon: Document Icon
---
ContentAvailable configuration parameters:
| Name | Description |
|---|---|
title | Page title |
description | Page description |
icon | Icon name, using lucide-react icons. You only need to select an icon from the icon list and copy the icon name to the icon field. |
full | Fill all available space on the page (Fumadocs UI) |
pro | Whether it's a Pro-exclusive document, only accessible to users who have subscribed to the Pro version; when configured, a Pro tag will be displayed next to the article title |
For more details, please refer to the fumadocs frontmatter documentation.
Internationalization
Easy SaaS Next integrates i18n functionality, allowing you to edit documentation in different languages.
To edit English documentation, simply rename the index.mdx file to index.en.mdx.
Documentation Directory
The documentation directory is automatically generated based on the files in the content/docs directory.
You can create new folders in the content/docs directory to generate new documentation directories.
Or customize the structure through meta.json, see fumadocs routing for details.