@rspress/shared
Advanced tools
Comparing version
@@ -48,6 +48,12 @@ "use strict"; | ||
]; | ||
var __webpack_export_target__ = exports; | ||
for(var __webpack_i__ in __webpack_exports__)__webpack_export_target__[__webpack_i__] = __webpack_exports__[__webpack_i__]; | ||
if (__webpack_exports__.__esModule) Object.defineProperty(__webpack_export_target__, '__esModule', { | ||
exports.DEFAULT_CONFIG_EXTENSIONS = __webpack_exports__.DEFAULT_CONFIG_EXTENSIONS; | ||
exports.DEFAULT_CONFIG_NAME = __webpack_exports__.DEFAULT_CONFIG_NAME; | ||
exports.DEFAULT_PAGE_EXTENSIONS = __webpack_exports__.DEFAULT_PAGE_EXTENSIONS; | ||
for(var __webpack_i__ in __webpack_exports__)if (-1 === [ | ||
"DEFAULT_CONFIG_EXTENSIONS", | ||
"DEFAULT_CONFIG_NAME", | ||
"DEFAULT_PAGE_EXTENSIONS" | ||
].indexOf(__webpack_i__)) exports[__webpack_i__] = __webpack_exports__[__webpack_i__]; | ||
Object.defineProperty(exports, '__esModule', { | ||
value: true | ||
}); |
@@ -213,2 +213,3 @@ import type { loadConfig } from '@rsbuild/core'; | ||
context?: string; | ||
footer?: boolean; | ||
[key: string]: unknown; | ||
@@ -741,3 +742,3 @@ } | ||
export declare type SSGConfig = boolean | { | ||
strict?: boolean; | ||
fallback?: false | 'csr'; | ||
}; | ||
@@ -744,0 +745,0 @@ |
@@ -198,6 +198,4 @@ "use strict"; | ||
if (cleanUrls && cleanUrl.endsWith('/index')) cleanUrl = cleanUrl.replace(/\/index$/, '/'); | ||
} else if (!cleanUrl.endsWith('.html')) { | ||
if (cleanUrl.endsWith('/')) cleanUrl += 'index.html'; | ||
else cleanUrl += '.html'; | ||
} | ||
} else if (!cleanUrl.endsWith('.html')) if (cleanUrl.endsWith('/')) cleanUrl += 'index.html'; | ||
else cleanUrl += '.html'; | ||
return addLeadingSlash(hash ? `${cleanUrl}#${hash}` : cleanUrl); | ||
@@ -220,6 +218,68 @@ } | ||
} | ||
var __webpack_export_target__ = exports; | ||
for(var __webpack_i__ in __webpack_exports__)__webpack_export_target__[__webpack_i__] = __webpack_exports__[__webpack_i__]; | ||
if (__webpack_exports__.__esModule) Object.defineProperty(__webpack_export_target__, '__esModule', { | ||
exports.APPEARANCE_KEY = __webpack_exports__.APPEARANCE_KEY; | ||
exports.DEFAULT_HIGHLIGHT_LANGUAGES = __webpack_exports__.DEFAULT_HIGHLIGHT_LANGUAGES; | ||
exports.HASH_REGEXP = __webpack_exports__.HASH_REGEXP; | ||
exports.MDX_OR_MD_REGEXP = __webpack_exports__.MDX_OR_MD_REGEXP; | ||
exports.QUERY_REGEXP = __webpack_exports__.QUERY_REGEXP; | ||
exports.RSPRESS_TEMP_DIR = __webpack_exports__.RSPRESS_TEMP_DIR; | ||
exports.SEARCH_INDEX_NAME = __webpack_exports__.SEARCH_INDEX_NAME; | ||
exports.addLeadingSlash = __webpack_exports__.addLeadingSlash; | ||
exports.addTrailingSlash = __webpack_exports__.addTrailingSlash; | ||
exports.cleanUrl = __webpack_exports__.cleanUrl; | ||
exports.inBrowser = __webpack_exports__.inBrowser; | ||
exports.isDataUrl = __webpack_exports__.isDataUrl; | ||
exports.isDebugMode = __webpack_exports__.isDebugMode; | ||
exports.isDevDebugMode = __webpack_exports__.isDevDebugMode; | ||
exports.isExternalUrl = __webpack_exports__.isExternalUrl; | ||
exports.isProduction = __webpack_exports__.isProduction; | ||
exports.isSCM = __webpack_exports__.isSCM; | ||
exports.normalizeHref = __webpack_exports__.normalizeHref; | ||
exports.normalizePosixPath = __webpack_exports__.normalizePosixPath; | ||
exports.normalizeSlash = __webpack_exports__.normalizeSlash; | ||
exports.parseUrl = __webpack_exports__.parseUrl; | ||
exports.removeBase = __webpack_exports__.removeBase; | ||
exports.removeHash = __webpack_exports__.removeHash; | ||
exports.removeLeadingSlash = __webpack_exports__.removeLeadingSlash; | ||
exports.removeTrailingSlash = __webpack_exports__.removeTrailingSlash; | ||
exports.replaceLang = __webpack_exports__.replaceLang; | ||
exports.replaceVersion = __webpack_exports__.replaceVersion; | ||
exports.slash = __webpack_exports__.slash; | ||
exports.withBase = __webpack_exports__.withBase; | ||
exports.withoutBase = __webpack_exports__.withoutBase; | ||
exports.withoutLang = __webpack_exports__.withoutLang; | ||
for(var __webpack_i__ in __webpack_exports__)if (-1 === [ | ||
"APPEARANCE_KEY", | ||
"DEFAULT_HIGHLIGHT_LANGUAGES", | ||
"HASH_REGEXP", | ||
"MDX_OR_MD_REGEXP", | ||
"QUERY_REGEXP", | ||
"RSPRESS_TEMP_DIR", | ||
"SEARCH_INDEX_NAME", | ||
"addLeadingSlash", | ||
"addTrailingSlash", | ||
"cleanUrl", | ||
"inBrowser", | ||
"isDataUrl", | ||
"isDebugMode", | ||
"isDevDebugMode", | ||
"isExternalUrl", | ||
"isProduction", | ||
"isSCM", | ||
"normalizeHref", | ||
"normalizePosixPath", | ||
"normalizeSlash", | ||
"parseUrl", | ||
"removeBase", | ||
"removeHash", | ||
"removeLeadingSlash", | ||
"removeTrailingSlash", | ||
"replaceLang", | ||
"replaceVersion", | ||
"slash", | ||
"withBase", | ||
"withoutBase", | ||
"withoutLang" | ||
].indexOf(__webpack_i__)) exports[__webpack_i__] = __webpack_exports__[__webpack_i__]; | ||
Object.defineProperty(exports, '__esModule', { | ||
value: true | ||
}); |
@@ -30,6 +30,8 @@ "use strict"; | ||
const core_namespaceObject = require("@rsbuild/core"); | ||
var __webpack_export_target__ = exports; | ||
for(var __webpack_i__ in __webpack_exports__)__webpack_export_target__[__webpack_i__] = __webpack_exports__[__webpack_i__]; | ||
if (__webpack_exports__.__esModule) Object.defineProperty(__webpack_export_target__, '__esModule', { | ||
exports.logger = __webpack_exports__.logger; | ||
for(var __webpack_i__ in __webpack_exports__)if (-1 === [ | ||
"logger" | ||
].indexOf(__webpack_i__)) exports[__webpack_i__] = __webpack_exports__[__webpack_i__]; | ||
Object.defineProperty(exports, '__esModule', { | ||
value: true | ||
}); |
@@ -206,2 +206,3 @@ import type { MdxJsxAttribute } from 'mdast-util-mdx-jsx'; | ||
context?: string; | ||
footer?: boolean; | ||
[key: string]: unknown; | ||
@@ -574,3 +575,3 @@ } | ||
declare type SSGConfig = boolean | { | ||
strict?: boolean; | ||
fallback?: false | 'csr'; | ||
}; | ||
@@ -577,0 +578,0 @@ |
@@ -111,6 +111,14 @@ "use strict"; | ||
})(); | ||
var __webpack_export_target__ = exports; | ||
for(var __webpack_i__ in __webpack_exports__)__webpack_export_target__[__webpack_i__] = __webpack_exports__[__webpack_i__]; | ||
if (__webpack_exports__.__esModule) Object.defineProperty(__webpack_export_target__, '__esModule', { | ||
exports.extractTextAndId = __webpack_exports__.extractTextAndId; | ||
exports.getNodeAttribute = __webpack_exports__.getNodeAttribute; | ||
exports.loadFrontMatter = __webpack_exports__.loadFrontMatter; | ||
exports.mergeDocConfig = __webpack_exports__.mergeDocConfig; | ||
for(var __webpack_i__ in __webpack_exports__)if (-1 === [ | ||
"extractTextAndId", | ||
"getNodeAttribute", | ||
"loadFrontMatter", | ||
"mergeDocConfig" | ||
].indexOf(__webpack_i__)) exports[__webpack_i__] = __webpack_exports__[__webpack_i__]; | ||
Object.defineProperty(exports, '__esModule', { | ||
value: true | ||
}); |
{ | ||
"name": "@rspress/shared", | ||
"version": "2.0.0-alpha.7", | ||
"version": "2.0.0-alpha.8", | ||
"repository": { | ||
@@ -39,3 +39,3 @@ "type": "git", | ||
"dependencies": { | ||
"@rsbuild/core": "1.2.19", | ||
"@rsbuild/core": "1.3.0", | ||
"gray-matter": "4.0.3", | ||
@@ -46,3 +46,3 @@ "lodash-es": "^4.17.21", | ||
"devDependencies": { | ||
"@rslib/core": "0.5.5", | ||
"@rslib/core": "0.6.0", | ||
"@types/fs-extra": "11.0.4", | ||
@@ -52,3 +52,3 @@ "@types/jest": "~29.5.14", | ||
"@types/node": "^18.11.17", | ||
"@types/react": "^18.3.19", | ||
"@types/react": "^18.3.20", | ||
"mdast-util-mdx-jsx": "^2.1.4", | ||
@@ -55,0 +55,0 @@ "medium-zoom": "1.1.0", |
Sorry, the diff of this file is not supported yet
72261
4.19%2304
3.41%+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
Updated