@rspress/core 2.0.0-alpha.2 → 2.0.0-alpha.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/index.js +3 -3
- package/package.json +13 -13
package/dist/index.js
CHANGED
|
@@ -955,7 +955,7 @@ async function siteDataVMPlugin(context) {
|
|
|
955
955
|
const replaceRules = (null == userConfig ? void 0 : userConfig.replaceRules) || [];
|
|
956
956
|
const searchConfig = (null == userConfig ? void 0 : userConfig.search) || {};
|
|
957
957
|
const domain = (null == searchConfig ? void 0 : searchConfig.mode) === 'remote' ? searchConfig.domain ?? '' : '';
|
|
958
|
-
const searchCodeBlocks = 'codeBlocks' in searchConfig ? Boolean(searchConfig.codeBlocks) :
|
|
958
|
+
const searchCodeBlocks = 'codeBlocks' in searchConfig ? Boolean(searchConfig.codeBlocks) : true;
|
|
959
959
|
const pages = await extractPageData(replaceRules, alias, domain, userDocRoot, routeService, highlightLanguages, searchCodeBlocks);
|
|
960
960
|
await pluginDriver.modifySearchIndexData(pages);
|
|
961
961
|
const versioned = userConfig.search && 'remote' !== userConfig.search.mode && userConfig.search.versioned;
|
|
@@ -1553,7 +1553,7 @@ async function dev(options) {
|
|
|
1553
1553
|
await checkLanguageParity(modifiedConfig);
|
|
1554
1554
|
}
|
|
1555
1555
|
}
|
|
1556
|
-
var package_namespaceObject = JSON.parse('{"i8":"2.0.0-alpha.
|
|
1556
|
+
var package_namespaceObject = JSON.parse('{"i8":"2.0.0-alpha.3"}');
|
|
1557
1557
|
async function renderFrontmatterHead(route) {
|
|
1558
1558
|
if (!isRouteMeta(route)) return '';
|
|
1559
1559
|
const content = await __WEBPACK_EXTERNAL_MODULE_node_fs_promises_153e37e0__["default"].readFile(route.absolutePath, {
|
|
@@ -1636,7 +1636,7 @@ async function renderPages(appDirectory, config, pluginDriver, ssgConfig) {
|
|
|
1636
1636
|
routePath: '/404'
|
|
1637
1637
|
});
|
|
1638
1638
|
await Promise.all(allRoutes.filter((route)=>!route.routePath.includes(':')).map(async (route)=>{
|
|
1639
|
-
const helmetContext = new __WEBPACK_EXTERNAL_MODULE_react_helmet_async_048d06c6__.HelmetData({});
|
|
1639
|
+
const helmetContext = new __WEBPACK_EXTERNAL_MODULE_react_helmet_async_048d06c6__["default"].HelmetData({});
|
|
1640
1640
|
const { routePath } = route;
|
|
1641
1641
|
let appHtml = '';
|
|
1642
1642
|
if (render) try {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@rspress/core",
|
|
3
|
-
"version": "2.0.0-alpha.
|
|
3
|
+
"version": "2.0.0-alpha.3",
|
|
4
4
|
"description": "The Rspress Documentation Framework",
|
|
5
5
|
"bugs": "https://github.com/web-infra-dev/rspress/issues",
|
|
6
6
|
"repository": {
|
|
@@ -45,7 +45,7 @@
|
|
|
45
45
|
"@mdx-js/loader": "2.3.0",
|
|
46
46
|
"@mdx-js/mdx": "2.3.0",
|
|
47
47
|
"@mdx-js/react": "2.3.0",
|
|
48
|
-
"@rsbuild/core": "1.2.
|
|
48
|
+
"@rsbuild/core": "1.2.19",
|
|
49
49
|
"@rsbuild/plugin-react": "~1.1.1",
|
|
50
50
|
"@rspress/mdx-rs": "0.6.6",
|
|
51
51
|
"enhanced-resolve": "5.18.1",
|
|
@@ -59,7 +59,7 @@
|
|
|
59
59
|
"picocolors": "^1.1.1",
|
|
60
60
|
"react": "^18.3.1",
|
|
61
61
|
"react-dom": "^18.3.1",
|
|
62
|
-
"react-helmet-async": "^
|
|
62
|
+
"react-helmet-async": "^2.0.5",
|
|
63
63
|
"react-lazy-with-preload": "^2.2.1",
|
|
64
64
|
"react-syntax-highlighter": "^15.6.1",
|
|
65
65
|
"rehype-external-links": "^3.0.0",
|
|
@@ -70,17 +70,17 @@
|
|
|
70
70
|
"unified": "^10.1.2",
|
|
71
71
|
"unist-util-visit": "^4.1.2",
|
|
72
72
|
"unist-util-visit-children": "^2.0.2",
|
|
73
|
-
"@rspress/plugin-
|
|
74
|
-
"@rspress/plugin-
|
|
75
|
-
"@rspress/plugin-
|
|
76
|
-
"@rspress/plugin-
|
|
77
|
-
"@rspress/
|
|
78
|
-
"@rspress/
|
|
79
|
-
"@rspress/
|
|
73
|
+
"@rspress/plugin-container-syntax": "2.0.0-alpha.3",
|
|
74
|
+
"@rspress/plugin-last-updated": "2.0.0-alpha.3",
|
|
75
|
+
"@rspress/plugin-medium-zoom": "2.0.0-alpha.3",
|
|
76
|
+
"@rspress/plugin-auto-nav-sidebar": "2.0.0-alpha.3",
|
|
77
|
+
"@rspress/shared": "2.0.0-alpha.3",
|
|
78
|
+
"@rspress/runtime": "2.0.0-alpha.3",
|
|
79
|
+
"@rspress/theme-default": "2.0.0-alpha.3"
|
|
80
80
|
},
|
|
81
81
|
"devDependencies": {
|
|
82
|
-
"@microsoft/api-extractor": "^7.
|
|
83
|
-
"@rslib/core": "0.5.
|
|
82
|
+
"@microsoft/api-extractor": "^7.52.1",
|
|
83
|
+
"@rslib/core": "0.5.4",
|
|
84
84
|
"@rspress-dev/plugin-preview": "link:../plugin-preview",
|
|
85
85
|
"@types/hast": "^2.3.10",
|
|
86
86
|
"@types/html-to-text": "^9.0.4",
|
|
@@ -97,7 +97,7 @@
|
|
|
97
97
|
"remark-rehype": "^10.1.0",
|
|
98
98
|
"rimraf": "^6.0.1",
|
|
99
99
|
"tailwindcss": "^3.4.17",
|
|
100
|
-
"typescript": "^5.
|
|
100
|
+
"typescript": "^5.8.2",
|
|
101
101
|
"@rspress/config": "1.0.0"
|
|
102
102
|
},
|
|
103
103
|
"engines": {
|