aregmi.net

Template and guidelines for creating new documentation pages

template documentation-guide meta

Documentation Template Guide

This guide explains how to structure new documentation pages for consistency and better organization.

Frontmatter Template

Use this template when creating new .md files in the docs folder:

---
title: Your Page Title
description: Brief description (used for SEO and preview)
parent: ParentPageTitle  # Optional: for nested pages (must match another page's title)
category: CategoryName   # Required: e.g., SpringAI, General, Guides
order: 2                 # Required: controls sorting within category (1, 2, 3...)
tags: [tag1, tag2, tag3] # Optional: relevant keywords for searchability
layout: layouts/doc.liquid
---

# Your Page Title

Your content starts here...

Field Explanations

Field Required Purpose
title Yes Page title (appears in sidebar and navigation)
description Yes Brief description (displayed on page and in metadata)
category Yes Grouping category (SpringAI, Guides, General, etc.)
order Yes Sort order within category (lower numbers appear first)
parent No Parent page title for nested pages
tags No Array of keywords for better discoverability
layout Yes Always use layouts/doc.liquid

Directory Structure

docs/
├── index.md                    # Homepage
├── SpringAI/
│   ├── index.md               # Category overview
│   ├── gettingStarted.md      # Getting started guide
│   ├── examples/
│   │   └── essentials.md      # Example page
│   └── guides/
│       ├── setup.md
│       └── deployment.md
├── Guides/
│   ├── index.md
│   └── advanced-topics.md
└── TEMPLATE.md                # This file

Collections

The .eleventy.js config provides these collections:

Use these for custom navigation or organization.

Adding New Pages

  1. Create a new .md file in the appropriate directory
  2. Add the frontmatter template above
  3. Ensure order is unique within the category
  4. Fill in title, description, and tags
  5. Build the site to verify appearance

Best Practices

Features