ResolvedSiteConfig #
The site config with every default applied and every value checked, after all plugin config() hooks ran. Generator plugins read it in configResolved() instead of repeating KawaPress's defaults.
Fields #
rootstring
Absolute path of the site root, the folder of kawapress.config.ts.
titlestring
Site title.
descriptionoptionalstring
Description of pages that set none in frontmatter or locale config.
basestring
Deploy path, always starting and ending with /.
srcDirstring
Markdown source folder, relative to root.
srcExcludereadonly string[]
Glob patterns, relative to srcDir, of Markdown files that are not pages.
rewritesPageRewrites | undefined
The rules that move pages to other routes, if any.
publicDirstring
Public folder, relative to srcDir.
headreadonly HeadConfig[]
Tags added to the <head> of every page.
themeConfigReadonly<Partial<ThemeConfig>>
Theme settings.
localesReadonly<Record<string, LocaleConfig>>
Every locale; a site without locales has an English root locale.
Full type signature
TypeScript
interface ResolvedSiteConfig {
readonly root: string
readonly title: string
readonly description?: string
readonly base: string
readonly srcDir: string
readonly srcExclude: readonly string[]
readonly rewrites: PageRewrites | undefined
readonly publicDir: string
readonly head: readonly HeadConfig[]
readonly themeConfig: Readonly<Partial<ThemeConfig>>
readonly locales: Readonly<Record<string, LocaleConfig>>
}

Comments