Understanding Entries
Entries are the fundamental building blocks of your documentation. Each entry represents one page.
What is an Entry?
An entry is a single Markdown or MDX file that becomes one page on your documentation site.
Entry (one file)
β
content/my-docs/guides/installation.md
β
Becomes one page at: /my-docs/guides/installation
Entry Properties
Every entry has these properties:
Required Properties
Title (from frontmatter)
---
title: "Installation Guide"
---
Description (from frontmatter, used for SEO)
---
description: "Step-by-step instructions for installation"
---
Optional Properties
Navigation Label (override sidebar text)
navLabel: "Install" # Sidebar shows "Install" instead of "Installation Guide"
Icon (emoji or SVG reference)
navIcon: "β‘" # Appears next to entry in sidebar
Hidden (exclude from navigation)
navHidden: false # If true, doesn't appear in sidebar but still accessible via URL
Draft (exclude from production builds)
draft: false # If true, excluded from build unless explicitly included
Entry Slug
The slug is the file path converted to a URL path:
File Location: content/docs/getting-started/installation.md
Slug: getting-started/installation
Full URL: /docs/getting-started/installation
Rules:
- Slug is the relative path from the collection folder
- File extension (.md, .mdx) is removed
- Kebab-case is standard for folders:
my-guide/->/my-guide/
Example: A Complete Entry
File: content/my-docs/guides/quick-start.md
---
title: "Quick Start Guide"
description: "Get up and running in 5 minutes"
navLabel: "Quick Start"
navIcon: "π"
---
# Quick Start Guide
This page teaches users how to get started quickly.
Results in:
- Slug:
guides/quick-start - URL:
/my-docs/guides/quick-start - Sidebar Label: βQuick Startβ
- Sidebar Icon: π
- Browser Tab Title: βQuick Start Guideβ
Entries in Navigation
Entries appear in the sidebar as clickable links. Theyβre always leaf nodesβyou canβt put groups inside an entry, but entries can be grouped.
Sidebar
βββ Group 1
β βββ Entry: Installation <- clickable link
β βββ Entry: Configuration <- clickable link
βββ Group 2
β βββ Entry: Advanced Setup <- clickable link
βββ Orphan Entry: FAQ <- entry without a group
Entry Discovery
Entries are discovered in two ways:
1. Auto-Generated
// All .md/.mdx files in content/guides/ automatically become entries
{ id: "guides", label: "Guides", autoGenerated: true }
2. Manually Listed
// Only specified entries appear
{
id: "guides",
label: "Guides",
entries: [
{ slug: "guides/getting-started" },
{ slug: "guides/installation" },
],
}
Next Steps
Now that you understand entries, learn about: