Skip to content

Commit 21f4fd1

Browse files
authored
Merge pull request #2836 from Hack23/copilot/improve-sitemap-rss-generation
Localize RSS feeds (rss_
2 parents 96af91c + 666ef49 commit 21f4fd1

21 files changed

Lines changed: 15690 additions & 128 deletions

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@
5656
"prebuild": "npx tsx scripts/optimize-images.ts && npx tsx scripts/generate-article-types-doc.ts && npx tsx scripts/copy-vendor-mermaid.ts --quiet && npx tsx scripts/build-csv-contracts-fixture.ts && npx tsx scripts/aggregate-analysis.ts --all --quiet && npx tsx scripts/render-articles.ts --all --lang all --quiet && npx tsx scripts/generate-news-indexes/index.ts && npx tsx scripts/extract-news-metadata.ts && npx tsx scripts/generate-sitemap-html.ts && npx tsx scripts/generate-political-intelligence.ts && npx tsx scripts/generate-rss.ts && npx tsx scripts/generate-sitemap.ts && npx tsx scripts/normalize-static-html-chrome.ts && npx tsx scripts/backfill-translated-chrome.ts && npx tsx scripts/strip-legacy-chrome-script-tags.ts && npx tsx scripts/fix-hreflang.ts --write",
5757
"build": "vite build",
5858
"build:lib": "tsc -p tsconfig.lib.json && tsc -p tsconfig.npm-scripts.json",
59-
"postbuild": "cp rss.xml dist/rss.xml && cp sitemap.xml dist/sitemap.xml && cp -r cia-data dist/cia-data && cp manifest.json dist/manifest.json",
59+
"postbuild": "cp rss.xml dist/rss.xml && (cp rss_*.xml dist/ 2>/dev/null; exit 0) && cp sitemap.xml dist/sitemap.xml && cp -r cia-data dist/cia-data && cp manifest.json dist/manifest.json",
6060
"preview": "vite preview",
6161
"test": "NODE_OPTIONS='--max-old-space-size=2048' vitest run",
6262
"test:watch": "vitest",

rss_ar.xml

Lines changed: 1185 additions & 0 deletions
Large diffs are not rendered by default.

rss_da.xml

Lines changed: 1185 additions & 0 deletions
Large diffs are not rendered by default.

rss_de.xml

Lines changed: 1185 additions & 0 deletions
Large diffs are not rendered by default.

rss_es.xml

Lines changed: 1185 additions & 0 deletions
Large diffs are not rendered by default.

rss_fi.xml

Lines changed: 1185 additions & 0 deletions
Large diffs are not rendered by default.

rss_fr.xml

Lines changed: 1185 additions & 0 deletions
Large diffs are not rendered by default.

rss_he.xml

Lines changed: 1185 additions & 0 deletions
Large diffs are not rendered by default.

rss_ja.xml

Lines changed: 1185 additions & 0 deletions
Large diffs are not rendered by default.

rss_ko.xml

Lines changed: 1185 additions & 0 deletions
Large diffs are not rendered by default.

0 commit comments

Comments
 (0)