From 9f877f44160abccf53361ef0078908f1d3b4209c Mon Sep 17 00:00:00 2001 From: Pete Bacon Darwin Date: Thu, 7 Jun 2018 22:26:14 +0100 Subject: [PATCH] build(docs-infra): ensure stability is computed before the API list (#24356) Previously the API list was being generated before the stability had been computed. This meant that the API list page showed no API docs when filtering by `stable` stability status. Closes #24329 PR Close #24356 --- .../angular-api-package/processors/generateApiListDoc.js | 2 +- .../angular-api-package/processors/generateApiListDoc.spec.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/aio/tools/transforms/angular-api-package/processors/generateApiListDoc.js b/aio/tools/transforms/angular-api-package/processors/generateApiListDoc.js index a4a7ada49e..b36b446904 100644 --- a/aio/tools/transforms/angular-api-package/processors/generateApiListDoc.js +++ b/aio/tools/transforms/angular-api-package/processors/generateApiListDoc.js @@ -1,7 +1,7 @@ module.exports = function generateApiListDoc() { return { - $runAfter: ['extra-docs-added'], + $runAfter: ['extra-docs-added', 'computeStability'], $runBefore: ['rendering-docs'], outputFolder: null, $validate: {outputFolder: {presence: true}}, diff --git a/aio/tools/transforms/angular-api-package/processors/generateApiListDoc.spec.js b/aio/tools/transforms/angular-api-package/processors/generateApiListDoc.spec.js index bbc4108e44..35d9ad000c 100644 --- a/aio/tools/transforms/angular-api-package/processors/generateApiListDoc.spec.js +++ b/aio/tools/transforms/angular-api-package/processors/generateApiListDoc.spec.js @@ -13,7 +13,7 @@ describe('generateApiListDoc processor', () => { it('should run after the correct processor', () => { const processor = processorFactory(); - expect(processor.$runAfter).toEqual(['extra-docs-added']); + expect(processor.$runAfter).toEqual(['extra-docs-added', 'computeStability']); }); it('should run before the correct processor', () => {