@brillout/docpress 0.4.2 → 0.4.4
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-H7GTGR6A.js → chunk-3VVR6QXA.js} +1 -1
- package/dist/{chunk-KH64XPM2.js → chunk-OFUQWIQL.js} +6 -1
- package/dist/{chunk-Q3E6B5TM.js → chunk-PWCIRBXY.js} +3 -3
- package/dist/cli/index.js +3 -3
- package/dist/{devServer-KXRA4OLE.js → devServer-P3BMS7IP.js} +2 -2
- package/dist/index.d.ts +1 -0
- package/dist/index.js +14 -2
- package/dist/renderer/_default.page.server.js +2 -2
- package/package.json +2 -2
|
@@ -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];
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
determineSectionUrlHash
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-OFUQWIQL.js";
|
|
4
4
|
import {
|
|
5
5
|
assert
|
|
6
6
|
} from "./chunk-2ZTPUQGS.js";
|
|
@@ -133,9 +133,9 @@ var remarkPlugins = [remarkGfm];
|
|
|
133
133
|
var config = {
|
|
134
134
|
root,
|
|
135
135
|
plugins: [
|
|
136
|
-
react(),
|
|
137
136
|
markdownHeadingsVitePlugin(),
|
|
138
137
|
mdx({ rehypePlugins, remarkPlugins }),
|
|
138
|
+
react(),
|
|
139
139
|
ssr({
|
|
140
140
|
prerender: {
|
|
141
141
|
noExtraDir: true
|
|
@@ -154,7 +154,7 @@ var config = {
|
|
|
154
154
|
disableAutoFullBuild: true
|
|
155
155
|
})
|
|
156
156
|
],
|
|
157
|
-
optimizeDeps: { include: ["@mdx-js/react", "react
|
|
157
|
+
optimizeDeps: { include: ["@mdx-js/react", "react-dom"] },
|
|
158
158
|
ssr: {
|
|
159
159
|
noExternal: ["@brillout/docpress"]
|
|
160
160
|
},
|
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-PWCIRBXY.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-P3BMS7IP.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,18 @@ var inlang_default = "/assets/inlang-GFRWND6X.png";
|
|
|
267
267
|
|
|
268
268
|
// src/components/Sponsors/sponsorsList.ts
|
|
269
269
|
var individuals = [
|
|
270
|
+
{
|
|
271
|
+
username: "gu-stav"
|
|
272
|
+
},
|
|
273
|
+
{
|
|
274
|
+
username: "YannBirba"
|
|
275
|
+
},
|
|
276
|
+
{
|
|
277
|
+
username: "fi3ework"
|
|
278
|
+
},
|
|
279
|
+
{
|
|
280
|
+
username: "EJM-Company"
|
|
281
|
+
},
|
|
270
282
|
{
|
|
271
283
|
username: "Nelie-Taylor"
|
|
272
284
|
},
|
|
@@ -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,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@brillout/docpress",
|
|
3
|
-
"version": "0.4.
|
|
3
|
+
"version": "0.4.4",
|
|
4
4
|
"scripts": {
|
|
5
5
|
"// Check types while developing": "",
|
|
6
6
|
"types": "tsc --noEmit --watch",
|
|
@@ -16,7 +16,7 @@
|
|
|
16
16
|
"@mdx-js/mdx": "^2.0.0",
|
|
17
17
|
"@mdx-js/react": "^2.0.0",
|
|
18
18
|
"@mdx-js/rollup": "^2.0.0",
|
|
19
|
-
"@vitejs/plugin-react-swc": "^3.
|
|
19
|
+
"@vitejs/plugin-react-swc": "^3.3.0",
|
|
20
20
|
"balloon-css": "^1.2.0",
|
|
21
21
|
"express": "^4.17.1",
|
|
22
22
|
"rehype-pretty-code": "^0.3.2",
|