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

    Function generateIndexHTML

    • Generate index HTML for a language.

      Produces a complete, standards-compliant HTML5 page with:

      • Sticky header with EU branding
      • Compact language switcher with flag + code
      • Hero section with page title and description
      • Responsive card grid for news articles
      • Accessible empty state when no articles exist
      • Hack23 AB multi-section footer (About, Quick Links, Built by Hack23, Languages)

      Parameters

      • lang: string

        Language code

      • articles: ParsedArticle[]

        Articles for this language

      Returns string

      Complete HTML document