π§Ύ 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-startedguides/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 layoutdescriptionβ Meta description for SEOlayoutβ Optional, sets a custom layout if defined
π Navigation Order
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.