@brillout/docpress 0.3.6 → 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
|
@@ -256,8 +256,8 @@ var burdaforward_default = "/assets/burdaforward-EUGURYZY.png";
|
|
|
256
256
|
// src/components/Sponsors/companyLogos/inlang.png
|
|
257
257
|
var inlang_default = "/assets/inlang-GFRWND6X.png";
|
|
258
258
|
|
|
259
|
-
// src/components/Sponsors/
|
|
260
|
-
var
|
|
259
|
+
// src/components/Sponsors/sponsorsList.ts
|
|
260
|
+
var sponsorsList = [
|
|
261
261
|
{
|
|
262
262
|
companyName: "BurdaFoward",
|
|
263
263
|
companyLogo: burdaforward_default,
|
|
@@ -294,9 +294,18 @@ var sponsorList = [
|
|
|
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
|
},
|
|
@@ -330,8 +339,8 @@ var sponsorList = [
|
|
|
330
339
|
function Sponsors() {
|
|
331
340
|
const pageContext = usePageContext();
|
|
332
341
|
const { projectInfo } = pageContext.config;
|
|
333
|
-
const sponsorsCompany =
|
|
334
|
-
const sponsorsHumanidual =
|
|
342
|
+
const sponsorsCompany = sponsorsList.filter((sponsor) => !("username" in sponsor));
|
|
343
|
+
const sponsorsHumanidual = sponsorsList.filter((sponsor) => "username" in sponsor);
|
|
335
344
|
return /* @__PURE__ */ React9.createElement("div", {
|
|
336
345
|
style: { textAlign: "center", marginTop: 19 }
|
|
337
346
|
}, /* @__PURE__ */ React9.createElement("a", {
|
|
@@ -357,7 +357,7 @@ function MobileHeader() {
|
|
|
357
357
|
}
|
|
358
358
|
function MenuToggle() {
|
|
359
359
|
return /* @__PURE__ */ React4.createElement("div", {
|
|
360
|
-
style: { padding: 20, lineHeight: 0 },
|
|
360
|
+
style: { padding: 20, lineHeight: 0, cursor: "pointer" },
|
|
361
361
|
id: "menu-toggle"
|
|
362
362
|
}, /* @__PURE__ */ React4.createElement("svg", {
|
|
363
363
|
style: { width: 20 },
|
|
@@ -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