From c5bba8d9f222765513ed42085bf7b4e1c9656f55 Mon Sep 17 00:00:00 2001 From: George Kalpakas Date: Sun, 7 Apr 2019 19:58:25 +0300 Subject: [PATCH] build(docs-infra): do not include `announcements.json` in sitemap (#29754) The `announcements.json` file should not be included in the sitemap and including it causes an error in Google Search Console (because the generated URL does not exist). (This is a follow-up to fbef94a8e.) PR Close #29754 --- .../angular-base-package/processors/createSitemap.js | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/aio/tools/transforms/angular-base-package/processors/createSitemap.js b/aio/tools/transforms/angular-base-package/processors/createSitemap.js index 4cbf8f5287..2e775cd0fc 100644 --- a/aio/tools/transforms/angular-base-package/processors/createSitemap.js +++ b/aio/tools/transforms/angular-base-package/processors/createSitemap.js @@ -1,14 +1,15 @@ module.exports = function createSitemap() { return { blacklistedDocTypes: [ - 'navigation-json', + 'announcements-json', 'contributors-json', + 'navigation-json', 'resources-json', ], blacklistedPaths: [ - 'test', 'file-not-found', - 'overview-dump' + 'overview-dump', + 'test', ], $runAfter: ['paths-computed'], $runBefore: ['rendering-docs'],