EU Parliament Monitor - API Documentation - v0.7.1
    Preparing search index...

    Module Utils/FixArticles

    FALLBACK TOOL — Retroactively adds missing language switcher, article-top-nav (back button), site-header, skip-link, reading-progress bar, and site-footer to existing news articles.

    The primary mechanism for including these elements is the article template (generateArticleHTML in src/templates/article-template.ts), which already produces all required structural elements. This script is a last-resort recovery tool for patching legacy articles generated before the template was complete.

    Usage: npx tsx src/utils/fix-articles.ts [--dry-run]

    Functions

    fixArticle
    fixAllArticles