Guides
Creating Docs Page
Guide on how to create a docs page in Nextbase.
Docs are written using fumadocs.
- Index page for docs is in a different layout mainly because fumadocs doesn't support index layouts. It only has a docs page which renders a single mdx page at a time.
- All the actual docs are generated from content-collections. All the docs are written as mdx files in
src/content/docs
. - They are then converted into json files by content-collections.
- Fumadocs and content collections work together to render the docs page.
page.tsx
layout.tsx
layout.tsx
page.tsx
global.css
getting-started.mdx
package.json