@brillout/docpress 0.4.2 → 0.4.3
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/{chunk-Q3E6B5TM.js → chunk-3HBUDECX.js} +1 -1
- package/dist/{chunk-H7GTGR6A.js → chunk-3VVR6QXA.js} +1 -1
- package/dist/{chunk-KH64XPM2.js → chunk-OFUQWIQL.js} +6 -1
- package/dist/cli/index.js +3 -3
- package/dist/{devServer-KXRA4OLE.js → devServer-GP7254OE.js} +2 -2
- package/dist/index.d.ts +1 -0
- package/dist/index.js +5 -2
- package/dist/renderer/_default.page.server.js +2 -2
- package/package.json +1 -1
|
@@ -15,11 +15,16 @@ function filter(obj, predicate) {
|
|
|
15
15
|
|
|
16
16
|
// src/utils/determineSectionUrlHash.ts
|
|
17
17
|
function determineSectionUrlHash(title) {
|
|
18
|
-
|
|
18
|
+
title = title.toLowerCase();
|
|
19
|
+
title = removeAccentsAndDiacritics(title);
|
|
20
|
+
const urlHash = title.split(/[^a-z0-9\u4E00-\u9FA5]+/).filter(Boolean).join("-");
|
|
19
21
|
if (urlHash === "")
|
|
20
22
|
return null;
|
|
21
23
|
return urlHash;
|
|
22
24
|
}
|
|
25
|
+
function removeAccentsAndDiacritics(str) {
|
|
26
|
+
return str.normalize("NFD").replace(/[\u0300-\u036f]/g, "");
|
|
27
|
+
}
|
|
23
28
|
function determineSectionTitle(urlWithHash, titleNormalCase) {
|
|
24
29
|
assert(urlWithHash.includes("#"), { urlWithHash });
|
|
25
30
|
const urlHash = urlWithHash.split("#")[1];
|
package/dist/cli/index.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import {
|
|
2
2
|
vite_config_default
|
|
3
|
-
} from "../chunk-
|
|
4
|
-
import "../chunk-
|
|
3
|
+
} from "../chunk-3HBUDECX.js";
|
|
4
|
+
import "../chunk-OFUQWIQL.js";
|
|
5
5
|
import "../chunk-2ZTPUQGS.js";
|
|
6
6
|
import "../chunk-3QC7HYIF.js";
|
|
7
7
|
|
|
@@ -16,7 +16,7 @@ Error.stackTraceLimit = Infinity;
|
|
|
16
16
|
cli();
|
|
17
17
|
async function cli() {
|
|
18
18
|
if (isDev) {
|
|
19
|
-
await import("../devServer-
|
|
19
|
+
await import("../devServer-GP7254OE.js");
|
|
20
20
|
} else if (isBuild) {
|
|
21
21
|
await build(vite_config_default);
|
|
22
22
|
await build({ ...vite_config_default, build: { ssr: true } });
|
package/dist/index.d.ts
CHANGED
package/dist/index.js
CHANGED
|
@@ -4,7 +4,7 @@ import {
|
|
|
4
4
|
isRepoLink,
|
|
5
5
|
parseTitle,
|
|
6
6
|
usePageContext
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-3VVR6QXA.js";
|
|
8
8
|
import {
|
|
9
9
|
FeatureList
|
|
10
10
|
} from "./chunk-NVJING6T.js";
|
|
@@ -16,7 +16,7 @@ import {
|
|
|
16
16
|
filter,
|
|
17
17
|
jsxToTextContent,
|
|
18
18
|
objectAssign
|
|
19
|
-
} from "./chunk-
|
|
19
|
+
} from "./chunk-OFUQWIQL.js";
|
|
20
20
|
import {
|
|
21
21
|
assert,
|
|
22
22
|
assertUsage,
|
|
@@ -267,6 +267,9 @@ var inlang_default = "/assets/inlang-GFRWND6X.png";
|
|
|
267
267
|
|
|
268
268
|
// src/components/Sponsors/sponsorsList.ts
|
|
269
269
|
var individuals = [
|
|
270
|
+
{
|
|
271
|
+
username: "EJM-Company"
|
|
272
|
+
},
|
|
270
273
|
{
|
|
271
274
|
username: "Nelie-Taylor"
|
|
272
275
|
},
|
|
@@ -4,12 +4,12 @@ import {
|
|
|
4
4
|
getHeadings,
|
|
5
5
|
parseTitle,
|
|
6
6
|
usePageContext
|
|
7
|
-
} from "../chunk-
|
|
7
|
+
} from "../chunk-3VVR6QXA.js";
|
|
8
8
|
import {
|
|
9
9
|
Emoji,
|
|
10
10
|
jsxToTextContent,
|
|
11
11
|
objectAssign
|
|
12
|
-
} from "../chunk-
|
|
12
|
+
} from "../chunk-OFUQWIQL.js";
|
|
13
13
|
import {
|
|
14
14
|
assert,
|
|
15
15
|
assertUsage,
|