File tree Expand file tree Collapse file tree 1 file changed +5
-7
lines changed
Expand file tree Collapse file tree 1 file changed +5
-7
lines changed Original file line number Diff line number Diff line change @@ -308,7 +308,6 @@ var Search = {
308308 linkUrl +
309309 highlightstring + item [ 2 ] ) . html ( item [ 1 ] ) ) ;
310310
311- // headline.append($('<span class="title_doc_section">' + item[6] + '</span>'));
312311 listItem . append ( headline ) ;
313312
314313 if ( item [ 3 ] ) {
@@ -531,12 +530,11 @@ var Search = {
531530 // for better ranking, we should calculate ranking by using words statistics like basic tf-idf...
532531 var score = $u . max ( $u . map ( fileMap [ file ] , function ( w ) { return scoreMap [ file ] [ w ] } ) ) ;
533532
534- function get1stLevelAncestor ( f ) {
535- let parentdocname = docnames [ f ] . split ( '/' ) [ 0 ] + '/index' ;
536- let parentID = docnames . indexOf ( parentdocname ) ;
537- let title = parentID === - 1 ? title_documentation : titles [ parentID ] ;
538- return title
539- }
533+ /**
534+ * Return array with titles of ancestors of file.
535+ * @param {number } idx - The index of the result item in global list of files
536+ * @returns array
537+ */
540538 function getParentTitles ( idx ) {
541539 let path = docnames [ idx ]
542540
You can’t perform that action at this time.
0 commit comments