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.
Description
Generates the
sitemap.xmldocument 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 andxhtml:link rel="alternate"blocks for multilingual variants.Lifted out of the monolithic
sitemap.tsso 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.