Skip to content
This repository was archived by the owner on Jun 3, 2025. It is now read-only.

Commit 9426515

Browse files
dhuangnmjenkinsnm
andauthored
rebuild docs based on latest repos (#21)
Co-authored-by: Jenkins <[email protected]>
1 parent 946a3fc commit 9426515

File tree

170 files changed

+10519
-20400
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

170 files changed

+10519
-20400
lines changed

_static/pygments.css

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,5 @@
1-
pre { line-height: 125%; }
2-
td.linenos pre { color: #000000; background-color: #f0f0f0; padding-left: 5px; padding-right: 5px; }
3-
span.linenos { color: #000000; background-color: #f0f0f0; padding-left: 5px; padding-right: 5px; }
4-
td.linenos pre.special { color: #000000; background-color: #ffffc0; padding-left: 5px; padding-right: 5px; }
5-
span.linenos.special { color: #000000; background-color: #ffffc0; padding-left: 5px; padding-right: 5px; }
61
.highlight .hll { background-color: #ffffcc }
7-
.highlight { background: #eeffcc; }
2+
.highlight { background: #eeffcc; }
83
.highlight .c { color: #408090; font-style: italic } /* Comment */
94
.highlight .err { border: 1px solid #FF0000 } /* Error */
105
.highlight .k { color: #007020; font-weight: bold } /* Keyword */

deepsparse/.buildinfo

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
# Sphinx build info version 1
22
# This file hashes the configuration used when building these files. When it is not found, a full rebuild will be done.
3-
config: c0e84c5bd7f1ae1547decebf78328f3b
3+
config: 09cf2dae090a5215faeb91fd805fe11e
44
tags: 645f666f9bcd5a90fca523b33c5a78b7

deepsparse/_static/doctools.js

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,9 +29,14 @@ if (!window.console || !console.firebug) {
2929

3030
/**
3131
* small helper function to urldecode strings
32+
*
33+
* See https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/decodeURIComponent#Decoding_query_parameters_from_a_URL
3234
*/
3335
jQuery.urldecode = function(x) {
34-
return decodeURIComponent(x).replace(/\+/g, ' ');
36+
if (!x) {
37+
return x
38+
}
39+
return decodeURIComponent(x.replace(/\+/g, ' '));
3540
};
3641

3742
/**

deepsparse/_static/language_data.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,8 @@
1313
var stopwords = ["a","and","are","as","at","be","but","by","for","if","in","into","is","it","near","no","not","of","on","or","such","that","the","their","then","there","these","they","this","to","was","will","with"];
1414

1515

16-
/* Non-minified version JS is _stemmer.js if file is provided */
16+
/* Non-minified version is copied as a separate JS file, is available */
17+
1718
/**
1819
* Porter Stemmer
1920
*/
@@ -199,7 +200,6 @@ var Stemmer = function() {
199200

200201

201202

202-
203203
var splitChars = (function() {
204204
var result = {};
205205
var singles = [96, 180, 187, 191, 215, 247, 749, 885, 903, 907, 909, 930, 1014, 1648,

deepsparse/_static/pygments.css

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
pre { line-height: 125%; }
2-
td.linenos pre { color: #000000; background-color: #f0f0f0; padding-left: 5px; padding-right: 5px; }
3-
span.linenos { color: #000000; background-color: #f0f0f0; padding-left: 5px; padding-right: 5px; }
4-
td.linenos pre.special { color: #000000; background-color: #ffffc0; padding-left: 5px; padding-right: 5px; }
2+
td.linenos .normal { color: inherit; background-color: transparent; padding-left: 5px; padding-right: 5px; }
3+
span.linenos { color: inherit; background-color: transparent; padding-left: 5px; padding-right: 5px; }
4+
td.linenos .special { color: #000000; background-color: #ffffc0; padding-left: 5px; padding-right: 5px; }
55
span.linenos.special { color: #000000; background-color: #ffffc0; padding-left: 5px; padding-right: 5px; }
66
.highlight .hll { background-color: #ffffcc }
77
.highlight { background: #eeffcc; }

deepsparse/_static/searchtools.js

Lines changed: 17 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -248,7 +248,7 @@ var Search = {
248248
// results left, load the summary and display it
249249
if (results.length) {
250250
var item = results.pop();
251-
var listItem = $('<li style="display:none"></li>');
251+
var listItem = $('<li></li>');
252252
var requestUrl = "";
253253
var linkUrl = "";
254254
if (DOCUMENTATION_OPTIONS.BUILDER === 'dirhtml') {
@@ -273,9 +273,9 @@ var Search = {
273273
if (item[3]) {
274274
listItem.append($('<span> (' + item[3] + ')</span>'));
275275
Search.output.append(listItem);
276-
listItem.slideDown(5, function() {
276+
setTimeout(function() {
277277
displayNextItem();
278-
});
278+
}, 5);
279279
} else if (DOCUMENTATION_OPTIONS.HAS_SOURCE) {
280280
$.ajax({url: requestUrl,
281281
dataType: "text",
@@ -285,16 +285,16 @@ var Search = {
285285
listItem.append(Search.makeSearchSummary(data, searchterms, hlterms));
286286
}
287287
Search.output.append(listItem);
288-
listItem.slideDown(5, function() {
288+
setTimeout(function() {
289289
displayNextItem();
290-
});
290+
}, 5);
291291
}});
292292
} else {
293293
// no source available, just display title
294294
Search.output.append(listItem);
295-
listItem.slideDown(5, function() {
295+
setTimeout(function() {
296296
displayNextItem();
297-
});
297+
}, 5);
298298
}
299299
}
300300
// search finished, update title and status message
@@ -379,6 +379,13 @@ var Search = {
379379
return results;
380380
},
381381

382+
/**
383+
* See https://developer.mozilla.org/en-US/docs/Web/JavaScript/Guide/Regular_Expressions
384+
*/
385+
escapeRegExp : function(string) {
386+
return string.replace(/[.*+\-?^${}()|[\]\\]/g, '\\$&'); // $& means the whole matched string
387+
},
388+
382389
/**
383390
* search for full-text terms in the index
384391
*/
@@ -402,13 +409,14 @@ var Search = {
402409
];
403410
// add support for partial matches
404411
if (word.length > 2) {
412+
var word_regex = this.escapeRegExp(word);
405413
for (var w in terms) {
406-
if (w.match(word) && !terms[word]) {
414+
if (w.match(word_regex) && !terms[word]) {
407415
_o.push({files: terms[w], score: Scorer.partialTerm})
408416
}
409417
}
410418
for (var w in titleterms) {
411-
if (w.match(word) && !titleterms[word]) {
419+
if (w.match(word_regex) && !titleterms[word]) {
412420
_o.push({files: titleterms[w], score: Scorer.partialTitle})
413421
}
414422
}

0 commit comments

Comments
 (0)