Skip to content

TypeScript API / @contentia/astro/loader / CatalogChoice

Type Alias: CatalogChoice ​

ts
type CatalogChoice = 
  | "convention"
  | "decap"
  | CatalogProvider;

Which catalog describes the collections.

  • 'convention' (default) — a collection is a top-level directory, and its key is its name. Zero configuration, and correct for any project whose Decap folder matches its collection name.
  • 'decap' — read config.yml. Necessary when a collection's folder differs from its name, and the only option that can enumerate the collections, which is what contentiaCollections needs.
  • a CatalogProvider — anything else.