diff --git a/aio/tools/transforms/angular-base-package/processors/disambiguateDocPaths.js b/aio/tools/transforms/angular-base-package/processors/disambiguateDocPaths.js index 2f3d01b624..0a070a26be 100644 --- a/aio/tools/transforms/angular-base-package/processors/disambiguateDocPaths.js +++ b/aio/tools/transforms/angular-base-package/processors/disambiguateDocPaths.js @@ -18,7 +18,7 @@ module.exports = function disambiguateDocPathsProcessor(log) { return { $runAfter: ['paths-computed'], - $runBefore: ['rendering-docs'], + $runBefore: ['rendering-docs', 'createSitemap'], $process(docs) { // Collect all the ambiguous docs, whose outputPath is are only different by casing. const ambiguousDocMap = new Map(); diff --git a/aio/tools/transforms/angular-base-package/processors/disambiguateDocPaths.spec.js b/aio/tools/transforms/angular-base-package/processors/disambiguateDocPaths.spec.js index 6bcd5995bc..22eae728c1 100644 --- a/aio/tools/transforms/angular-base-package/processors/disambiguateDocPaths.spec.js +++ b/aio/tools/transforms/angular-base-package/processors/disambiguateDocPaths.spec.js @@ -22,6 +22,10 @@ describe('disambiguateDocPaths processor', () => { expect(processor).toBeDefined(); }); + it('should be run before creating the sitemap', () => { + expect(processor.$runBefore).toContain('createSitemap'); + }); + it('should create `disambiguator` documents for docs that have ambiguous outputPaths', () => { const numDocs = docs.length; processor.$process(docs);