Skip to content

Commit 9f877f4

Browse files
petebacondarwinmhevery
authored andcommitted
build(docs-infra): ensure stability is computed before the API list (angular#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 angular#24329 PR Close angular#24356
1 parent 4664226 commit 9f877f4

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

aio/tools/transforms/angular-api-package/processors/generateApiListDoc.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
module.exports = function generateApiListDoc() {
22

33
return {
4-
$runAfter: ['extra-docs-added'],
4+
$runAfter: ['extra-docs-added', 'computeStability'],
55
$runBefore: ['rendering-docs'],
66
outputFolder: null,
77
$validate: {outputFolder: {presence: true}},

aio/tools/transforms/angular-api-package/processors/generateApiListDoc.spec.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ describe('generateApiListDoc processor', () => {
1313

1414
it('should run after the correct processor', () => {
1515
const processor = processorFactory();
16-
expect(processor.$runAfter).toEqual(['extra-docs-added']);
16+
expect(processor.$runAfter).toEqual(['extra-docs-added', 'computeStability']);
1717
});
1818

1919
it('should run before the correct processor', () => {

0 commit comments

Comments
 (0)