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:
parent
e02684e609
commit
c5bba8d9f2
@ -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'],
|
||||||
|
Loading…
x
Reference in New Issue
Block a user