@hia-doc/config
v0.1.0
Published
Project configuration contract and loader for HIA documentation tools.
Readme
@hia-doc/config
Shared configuration contract and loader for HIA documentation tools.
Current scope:
- Auto-discover
hia.config.jsonfrom the current working directory. - Load an explicit config through
--config <file>callers. - Validate the first JSON config contract.
- Provide diagnostics in the same shape used by
@hia-doc/core, including machine-readabledatawhere useful.
The config package represents project/build profile settings. It does not add fields to the core document IR.
The first contract is intentionally small. hia.config.ts, layered config merging and dynamic config evaluation are deferred.
Contract
The current JSON config schema version is exported as HIA_CONFIG_SCHEMA_VERSION.
Project docs manifests use a separate draft contract exported by this package:
HIA_PROJECT_MANIFEST_SCHEMA_VERSIONHIA_PROJECT_MANIFEST_SCHEMA_IDHIA_PROJECT_MANIFEST_JSON_SCHEMAvalidateHiaProjectManifest()
See docs/configuration.md and docs/contract-index.md in the repository root for the current config boundary.
For unified project pages, the project manifest can declare project.defaultLocale and project.locales. The renderer preserves these values in the output manifest and exposes a language switcher when more than one locale is available.
