@brillout/docpress 0.3.7 → 0.3.8
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/index.js
CHANGED
|
@@ -294,9 +294,18 @@ var sponsorsList = [
|
|
|
294
294
|
plan: "indie",
|
|
295
295
|
website: "https://inlang.com/"
|
|
296
296
|
},
|
|
297
|
+
{
|
|
298
|
+
username: "ser1us"
|
|
299
|
+
},
|
|
297
300
|
{
|
|
298
301
|
username: "samuelstroschein"
|
|
299
302
|
},
|
|
303
|
+
{
|
|
304
|
+
username: "szarapka"
|
|
305
|
+
},
|
|
306
|
+
{
|
|
307
|
+
username: "techniath"
|
|
308
|
+
},
|
|
300
309
|
{
|
|
301
310
|
username: "DannyZB"
|
|
302
311
|
},
|
|
@@ -543,13 +543,20 @@ function getDocSearchCSS(pageContext) {
|
|
|
543
543
|
}
|
|
544
544
|
var _a;
|
|
545
545
|
function getDocSearchJS(pageContext) {
|
|
546
|
-
const docSearchJS = !pageContext.meta.algolia ? "" : escapeInject(_a || (_a = __template([
|
|
547
|
-
<script type="text/javascript" src="https://cdn.jsdelivr.net/npm/@docsearch/js@alpha"><\/script>
|
|
548
|
-
<script type="text/javascript">
|
|
549
|
-
docsearch({
|
|
550
|
-
appId: '`, "',\n apiKey: '", "',\n indexName: '", "',\n container: '#docsearch-desktop',\n })\n docsearch({\n appId: '", "',\n apiKey: '", "',\n indexName: '", "',\n container: '#docsearch-mobile',\n })\n <\/script>\n "])), pageContext.meta.algolia.appId, pageContext.meta.algolia.apiKey, pageContext.meta.algolia.indexName, pageContext.meta.algolia.appId, pageContext.meta.algolia.apiKey, pageContext.meta.algolia.indexName);
|
|
546
|
+
const docSearchJS = !pageContext.meta.algolia ? "" : escapeInject(_a || (_a = __template(['\n <script type="text/javascript" src="https://cdn.jsdelivr.net/npm/@docsearch/js@alpha"><\/script>\n <script type="text/javascript">\n const transformData = ', ";\n docsearch({\n appId: '", "',\n apiKey: '", "',\n indexName: '", "',\n container: '#docsearch-desktop',\n transformData\n });\n docsearch({\n appId: '", "',\n apiKey: '", "',\n indexName: '", "',\n container: '#docsearch-mobile',\n transformData\n });\n <\/script>\n "])), getTransformData(), pageContext.meta.algolia.appId, pageContext.meta.algolia.apiKey, pageContext.meta.algolia.indexName, pageContext.meta.algolia.appId, pageContext.meta.algolia.apiKey, pageContext.meta.algolia.indexName);
|
|
551
547
|
return docSearchJS;
|
|
552
548
|
}
|
|
549
|
+
function getTransformData() {
|
|
550
|
+
return `function(hits) {
|
|
551
|
+
hits.map(hit => {
|
|
552
|
+
if (hit.anchor === 'page-content') {
|
|
553
|
+
hit.url = hit.url.replace('#'+ hit.anchor, '');
|
|
554
|
+
hit.anchor = null;
|
|
555
|
+
}
|
|
556
|
+
});
|
|
557
|
+
return hits;
|
|
558
|
+
}`;
|
|
559
|
+
}
|
|
553
560
|
|
|
554
561
|
// src/parseEmojis.ts
|
|
555
562
|
import twemoji from "twemoji";
|
package/package.json
CHANGED