Skip to content

Commit

Permalink
deploy: 11d443b
Browse files Browse the repository at this point in the history
  • Loading branch information
stefanseefeld committed Sep 18, 2024
1 parent fe9747d commit 7eea786
Show file tree
Hide file tree
Showing 13 changed files with 4 additions and 3 deletions.
Binary file modified doc/develop/html/.doctrees/cli.doctree
Binary file not shown.
Binary file modified doc/develop/html/.doctrees/glossary.doctree
Binary file not shown.
Binary file modified doc/develop/html/.doctrees/reference/action.doctree
Binary file not shown.
Binary file modified doc/develop/html/.doctrees/reference/actions.doctree
Binary file not shown.
Binary file modified doc/develop/html/.doctrees/reference/artefact.doctree
Binary file not shown.
Binary file modified doc/develop/html/.doctrees/reference/config.doctree
Binary file not shown.
Binary file modified doc/develop/html/.doctrees/reference/feature.doctree
Binary file not shown.
Binary file modified doc/develop/html/.doctrees/reference/features.doctree
Binary file not shown.
Binary file modified doc/develop/html/.doctrees/reference/rule.doctree
Binary file not shown.
Binary file modified doc/develop/html/.doctrees/reference/test.doctree
Binary file not shown.
Binary file modified doc/develop/html/.doctrees/reference/tool.doctree
Binary file not shown.
Binary file modified doc/develop/html/.doctrees/reference/tools.doctree
Binary file not shown.
7 changes: 4 additions & 3 deletions doc/develop/html/_static/searchtools.js
Original file line number Diff line number Diff line change
Expand Up @@ -178,7 +178,7 @@ const Search = {

htmlToText: (htmlString, anchor) => {
const htmlElement = new DOMParser().parseFromString(htmlString, 'text/html');
for (const removalQuery of [".headerlinks", "script", "style"]) {
for (const removalQuery of [".headerlink", "script", "style"]) {
htmlElement.querySelectorAll(removalQuery).forEach((el) => { el.remove() });
}
if (anchor) {
Expand Down Expand Up @@ -328,13 +328,14 @@ const Search = {
for (const [title, foundTitles] of Object.entries(allTitles)) {
if (title.toLowerCase().trim().includes(queryLower) && (queryLower.length >= title.length/2)) {
for (const [file, id] of foundTitles) {
let score = Math.round(100 * queryLower.length / title.length)
const score = Math.round(Scorer.title * queryLower.length / title.length);
const boost = titles[file] === title ? 1 : 0; // add a boost for document titles
normalResults.push([
docNames[file],
titles[file] !== title ? `${titles[file]} > ${title}` : title,
id !== null ? "#" + id : "",
null,
score,
score + boost,
filenames[file],
]);
}
Expand Down

0 comments on commit 7eea786

Please sign in to comment.