build(docs-infra): no duplicate docTypes in postProcessHtml processor (#41788)

This processor was being initialized with the same docTypes twice.

PR Close #41788
This commit is contained in:
Pete Bacon Darwin 2021-04-23 15:58:13 +01:00 committed by Jessica Janiuk
parent 9e113f9cc4
commit 2ede980fea
1 changed files with 1 additions and 1 deletions

View File

@ -217,7 +217,7 @@ module.exports =
convertToJsonProcessor.docTypes = convertToJsonProcessor.docTypes =
convertToJsonProcessor.docTypes.concat(API_DOC_TYPES_TO_RENDER); convertToJsonProcessor.docTypes.concat(API_DOC_TYPES_TO_RENDER);
postProcessHtml.docTypes = postProcessHtml.docTypes =
convertToJsonProcessor.docTypes.concat(API_DOC_TYPES_TO_RENDER); postProcessHtml.docTypes.concat(API_DOC_TYPES_TO_RENDER);
autoLinkCode.docTypes = API_DOC_TYPES; autoLinkCode.docTypes = API_DOC_TYPES;
autoLinkCode.codeElements = ['code', 'code-example', 'code-pane']; autoLinkCode.codeElements = ['code', 'code-example', 'code-pane'];
}); });