EU Parliament Monitor — API Documentation - v0.8.49
    Preparing search index...

    Module Generators/Sitemap/Xml

    Generates the sitemap.xml document with hreflang alternates per Google guidelines. Wraps the index pages, sitemap HTML pages, political-intelligence pages, RSS feed, news articles, and documentation files with appropriate <changefreq> / <priority> defaults and xhtml:link rel="alternate" blocks for multilingual variants.

    Lifted out of the monolithic sitemap.ts so the XML emission can be unit-tested in isolation, so the bounded context "sitemap XML" is pure (no HTML chrome dependencies), and so future XML output formats (news-sitemap, video-sitemap) can reuse the same URL builders.

    Output is byte-identical to the legacy in-line implementation that lived in sitemap.ts, verified by the byte-equality regression test.

    Functions

    collectDocsHtmlFiles
    generateSitemap

    Interfaces

    SitemapUrlWithAlternates

    Variables

    SITEMAP_DOCS_DIR