angular-docs-cn/aio/tools/transforms/angular-base-package
George Kalpakas 35fdc6d92f build(docs-infra): ignore `doc.basePath` when generating keywords for each document (#39409)
The `generateKeywords` dgeni processor automatically generates keywords
for each document by extracting words from each string property of a
`doc` object.

This commit adds `basePath` to the list of ignored properties, so that
it is _not_ considered when generating keywords. `basePath` mostly
contains the path to some root directory (such as
`/home/circleci/ng/packages`) and as such it does not contain useful
keywords.

For example, searching for `circleci` will match all API docs, because
it happens to be in the `basePath`:
https://v10.angular.io/?search=circleci

PR Close #39409
2020-10-26 10:52:00 -07:00
..
inline-tag-defs/custom-search-defs build(docs-infra): remove `{@searchKeywords}` from content when rendering (#37132) 2020-05-15 10:04:45 -07:00
post-processors refactor(docs-infra): refactors `addImageDimensionsImpl` (#37046) 2020-05-14 10:48:01 -07:00
processors test(docs-infra): remove usage of blacklist in test naming (#38927) 2020-09-23 15:46:02 -04:00
readers
rendering build(docs-infra): include directives etc in class descendants lists (#25768) 2018-10-01 09:36:33 -07:00
services fixup!: build(docs-infra): add _ to ignored ignoreGenericWords (#36316) 2020-04-17 12:33:55 -04:00
ignore.words
index.js build(docs-infra): ignore `doc.basePath` when generating keywords for each document (#39409) 2020-10-26 10:52:00 -07:00