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
This commit is contained in:
George Kalpakas 2019-04-07 19:58:25 +03:00 committed by Igor Minar
parent e02684e609
commit c5bba8d9f2

View File

@ -1,14 +1,15 @@
module.exports = function createSitemap() { module.exports = function createSitemap() {
return { return {
blacklistedDocTypes: [ blacklistedDocTypes: [
'navigation-json', 'announcements-json',
'contributors-json', 'contributors-json',
'navigation-json',
'resources-json', 'resources-json',
], ],
blacklistedPaths: [ blacklistedPaths: [
'test',
'file-not-found', 'file-not-found',
'overview-dump' 'overview-dump',
'test',
], ],
$runAfter: ['paths-computed'], $runAfter: ['paths-computed'],
$runBefore: ['rendering-docs'], $runBefore: ['rendering-docs'],