File tree Expand file tree Collapse file tree 1 file changed +12
-0
lines changed Expand file tree Collapse file tree 1 file changed +12
-0
lines changed Original file line number Diff line number Diff line change @@ -158,6 +158,12 @@ const exploreSearchableContent = (
158
158
const content : SearchableContent [ ] = [ ] ;
159
159
if ( state . status === "ok" ) {
160
160
state . toolkit . contents ?. forEach ( ( t ) => {
161
+ content . push ( {
162
+ id : t . slug . current ,
163
+ title : t . name ,
164
+ containerTitle : t . name ,
165
+ content : t . subtitle + ".\n\n" + blocksToText ( t . introduction ) ,
166
+ } ) ;
161
167
t . contents ?. forEach ( ( e ) => {
162
168
const contentString = blocksToText ( e . content ) ;
163
169
const detailContentString = blocksToText ( e . detailContent ) ;
@@ -193,6 +199,12 @@ const referenceSearchableContent = (
193
199
} ;
194
200
if ( toolkit ) {
195
201
for ( const module of Object . values ( toolkit ) ) {
202
+ content . push ( {
203
+ id : module . id ,
204
+ title : module . fullName ,
205
+ containerTitle : module . fullName ,
206
+ content : validateString ( module . docString ) ,
207
+ } ) ;
196
208
addNestedDocs ( module . fullName , module . children ) ;
197
209
}
198
210
}
You can’t perform that action at this time.
0 commit comments