Adding Pages
SuperDocs uses a file-system based routing, but the sidebar navigation is explicitly defined in docs-config.json. This gives you full control over the order and hierarchy of your docs.
Step 1: Create the File
Create a new Markdown or MDX file anywhere in your content folder.
my-docs/ guides/ new-page.mdxStep 2: Add Frontmatter
Add metadata to your file. SuperDocs supports extensive frontmatter for SEO and page configuration:
Basic Frontmatter
---title: My New Guidedescription: This is a new guide I created.---
# My New Guide
Content goes here...Full SEO Frontmatter
For complete SEO control, you can add additional fields:
---title: My New Guidedescription: A comprehensive guide to getting started.canonical: https://docs.example.com/guides/new-pageogImage: /images/guide-og.pngogType: articlekeywords: - tutorial - guide - getting startedauthor: Your NamepublishDate: 2025-01-01modifiedDate: 2025-01-15tags: - beginner - tutorialsection: GuidesreadingTime: 10noIndex: false---See the SEO & Meta Tags guide for details on all available frontmatter fields.
Step 3: Update Config
Add the page to your sidebar in docs-config.json.
{ "navigation": { "sidebar": [ { "label": "Guides", "items": [ { "label": "My New Guide", "href": "/guides/new-page" } ] } ] }}The href should match the file path relative to the root, minus the extension.
Frontmatter Reference
| Field | Required | Description |
|---|---|---|
title | Yes | Page title displayed in the header and browser tab. |
description | Recommended | Page description for SEO and social sharing. |
canonical | No | Custom canonical URL (auto-generated if not set). |
ogImage | No | Custom Open Graph image for this page. |
author | No | Author name for article metadata. |
publishDate | No | Publication date (ISO 8601 format). |
modifiedDate | No | Last modified date (ISO 8601 format). |
keywords | No | SEO keywords for this page. |
tags | No | Article tags/categories. |
noIndex | No | Set to true to hide from search engines. |