typedoc-theme-oxide 0.1.11 → 0.1.13
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/assets/index.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["style.css"],"names":[],"mappings":"AAAA;EACE,cAAc;AAChB;;AAEA;EACE,aAAa;AACf;;AAEA;EACE,qDAAqD;AACvD;;AAEA;EACE,aAAa;AACf;;AAEA;EACE,cAAc;EACd,WAAW;AACb;;AAEA;EACE,kBAAkB;AACpB;;AAEA;EACE,mBAAmB;EACnB,0DAA0D;AAC5D;;AAEA;EACE,mBAAmB;EACnB,qBAAqB;AACvB;;AAEA;EACE,qBAAqB;AACvB;;AAEA;EACE,UAAU;EACV,sBAAsB;AACxB","file":"index.css","sourcesContent":[":target {\n display: block;\n}\n\n.tsd-anchor-icon {\n display: none;\n}\n\n.docblock {\n --code-background: var(--code-block-background-color);\n}\n\n.docblock pre > button {\n display: none;\n}\n\noxide-search-results .search-results.active {\n display: table;\n width: 100%;\n}\n\noxide-search-results .search-results.active > a {\n display: table-row;\n}\n\noxide-search-results .search-results.active .result-name {\n display: table-cell;\n border-bottom: 1px solid var(--search-result-border-color);\n}\n\noxide-search-results .search-results.active .result-name .typename {\n white-space: nowrap;\n padding-right: 1.5rem;\n}\n\noxide-search-results .search-results.active .result-name .path span {\n display: inline-block;\n}\n\noxide-search-results .search-results.active .result-name:first-child {\n width: 1px;\n vertical-align: middle;\n}\n"]}
|
|
1
|
+
{"version":3,"sources":["style.css"],"names":[],"mappings":"AAAA;EACE,cAAc;AAChB;;AAEA;EACE,aAAa;AACf;;AAEA;EACE,qDAAqD;AACvD;;AAEA;EACE,aAAa;AACf;;AAEA;EACE,WAAW;AACb;;AAEA;EACE,aAAa;AACf;;AAEA;EACE,cAAc;EACd,WAAW;AACb;;AAEA;EACE,kBAAkB;AACpB;;AAEA;EACE,mBAAmB;EACnB,0DAA0D;AAC5D;;AAEA;EACE,mBAAmB;EACnB,qBAAqB;AACvB;;AAEA;EACE,qBAAqB;AACvB;;AAEA;EACE,UAAU;EACV,sBAAsB;AACxB","file":"index.css","sourcesContent":[":target {\n display: block;\n}\n\n.tsd-anchor-icon {\n display: none;\n}\n\n.docblock {\n --code-background: var(--code-block-background-color);\n}\n\n.docblock pre > button {\n display: none;\n}\n\nrustdoc-toolbar #help-button .shortcuts {\n width: 100%;\n}\n\nrustdoc-toolbar #help-button .info {\n display: none;\n}\n\noxide-search-results .search-results.active {\n display: table;\n width: 100%;\n}\n\noxide-search-results .search-results.active > a {\n display: table-row;\n}\n\noxide-search-results .search-results.active .result-name {\n display: table-cell;\n border-bottom: 1px solid var(--search-result-border-color);\n}\n\noxide-search-results .search-results.active .result-name .typename {\n white-space: nowrap;\n padding-right: 1.5rem;\n}\n\noxide-search-results .search-results.active .result-name .path span {\n display: inline-block;\n}\n\noxide-search-results .search-results.active .result-name:first-child {\n width: 1px;\n vertical-align: middle;\n}\n"]}
|
package/dist/assets/index.js
CHANGED
|
@@ -2635,13 +2635,18 @@
|
|
|
2635
2635
|
});
|
|
2636
2636
|
}
|
|
2637
2637
|
|
|
2638
|
+
async function loadDeflateData(url) {
|
|
2639
|
+
const response = await fetch(url);
|
|
2640
|
+
const blob = await response.blob();
|
|
2641
|
+
const stream = blob.stream().pipeThrough(new DecompressionStream('deflate'));
|
|
2642
|
+
return await new Response(stream).json();
|
|
2643
|
+
}
|
|
2638
2644
|
async function loadSearchIndex() {
|
|
2639
2645
|
const index = createSearchDocument();
|
|
2640
|
-
const base = `${document.documentElement.dataset.base}assets/oxide
|
|
2641
|
-
const parts = await (
|
|
2642
|
-
for (const
|
|
2643
|
-
|
|
2644
|
-
index.import(part, data);
|
|
2646
|
+
const base = `${document.documentElement.dataset.base}assets/oxide`;
|
|
2647
|
+
const parts = await loadDeflateData(`${base}/search-index.defalte`);
|
|
2648
|
+
for (const [key, data] of Object.entries(parts)) {
|
|
2649
|
+
index.import(key, data);
|
|
2645
2650
|
}
|
|
2646
2651
|
return index;
|
|
2647
2652
|
}
|