Admin Directory

This directory contains Sveltia CMS configuration files.

Files

config.yml

Generated by Eleventy during build - Final CMS configuration file that Sveltia CMS uses.

This file is automatically created by the platform/src/admin-config.njk template and combines:

  1. Auto-generated content type collections from .generated-collections.yml
  2. Pages and settings sections defined in the template

Do not edit this file manually - it will be overwritten on next build.

.generated-collections.yml

Auto-generated by npm run generate:cms - Intermediate collections file.

Created by platform/scripts/generate-cms-config.js based on content type definitions in:

Do not edit this file manually - it's regenerated automatically. This file is in .gitignore and should not be committed.

How it Works

  1. Content types are defined in content-type.js files
  2. Generator runs: npm run generate:cms creates .generated-collections.yml
  3. Build runs: Eleventy uses admin-config.njk template to create final config.yml
  4. Sveltia CMS reads: admin/config.yml for its configuration

Customization

To customize CMS configuration:

See ../config/ for user-editable site configuration files.