DataLoaderConfig #

Facts about the site that a loader can use: its root, source and public folders, and the site data.

Fields #

rootstring

Absolute site root.

srcDirstring

Absolute Markdown source root.

publicDirstring

Absolute public assets directory.

siteReadonly<SiteData>

Serializable site data shared with the runtime.

Full type signature
TypeScript
interface DataLoaderConfig {
  readonly root: string
  readonly srcDir: string
  readonly publicDir: string
  readonly site: Readonly<SiteData>
}

Edit this page

Comments