fn: inspect_ingest
Purpose
Validate an incoming Markdown candidate before ingesting it.
Signature
def inspect_ingest(source: str | Path, input_file: str | Path, language_override: str='') -> IngestInspection:
Arguments
- source: Website source root directory.
- input_file: Path to the incoming Markdown source.
- language_override: Optional language to use instead of the source metadata.
Usage
inspection = inspect_ingest(site_root, input_file, language_override="NL")
