build(docs-infra): expose deprecated status on items more clearly (#25750)
PR Close #25750
This commit is contained in:

committed by
Kara Erickson

parent
cea2e0477c
commit
026b60cd70
@ -140,7 +140,8 @@ module.exports = function generateKeywordsProcessor(log, readFilesProcessor) {
|
||||
return Object.assign({
|
||||
path: page.path,
|
||||
title: page.searchTitle,
|
||||
type: page.docType
|
||||
type: page.docType,
|
||||
deprecated: !!page.deprecated,
|
||||
}, page.searchTerms);
|
||||
});
|
||||
|
||||
|
@ -166,7 +166,8 @@ describe('generateKeywords processor', () => {
|
||||
'titleWords':'someclass',
|
||||
'headingWords':'heading some someclass',
|
||||
'keywords':'api class documentation for is someclass the',
|
||||
'members':''
|
||||
'members':'',
|
||||
'deprecated': false,
|
||||
}]
|
||||
);
|
||||
});
|
||||
|
Reference in New Issue
Block a user