Skip to content

Commit f05e44b

Browse files
committed
Only index searchable items.
1 parent a5e8623 commit f05e44b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/SourceBrowser.Generator/Transformers/SearchIndexTransformer.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ public SearchIndexTransformer(string username, string repository)
2323
protected override void VisitDocument(DocumentModel documentModel)
2424
{
2525
var documentId = Path.Combine(_username, _repository, documentModel.RelativePath);
26-
var declarations = documentModel.Tokens.Where(n => n.IsDeclaration);
26+
var declarations = documentModel.Tokens.Where(n => n.IsDeclaration && n.IsSearchable);
2727

2828
foreach(var declaration in declarations)
2929
{

0 commit comments

Comments
 (0)