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
This commit is contained in:
Pete Bacon Darwin 2018-06-07 22:26:14 +01:00 committed by Miško Hevery
parent 4664226b97
commit 9f877f4416
2 changed files with 2 additions and 2 deletions

View File

@ -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}},

View File

@ -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', () => {