Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 5 additions & 13 deletions src/js/vendor/docsearch.bundle.js
Original file line number Diff line number Diff line change
Expand Up @@ -299,6 +299,7 @@
return accum
}, {})
)
.filter((a) => a[1].title)
.sort(function (a, b) {
return a[1].title.replace(/^\./, '').localeCompare(b[1].title.replace(/^\./, ''))
})
Expand All @@ -321,20 +322,11 @@
}

function extractComponentVersionInfo (hit) {
var name, title, version
var componentVersion = hit.component_version
if (componentVersion) {
componentVersion = (Array.isArray(componentVersion) ? componentVersion[0] : componentVersion).split('@')
name = componentVersion[0]
version = componentVersion[1]
title = hit.component_title
} else {
name = hit.component
componentVersion = (hit.hierarchy.lvl0 || name).split(/ (?=\d+(?:\.|$))/)
title = componentVersion[0]
version = componentVersion[1]
return {
name: hit.component,
version: hit.cversion,
title: hit.component_title || hit.component || '',
}
return { name: name, version: version, title: title }
}

function renderFilters (components, filters) {
Expand Down
2 changes: 1 addition & 1 deletion src/partials/crumbs-meta.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,4 @@ Logic extracted from crumbs.hbs --}}
{{{page.component.title}}}
{{~/unless~}}
{{~/unless~}}
{{~#each page.breadcrumbs}} / {{{./content}}}{{~/each}}
{{~#each page.breadcrumbs}} {{{./content}}}{{~/each}}