mirror of
https://github.com/sphinx-doc/sphinx.git
synced 2025-02-25 18:55:22 -06:00
search: use both title and subtitle only if different (#10848)
This commit is contained in:
parent
25cbe68c11
commit
73a1ee4560
@ -286,7 +286,7 @@ const Search = {
|
||||
let score = Math.round(100 * queryLower.length / title.length)
|
||||
results.push([
|
||||
docNames[file],
|
||||
`${titles[file]} > ${title}`,
|
||||
titles[file] !== title ? `${titles[file]} > ${title}` : title,
|
||||
id !== null ? "#" + id : "",
|
||||
null,
|
||||
score,
|
||||
|
Loading…
Reference in New Issue
Block a user