@rspress/shared 0.0.0-nightly-20240416160209 → 0.0.0-nightly-20240418160241
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 +2 -1
- package/dist/index.js +1 -2
- package/dist/index.mjs +1 -2
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
@@ -341,7 +341,7 @@ interface DocFooter {
|
|
341
341
|
}
|
342
342
|
interface SocialLink {
|
343
343
|
icon: SocialLinkIcon;
|
344
|
-
mode: 'link' | 'text' | 'img';
|
344
|
+
mode: 'link' | 'text' | 'img' | 'dom';
|
345
345
|
content: string;
|
346
346
|
}
|
347
347
|
type SocialLinkIcon = 'lark' | 'discord' | 'facebook' | 'github' | 'instagram' | 'linkedin' | 'slack' | 'twitter' | 'youtube' | 'wechat' | 'qq' | 'juejin' | 'zhihu' | 'bilibili' | 'weibo' | 'gitlab' | 'X' | {
|
@@ -624,6 +624,7 @@ interface FrontMatterMeta {
|
|
624
624
|
outline?: boolean;
|
625
625
|
lineNumbers?: boolean;
|
626
626
|
overviewHeaders?: number;
|
627
|
+
titleSuffix?: string;
|
627
628
|
}
|
628
629
|
interface PageData {
|
629
630
|
siteData: SiteData<Config$1>;
|
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 {
|