@svartz/config
54 exported symbols.
Classes
| c ConfigDecodeFailed | |
| c ConfigImportFailed | |
| c ConfigNotFound | |
| c VaultBuildRootConflict | |
| c VaultBuildRootResolutionFailed | |
| c VaultIdConflict | |
| c VaultIdNotFound | |
| c VaultMountConflict | |
| c VaultPathInvalid | |
| c VaultPluginInvalid | A plugin's `forVault` refused the site, such as an `auth` whose `callbackVault` names no vault with auth. |
Interfaces
| i ResolvedConfigSet | Internal multi-vault resolved config set used by config resolution helpers. Defaults are merged into each vault, while build defaults remain available here. |
Types
| t AnalyticsConfig | |
| t ConfigError | |
| t DiscoveryConfig | |
| t FrontmatterFields | |
| t LinkResolutionStrategy | |
| t ResolvedConfig | Canonical single-vault resolved build config re-exported from @svartz/core. |
| t ResolvedSvartzConfig | Compatibility alias for code that still refers to the multi-vault bundle. |
| t ResolvedVaultConfig | Compatibility alias for code that still refers to a resolved vault. |
| t SiteConfig | |
| t SvartzConfig | |
| t SvartzDefaults | |
| t TargetConfig | |
| t VaultConfig | |
| t VaultOptions | |
| t VaultThemeConfig |
Functions
| f defineConfig | |
| f getPackageVersion | Get the `version` from a package.json. Accepts either: - A module URL (e.g. `import.meta.url`): finds the package.json for that module's package by walking up from the file. - A path to package.json (e.g. `resolve(__dirname, "../package.json")`): reads that file directly. |
| f getVault | |
| f listVaults | |
| f loadConfig | |
| f loadConfigEffect | Load, import, and parse a svartz config file. Returns the parsed SvartzConfig and the directory containing the config file. |
| f parseConfig | |
| f parseConfigEffect | Parse (validate) a raw JS object against the config schema, then check that the major version matches the config format this package reads. |
| f resolveConfig | |
| f resolveConfigEffect | |
| f runEffect |
Variables
| v AnalyticsConfigSchema | |
| v BuildOptionsSchema | |
| v DiscoveryConfigSchema | |
| v FrontmatterFieldsSchema | |
| v GiscusConfigSchema | |
| v IndexConfigSchema | What the published index carries beyond its defaults. |
| v LinkResolutionStrategySchema | |
| v PasswordGroupsSchema | |
| v PluginEntrySchema | Shallow plugin placeholder; plugin interface/standard TBD. |
| v SemverSchema | |
| v SiteConfigSchema | |
| v SvartzConfigSchema | |
| v SvartzDefaultsSchema | Defaults are vault options at top level (no nested .vault). |
| v TargetConfigSchema | |
| v VaultConfigSchema | Vault config: required id, path, target + optional vault options (same shape as defaults; merged with defaults). |
| v VaultOptionsSchema | Shared vault options; defaults and VaultConfig both use this shape. |
| v VaultThemeConfigSchema | Shared keys are checked here. Anything else is the theme's own setting (routes, footer, infobox defaults…) and passes through for the theme to validate. |