Skip to content

Powered by Grav

Quick Start

Quick Start

Get your documentation site up and running in minutes.

Page Structure

Helios uses Grav's standard page structure. Documentation pages are organized in numbered folders:

  • user/pages
    • v1
      • 01.home
        • default.md
        • 02.getting-started
          • chapter.md
          • 01.installation
            • doc.md
          • 02.configuration
            • doc.md
        • 03.guides
          • chapter.md

The numeric prefixes control the order in the sidebar navigation.

Creating a Documentation Page

Create a new markdown file with YAML frontmatter:

MARKDOWN
---
title: My Page Title
taxonomy:
    category: docs
---

# My Page Title

Your content goes here...

Page Templates

Helios includes several templates:

Default Template

The standard documentation page with sidebar, content, and TOC:

MARKDOWN
---
title: Regular Page
template: default
---

Chapter Template

A section landing page that lists child pages:

MARKDOWN
---
title: Section Name
template: chapter
---

# Section Name

Introduction to this section...

API Endpoint Template

For API documentation with method badges and parameter tables:

MARKDOWN
---
title: Create User
template: api-endpoint
api:
  method: POST
  path: /users
  description: Creates a new user
  parameters:
    - name: email
      type: string
      required: true
---

Adding Content

Headings

Use markdown headings. They automatically appear in the on-page TOC:

MARKDOWN
## Main Section

### Subsection

#### Sub-subsection

Code Blocks

Specify the language for syntax highlighting:

TXT
```javascript
function hello() {
    console.log('Hello, World!');
}
```

Callouts

Use GitHub-flavored markdown alerts for callout boxes:

MARKDOWN
> [!NOTE]
> This is an informational note.

> [!WARNING]
> This is a warning message.

See the Callouts page for all available types.

Testing Your Site

Start the built-in PHP server:

BASH
cd /path/to/your/grav
php -S localhost:8000 system/router.php

Then open http://localhost:8000 in your browser.

Building CSS

If you make changes to the theme's CSS, rebuild with:

BASH
cd user/themes/helios
npm install
npm run build

For development with hot reload:

BASH
npm run dev

Next Steps

  • Explore the Guides for in-depth tutorials
  • Check out the Components for available UI elements
  • See the API Reference for API documentation examples

© 2025 Grav. All rights reserved.