From ecabaed89eb10035263a627c14d702ac6f52ecf0 Mon Sep 17 00:00:00 2001 From: tmair Date: Sat, 1 Oct 2022 17:21:30 +0000 Subject: [PATCH] docs: remove deprecated import paths from search results --- .../angular-base-package/processors/generateKeywords.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/docs_app/tools/transforms/angular-base-package/processors/generateKeywords.js b/docs_app/tools/transforms/angular-base-package/processors/generateKeywords.js index fe2b4235a1..50a2376d27 100644 --- a/docs_app/tools/transforms/angular-base-package/processors/generateKeywords.js +++ b/docs_app/tools/transforms/angular-base-package/processors/generateKeywords.js @@ -1,4 +1,4 @@ -'use strict'; + /* eslint-disable */ /** @@ -41,7 +41,9 @@ module.exports = function generateKeywordsProcessor(log) { // We are not interested in some docTypes .filter((doc) => !docTypesToIgnore.has(doc.docType)) // Ignore internals and private exports (indicated by the ɵ prefix) - .filter((doc) => !doc.internal && !doc.privateExport); + .filter((doc) => !doc.internal && !doc.privateExport) + // Ignore duplicates and remove the `/api/operators/` path entries from the search results + .filter((doc) => doc.path.indexOf('api/operators/') !== 0); for (const doc of filteredDocs) { // Search each top level property of the document for search terms