• Blog
  • Documentation
  • Courses
  • Changelog
  • AI Starters
  • UI Kit
  • FAQ
  • Supamode
    New
  • Pricing

Launch your next SaaS in record time with Makerkit, a React SaaS Boilerplate for Next.js and Supabase.

Makerkit is a product of Makerkit Pte Ltd (registered in the Republic of Singapore)Company Registration No: 202407149CFor support or inquiries, please contact us

About
  • FAQ
  • Contact
  • Verify your Discord
  • Consultation
  • Open Source
  • Become an Affiliate
Product
  • Documentation
  • Blog
  • Changelog
  • UI Blocks
  • Figma UI Kit
  • AI SaaS Starters
License
  • Activate License
  • Upgrade License
  • Invite Member
Legal
  • Terms of License
    • Introduction
    • Initial Setup
    • Project Structure
    • Running the App
    • Project Configuration
    • Environment Variables
    • Authentication
    • Onboarding Flow
    • Development: adding custom features
    • Firestore: Data Fetching
    • Firestore: Data Writing
    • Forms
    • Application Pages
    • API Routes
    • API Routes Validation
    • Translations
    • Functions you need to know
    • Adding pages to the Marketing Site
    • Adding Blog Posts
    • Adding Documentation pages
    • Deploying to Production
    • Updating to the latest version

Adding Documentation pages

Learn how to add documentation pages to your product's website

We place the documentation pages within the _docs folder.

Topics

The pages are defined hierarchically so that you can define your documentation in the following way:

text
- _docs
- [topic]
- [topic.json]
- [page].mdx

The documentation you're reading, for example, is defined as follows.

The MakerKit kit has a folder called _docs: in this folder, we have a list of sub-folders for each topic we are describing.

Each folder has a metadata file named meta.json:

json
{
"title": "Blog and Docs",
"position": 2,
"description": "Learn how to configure and write your product's Blog and Documentation"
}

The position property defines the order of the topics. In the case above, the topic Blog and Docs will be the third topic in the list.

Topics Pages

Within each topic, we define the collection pages defined as MDX files. They share the same components as the blog posts' files.

A page is defined as follows:

yaml
---
title: Blog
order: 1
---

The position property defines the order in which the page is listed within the topic.