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 Decapfoldermatches its collectionname.'decap'— readconfig.yml. Necessary when a collection'sfolderdiffers from itsname, and the only option that can enumerate the collections, which is what contentiaCollections needs.- a
CatalogProvider— anything else.