🧾 Usage Guide

Docsly uses Nuxt Content to allow you to write documentation in Markdown or MDX. This guide shows how to organize your content, use frontmatter, and extend markdown with components.


πŸ“‚ Content Folder Structure

All your documentation content lives inside the content/ folder. You can organize it in any way that fits your documentation flow:

content/
β”œβ”€β”€ index.md
β”œβ”€β”€ getting-started.md
└── guides/
    β”œβ”€β”€ overview.md
    └── advanced-usage.md

Each file will be mapped to a route automatically:

  • index.md β†’ /
  • getting-started.md β†’ /getting-started
  • guides/overview.md β†’ /guides/overview

πŸ“ Writing Markdown with Frontmatter

You can use frontmatter to add metadata to your markdown pages:

---
title: Getting Started
description: Learn how to install and set up Docsly
layout: default
---

# Getting Started

Welcome to Docsly! Let’s get you up and running.

Available frontmatter fields:

  • title – Used in the page <head> and layout
  • description – Meta description for SEO
  • layout – Optional, sets a custom layout if defined

To control the order of pages in your sidebar or navigation, you can use the dir field or manually sort pages when rendering navigation from Nuxt Content.

---
title: Usage
dir: 2
---

🧩 Using Vue Components in Markdown

Docsly supports using Vue components directly inside .md or .mdx files:

<Callout type="warning">
This is a custom component inside markdown!
</Callout>

Make sure the component is registered globally or locally in the components/ directory.