Skip to content

Commit

Permalink
Deploying to gh-pages from @ 9db06b5 🚀
Browse files Browse the repository at this point in the history
  • Loading branch information
dcermak committed Feb 19, 2025
1 parent 43d5c4e commit bb6c68a
Show file tree
Hide file tree
Showing 9 changed files with 134 additions and 131 deletions.
13 changes: 8 additions & 5 deletions _static/searchtools.js
Original file line number Diff line number Diff line change
Expand Up @@ -513,9 +513,11 @@ const Search = {
// perform the search on the required terms
searchTerms.forEach((word) => {
const files = [];
// find documents, if any, containing the query word in their text/title term indices
// use Object.hasOwnProperty to avoid mismatching against prototype properties
const arr = [
{ files: terms[word], score: Scorer.term },
{ files: titleTerms[word], score: Scorer.title },
{ files: terms.hasOwnProperty(word) ? terms[word] : undefined, score: Scorer.term },
{ files: titleTerms.hasOwnProperty(word) ? titleTerms[word] : undefined, score: Scorer.title },
];
// add support for partial matches
if (word.length > 2) {
Expand Down Expand Up @@ -547,8 +549,9 @@ const Search = {

// set score for the word in each file
recordFiles.forEach((file) => {
if (!scoreMap.has(file)) scoreMap.set(file, {});
scoreMap.get(file)[word] = record.score;
if (!scoreMap.has(file)) scoreMap.set(file, new Map());
const fileScores = scoreMap.get(file);
fileScores.set(word, record.score);
});
});

Expand Down Expand Up @@ -587,7 +590,7 @@ const Search = {
break;

// select one (max) score for the file.
const score = Math.max(...wordList.map((w) => scoreMap.get(file)[w]));
const score = Math.max(...wordList.map((w) => scoreMap.get(file).get(w)));
// add result to the result list
results.push([
docNames[file],
Expand Down
2 changes: 1 addition & 1 deletion adding_containers.html
Original file line number Diff line number Diff line change
Expand Up @@ -277,7 +277,7 @@ <h3>Related Topics</h3>
&#169;2025, SUSE LLC.

|
Powered by <a href="https://www.sphinx-doc.org/">Sphinx 8.1.3</a>
Powered by <a href="https://www.sphinx-doc.org/">Sphinx 8.2.0</a>
&amp; <a href="https://alabaster.readthedocs.io">Alabaster 1.0.0</a>

|
Expand Down
238 changes: 119 additions & 119 deletions api.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion genindex.html
Original file line number Diff line number Diff line change
Expand Up @@ -852,7 +852,7 @@ <h3>Related Topics</h3>
&#169;2025, SUSE LLC.

|
Powered by <a href="https://www.sphinx-doc.org/">Sphinx 8.1.3</a>
Powered by <a href="https://www.sphinx-doc.org/">Sphinx 8.2.0</a>
&amp; <a href="https://alabaster.readthedocs.io">Alabaster 1.0.0</a>

</div>
Expand Down
2 changes: 1 addition & 1 deletion index.html
Original file line number Diff line number Diff line change
Expand Up @@ -227,7 +227,7 @@ <h3>Related Topics</h3>
&#169;2025, SUSE LLC.

|
Powered by <a href="https://www.sphinx-doc.org/">Sphinx 8.1.3</a>
Powered by <a href="https://www.sphinx-doc.org/">Sphinx 8.2.0</a>
&amp; <a href="https://alabaster.readthedocs.io">Alabaster 1.0.0</a>

|
Expand Down
2 changes: 1 addition & 1 deletion py-modindex.html
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,7 @@ <h3>Related Topics</h3>
&#169;2025, SUSE LLC.

|
Powered by <a href="https://www.sphinx-doc.org/">Sphinx 8.1.3</a>
Powered by <a href="https://www.sphinx-doc.org/">Sphinx 8.2.0</a>
&amp; <a href="https://alabaster.readthedocs.io">Alabaster 1.0.0</a>

</div>
Expand Down
2 changes: 1 addition & 1 deletion search.html
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ <h3>Related Topics</h3>
&#169;2025, SUSE LLC.

|
Powered by <a href="https://www.sphinx-doc.org/">Sphinx 8.1.3</a>
Powered by <a href="https://www.sphinx-doc.org/">Sphinx 8.2.0</a>
&amp; <a href="https://alabaster.readthedocs.io">Alabaster 1.0.0</a>

</div>
Expand Down
2 changes: 1 addition & 1 deletion searchindex.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion staging_bot.html
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,7 @@ <h3>Related Topics</h3>
&#169;2025, SUSE LLC.

|
Powered by <a href="https://www.sphinx-doc.org/">Sphinx 8.1.3</a>
Powered by <a href="https://www.sphinx-doc.org/">Sphinx 8.2.0</a>
&amp; <a href="https://alabaster.readthedocs.io">Alabaster 1.0.0</a>

|
Expand Down

0 comments on commit bb6c68a

Please sign in to comment.