Configuration

Your site is configured via ptero.config.ts in the project root.

Basic Options

import type { PteroConfig } from 'ptero-core';

const config: PteroConfig = {
	site: {
		title: 'My Docs',
		description: 'Awesome documentation site',
		baseUrl: '/docs'
	}
	// ...
};

export default config;

The sidebar is explicit but flexible. You define the order of sections and subsections.

sidebar: {
  // Top-level sections (directories or groups)
  sectionOrder: ['Introduction', 'Guides', 'Reference'],

  // Order of pages within each section
  subsectionOrder: {
    Introduction: ['what-is-ptero', 'installation'],
    // Use the slug (filename without extension)
    Guides: ['project-structure', 'configuration']
  }
}

For a full reference of all available options, see the Configuration Reference.