ArcaneJaspr Codex
Documentation
Quick Start
Get up and running in 5 minutes

Quick Start#

Get your first documentation page live in under 5 minutes.

Create a New Page#

Add a new markdown file to the content/ directory:

---
title: My New Page
description: A brief description
layout: docs
---

# My New Page

Your content here.

Frontmatter#

Each page starts with YAML frontmatter:

FieldDescription
titlePage title (used in header and navigation)
descriptionBrief description for meta tags
layoutLayout to use (docs for documentation)
previousOptional link to previous page
nextOptional link to next page

Markdown Features#

The documentation supports standard Markdown plus:

Code Blocks#

Use triple backticks with a language identifier:

void main() {
  print('Hello, Jaspr!');
}

Headings#

Headings automatically get anchor links and appear in the table of contents.

Both internal and external links work:

Update Navigation#

Edit lib/components/docs_sidebar.dart to add your page to the navigation:

SidebarItem(
  label: 'My New Page',
  icon: Icons.file,
  href: '/docs/my-new-page',
  active: currentPath == '/docs/my-new-page',
),

Deploy#

Build and deploy to any static hosting:

jaspr build
# Upload build/jaspr/ to your host