Search Documentation

Search for pages and headings in the documentation

Frontmatter Reference

Frontmatter is YAML metadata at the top of every page. It controls page display and navigation behavior.

Required Fields

Every page must have these:

title

Page title that appears in browser tab and sidebar.

---
title: "Getting Started"
---

description

Short description for SEO and preview text.

---
description: "Learn how to get started with CelestialDocs in 5 minutes"
---

Optional Navigation Fields

Override the sidebar label (if different from title).

---
title: "Installation and Configuration"
navLabel: "Install"  <- Sidebar shows this instead
---

Add an icon in the sidebar next to the entry.

---
navIcon: "⚑"  <- Emoji
---

or

---
navIcon: "document"  <- SVG reference
---

Hide from navigation but keep accessible via URL.

---
navHidden: true
---

Page won’t appear in sidebar but users can still visit it directly.

Optional Metadata Fields

draft

Exclude from production builds.

---
draft: true  <- Skipped in build
---

Useful for work-in-progress pages.

authors

List page authors.

---
authors: ["Alice", "Bob"]
---

tags

Categorize pages (useful for custom features).

---
tags: ["tutorial", "beginner", "setup"]
---

Complete Example

---
title: "Advanced Configuration"
description: "Learn how to configure CelestialDocs for enterprise deployments"
navLabel: "Advanced Config"
navIcon: "βš™οΈ"
navHidden: false
draft: false
authors: ["Alice", "Bob"]
tags: ["configuration", "advanced", "enterprise"]
---
# Advanced Configuration

Content goes here...

Field Types

FieldTypeDefaultNotes
titlestringrequiredPage title
descriptionstringrequiredSEO description
navLabelstringoptionalOverride sidebar text
navIconstringoptionalEmoji or SVG ref
navHiddenbooleanfalseHide from nav?
draftbooleanfalseWork in progress?
authorsarray[]Page authors
tagsarray[]Page tags

Common Patterns

Tutorial Page

---
title: "Building Your First App"
description: "Step-by-step guide to building your first application"
navLabel: "First App"
navIcon: "πŸš€"
authors: ["Your Name"]
tags: ["tutorial", "beginner"]
---

Reference Page

---
title: "API Endpoints Reference"
description: "Complete reference for all REST API endpoints"
navLabel: "Endpoints"
navIcon: "πŸ“‘"
draft: false
tags: ["api", "reference"]
---

Draft/WIP

---
title: "Upcoming Features"
description: "Features we're working on"
draft: true
navHidden: true
---

Hidden But Accessible

---
title: "Internal Documentation"
description: "Internal team documentation"
navHidden: true
---

Tips

  1. Keep titles short (3-5 words)

    title: "Getting Started"          βœ… Good
    title: "How to Get Started with CelestialDocs" ❌ Too long
  2. Use navLabel for long titles

    title: "Frequently Asked Questions About Deployment"
    navLabel: "Deployment FAQ"
  3. Use navHidden for drafts

    draft: true
    navHidden: true
  4. Add authors for accountability

    authors: ["Alice", "Bob", "Charlie"]
  5. Use consistent icon style

    navIcon: "πŸš€"  # Emoji for visual variety
    navIcon: "book" # Or SVG for consistency

Next Steps

Learn about: