diff --git a/aio/tools/transforms/angular-base-package/processors/createSitemap.js b/aio/tools/transforms/angular-base-package/processors/createSitemap.js index 2e775cd0fc..e6d320b450 100644 --- a/aio/tools/transforms/angular-base-package/processors/createSitemap.js +++ b/aio/tools/transforms/angular-base-package/processors/createSitemap.js @@ -1,12 +1,12 @@ module.exports = function createSitemap() { return { - blacklistedDocTypes: [ + ignoredDocTypes: [ 'announcements-json', 'contributors-json', 'navigation-json', 'resources-json', ], - blacklistedPaths: [ + ignoredPaths: [ 'file-not-found', 'overview-dump', 'test', @@ -23,8 +23,8 @@ module.exports = function createSitemap() { // Filter out docs that are not outputted .filter(doc => doc.outputPath) // Filter out unwanted docs - .filter(doc => this.blacklistedDocTypes.indexOf(doc.docType) === -1) - .filter(doc => this.blacklistedPaths.indexOf(doc.path) === -1) + .filter(doc => this.ignoredDocTypes.indexOf(doc.docType) === -1) + .filter(doc => this.ignoredPaths.indexOf(doc.path) === -1) // Capture the path of each doc .map(doc => doc.path) // Convert the homepage: `index` to `/` diff --git a/aio/tools/transforms/angular-base-package/processors/createSitemap.spec.js b/aio/tools/transforms/angular-base-package/processors/createSitemap.spec.js index 5559d0c80e..9802f3bcf5 100644 --- a/aio/tools/transforms/angular-base-package/processors/createSitemap.spec.js +++ b/aio/tools/transforms/angular-base-package/processors/createSitemap.spec.js @@ -53,7 +53,7 @@ describe('createSitemap processor', () => { { path: 'cde', outputPath: 'cde', docType: 'bad' }, { path: 'fgh', outputPath: 'fgh', docType: 'good' }, ]; - processor.blacklistedDocTypes = ['bad']; + processor.ignoredDocTypes = ['bad']; processor.$process(docs); expect(docs.pop().urls).toEqual(['abc', 'fgh']); }); @@ -64,7 +64,7 @@ describe('createSitemap processor', () => { { path: 'cde', outputPath: 'cde' }, { path: 'fgh', outputPath: 'fgh' }, ]; - processor.blacklistedPaths = ['cde']; + processor.ignoredPaths = ['cde']; processor.$process(docs); expect(docs.pop().urls).toEqual(['abc', 'fgh']); }); @@ -80,4 +80,4 @@ describe('createSitemap processor', () => { }); }); }); -}); \ No newline at end of file +});