Skip to content

Commit

Permalink
docs: remove deprecated import paths from search results
Browse files Browse the repository at this point in the history
  • Loading branch information
tmair committed Oct 1, 2022
1 parent 067a6d5 commit ecabaed
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
'use strict';

/* eslint-disable */

/**
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit ecabaed

Please sign in to comment.