EU Parliament Monitor — API Documentation - v0.8.30
    Preparing search index...
    • Write a single HTML file to the news directory.

      Respects dryRun and skipExisting flags: returns null without writing in either case.

      File-level deduplication is intentionally NOT applied here. Instead, the pipeline computes a run-level suffix from the deduplicated analysis directory (e.g. "breaking-2") and bakes it into the article slug before HTML generation, keeping filenames, canonical URLs, og:url, and language-switcher links all consistent.

      Parameters

      • html: string

        Full HTML content to write

      • filename: string

        Target filename (relative to options.newsDir)

      • options: OutputOptions

        Output flags and directory path

      Returns string | null

      The basename of the actually-written file, or null when nothing was written