From 180c1b555fb8fa07533ae2851ab303e6301ca169 Mon Sep 17 00:00:00 2001 From: George Kalpakas Date: Sat, 3 Apr 2021 20:42:29 +0300 Subject: [PATCH] fix(docs-infra): avoid auto-linking generic word `state` (#41438) Since `state` is a generic word, this commit adds it to the list of ignored words for auto-linking to avoid incorrectly auto-linking to the [state()][1] animation helper. For example, see `/ngsw/state` in the [ServiceWorker in production][2] guide. [1]: https://v10.angular.io/api/animations/state [2]: https://v10.angular.io/guide/service-worker-devops#locating-and-analyzing-debugging-information PR Close #41438 --- .../services/auto-link-filters/ignoreGenericWords.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/aio/tools/transforms/angular-base-package/services/auto-link-filters/ignoreGenericWords.js b/aio/tools/transforms/angular-base-package/services/auto-link-filters/ignoreGenericWords.js index c1c84b821e..10b0b0c689 100644 --- a/aio/tools/transforms/angular-base-package/services/auto-link-filters/ignoreGenericWords.js +++ b/aio/tools/transforms/angular-base-package/services/auto-link-filters/ignoreGenericWords.js @@ -5,6 +5,6 @@ */ module.exports = function ignoreGenericWords() { - const ignoredWords = new Set(['a', 'classes', 'create', 'error', 'group', 'request', 'target', 'value', '_']); + const ignoredWords = new Set(['a', 'classes', 'create', 'error', 'group', 'request', 'state', 'target', 'value', '_']); return (docs, words, index) => ignoredWords.has(words[index].toLowerCase()) ? [] : docs; };