@rspress/shared 1.18.0 → 1.18.2
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.d.ts +4 -0
- package/dist/index.js +1 -2
- package/dist/index.mjs +1 -2
- package/package.json +2 -2
package/dist/index.d.ts
CHANGED
@@ -663,6 +663,10 @@ interface SearchHooks {
|
|
663
663
|
}
|
664
664
|
type LocalSearchOptions = SearchHooks & {
|
665
665
|
mode?: 'local';
|
666
|
+
/**
|
667
|
+
* Whether to generate separate search index for each version
|
668
|
+
*/
|
669
|
+
versioned?: boolean;
|
666
670
|
};
|
667
671
|
type RemoteSearchIndexInfo = string | {
|
668
672
|
value: string;
|
package/dist/index.js
CHANGED
@@ -1269,8 +1269,7 @@ function normalizeHref(url, cleanUrls = false) {
|
|
1269
1269
|
return url;
|
1270
1270
|
}
|
1271
1271
|
let { url: cleanUrl2, hash } = parseUrl(decodeURIComponent(url));
|
1272
|
-
|
1273
|
-
if (!cleanUrls && !cleanUrl2.endsWith(".html") && !hasExt) {
|
1272
|
+
if (!cleanUrls && !cleanUrl2.endsWith(".html")) {
|
1274
1273
|
if (cleanUrl2.endsWith("/")) {
|
1275
1274
|
cleanUrl2 += "index.html";
|
1276
1275
|
} else {
|
package/dist/index.mjs
CHANGED
@@ -1211,8 +1211,7 @@ function normalizeHref(url, cleanUrls = false) {
|
|
1211
1211
|
return url;
|
1212
1212
|
}
|
1213
1213
|
let { url: cleanUrl2, hash } = parseUrl(decodeURIComponent(url));
|
1214
|
-
|
1215
|
-
if (!cleanUrls && !cleanUrl2.endsWith(".html") && !hasExt) {
|
1214
|
+
if (!cleanUrls && !cleanUrl2.endsWith(".html")) {
|
1216
1215
|
if (cleanUrl2.endsWith("/")) {
|
1217
1216
|
cleanUrl2 += "index.html";
|
1218
1217
|
} else {
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@rspress/shared",
|
3
|
-
"version": "1.18.
|
3
|
+
"version": "1.18.2",
|
4
4
|
"types": "./dist/index.d.ts",
|
5
5
|
"main": "./dist/index.js",
|
6
6
|
"module": "./dist/index.mjs",
|
@@ -42,7 +42,7 @@
|
|
42
42
|
}
|
43
43
|
},
|
44
44
|
"dependencies": {
|
45
|
-
"@rsbuild/core": "0.
|
45
|
+
"@rsbuild/core": "0.6.1",
|
46
46
|
"unified": "10.1.2",
|
47
47
|
"chalk": "4.1.2",
|
48
48
|
"execa": "5.1.1",
|