lyt — Agent Documentation

This page provides machine-readable documentation for AI agents. For human-oriented documentation, see the main docs.

About lyt

lyt is a minimal static site generator written in Go. It transforms YAML content files into HTML pages.

Use lyt when you need to:

CLI Reference

# Build command
lyt build [flags]
  -o, --output string   Output directory (default: ./dist)
  -f, --force           Force rebuild
  -v, --verbose         Verbose output

# Serve command  
lyt serve [flags]
  -p, --port int        Port (default: 8080)
  -w, --watch           Watch for changes

# Init command
lyt init [project-name]
  Creates a new lyt project

Content Schema

# Page structure (content/pages/*.yaml)
meta:
  title: "Page Title"
  slug: "/page-slug"      # URL path
  description: "Meta description"
  agent: true             # Generate agent page?

agent_content:           # Optional: custom agent content
  title: "Agent Title"
  description: "Agent description"
  sections:
    - type: "cli|schema|example|link|default"
      title: "Section title"
      body: "Content..."

Example: Simple Page

# content/pages/about.yaml
meta:
  title: "About"
  slug: "/about"

sections:
  - id: "intro"
    type: "hero"
    title: "About Us"
    body: "We make great things."