@rspress/core 2.0.0-rc.3 → 2.0.0-rc.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/0~7675.723d12b2.js +4 -4
- package/dist/{3521.56e42d70.js → 3521.9eb6b114.js} +12 -12
- package/dist/4669.69cb6b18.js +1 -0
- package/dist/{5485.077f14ff.js → 5485.9fc7f63d.js} +5 -5
- package/dist/6289.29817fb4.js +4 -0
- package/dist/8813.4b28f4bb.js +1 -0
- package/dist/9643.2dff683e.js +4 -0
- package/dist/cli/config/loadConfigFile.js +2 -2
- package/dist/cli/index.44f3184c.js +2 -0
- package/dist/cli/index.js +3 -3
- package/dist/eject-theme/components/HoverGroup/index.scss +3 -2
- package/dist/eject-theme/components/HoverGroup/index.tsx +104 -22
- package/dist/eject-theme/components/Nav/NavMenu.scss +1 -1
- package/dist/eject-theme/components/Nav/NavMenu.tsx +50 -28
- package/dist/eject-theme/components/NavScreen/NavScreenMenuItem.tsx +26 -11
- package/dist/eject-theme/components/Overview/index.tsx +65 -0
- package/dist/index.js +7 -11
- package/dist/node/PluginDriver.js +3 -3
- package/dist/node/auto-nav-sidebar/index.js +3 -3
- package/dist/node/auto-nav-sidebar/locales.js +1 -1
- package/dist/node/auto-nav-sidebar/normalize.js +2 -2
- package/dist/node/auto-nav-sidebar/utils.js +2 -2
- package/dist/node/auto-nav-sidebar/walk.js +13 -9
- package/dist/node/constants.js +2 -2
- package/dist/node/eject.js +2 -5
- package/dist/node/initRsbuild.js +14 -8
- package/dist/node/logger/hint.js +1 -1
- package/dist/node/mdx/loader.7c249a26.js +12 -0
- package/dist/node/mdx/options.js +3 -3
- package/dist/node/mdx/processor.js +2 -2
- package/dist/node/mdx/rehypePlugins/codeMeta.js +1 -1
- package/dist/node/mdx/rehypePlugins/headerAnchor.js +4 -4
- package/dist/node/mdx/rehypePlugins/shiki.js +1 -1
- package/dist/node/mdx/rehypePlugins/transformers/index.js +5 -5
- package/dist/node/mdx/remarkPlugins/builtin.js +1 -1
- package/dist/node/mdx/remarkPlugins/containerSyntax.js +1 -1
- package/dist/node/mdx/remarkPlugins/fileCodeBlock.js +3 -3
- package/dist/node/mdx/remarkPlugins/image.js +3 -3
- package/dist/node/mdx/remarkPlugins/link.js +3 -3
- package/dist/node/mdx/remarkPlugins/toc.js +3 -3
- package/dist/node/medium-zoom/index.js +1 -1
- package/dist/node/route/RoutePage.js +1 -1
- package/dist/node/route/RouteService.js +3 -3
- package/dist/node/route/extractPageData.js +5 -5
- package/dist/node/route/normalizeRoutePath.js +2 -2
- package/dist/node/runtimeModule/i18n.js +2 -2
- package/dist/node/runtimeModule/pageData/createPageData.js +2 -2
- package/dist/node/runtimeModule/pageData/rsbuildPlugin.js +1 -1
- package/dist/node/runtimeModule/searchHooks.js +1 -1
- package/dist/node/runtimeModule/siteData/createSiteData.js +1 -1
- package/dist/node/runtimeModule/siteData/normalizeThemeConfig.js +1 -1
- package/dist/node/runtimeModule/siteData/rsbuildPlugin.js +1 -1
- package/dist/node/serve.js +1 -1
- package/dist/node/ssg/renderPage.js +2 -2
- package/dist/node/ssg/renderPageWorker.165b5d46.js +1 -0
- package/dist/node/ssg/renderPageWorker.js +2 -2
- package/dist/node/ssg/renderPages.js +3 -3
- package/dist/node/ssg/rsbuildPluginSSG.js +2 -2
- package/dist/node/ssg/ssgEnv.js +1 -1
- package/dist/node/ssg-md/llms/emitLlmsTxt.js +9 -7
- package/dist/node/ssg-md/llms/llmsTxt.js +2 -2
- package/dist/node/ssg-md/remarkSplitMdx.js +2 -2
- package/dist/node/ssg-md/renderPage.js +2 -2
- package/dist/node/ssg-md/renderPages.js +2 -2
- package/dist/node/ssg-md/rsbuildPluginSSGMD.js +2 -2
- package/dist/node/utils/checkLanguageParity.js +1 -1
- package/dist/node/utils/createHash.js +1 -1
- package/dist/node/utils/error.js +1 -1
- package/dist/node/utils/flattenMdxContent.js +5 -5
- package/dist/node/utils/fs.js +1 -1
- package/dist/node/utils/getPageKey.js +1 -1
- package/dist/node/utils/normalizePath.js +3 -3
- package/dist/node/utils/reactAlias.js +2 -2
- package/dist/runtime/App.js +4 -2
- package/dist/runtime.js +1 -2
- package/dist/shiki-transformers.js +2 -2
- package/dist/theme/components/HoverGroup/index.css +3 -2
- package/dist/theme/components/HoverGroup/index.js +88 -17
- package/dist/theme/components/Nav/NavMenu.css +1 -1
- package/dist/theme/components/Nav/NavMenu.d.ts +6 -1
- package/dist/theme/components/Nav/NavMenu.js +47 -45
- package/dist/theme/components/NavScreen/NavScreenMenuItem.d.ts +1 -1
- package/dist/theme/components/NavScreen/NavScreenMenuItem.js +21 -11
- package/dist/theme/components/Overview/index.js +45 -2
- package/dist/theme/layout/DocLayout/index.js +10 -0
- package/dist/theme/layout/HomeLayout/index.js +40 -0
- package/dist/theme/layout/Layout/index.js +10 -6
- package/dist/theme/logic/useStorageValue.js +6 -3
- package/dist/theme/styles/vars/base-vars.css +2 -2
- package/dist/theme/styles/vars/code-vars.css +2 -2
- package/nav-json-schema.json +2 -2
- package/package.json +6 -6
- package/dist/4669.12208c6a.js +0 -2
- package/dist/6289.c67fe0d5.js +0 -5
- package/dist/8813.9da1f210.js +0 -2
- package/dist/9643.f109822d.js +0 -5
- package/dist/cli/index.cb89dbd1.js +0 -3
- package/dist/node/mdx/loader.e1578c62.js +0 -13
- package/dist/node/ssg/renderPageWorker.474f9f73.js +0 -2
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@rspress/core",
|
|
3
|
-
"version": "2.0.0-rc.
|
|
3
|
+
"version": "2.0.0-rc.4",
|
|
4
4
|
"description": "The Rspress Documentation Framework",
|
|
5
5
|
"bugs": "https://github.com/web-infra-dev/rspress/issues",
|
|
6
6
|
"repository": {
|
|
@@ -102,14 +102,14 @@
|
|
|
102
102
|
"unified": "^11.0.5",
|
|
103
103
|
"unist-util-visit": "^5.0.0",
|
|
104
104
|
"unist-util-visit-children": "^3.0.0",
|
|
105
|
-
"@rspress/runtime": "2.0.0-rc.
|
|
106
|
-
"@rspress/shared": "2.0.0-rc.
|
|
105
|
+
"@rspress/runtime": "2.0.0-rc.4",
|
|
106
|
+
"@rspress/shared": "2.0.0-rc.4"
|
|
107
107
|
},
|
|
108
108
|
"devDependencies": {
|
|
109
109
|
"@microsoft/api-extractor": "^7.55.2",
|
|
110
110
|
"@rsbuild/plugin-sass": "~1.4.0",
|
|
111
111
|
"@rsbuild/plugin-svgr": "^1.2.3",
|
|
112
|
-
"@rslib/core": "0.18.
|
|
112
|
+
"@rslib/core": "0.18.6",
|
|
113
113
|
"@types/body-scroll-lock": "^3.1.2",
|
|
114
114
|
"@types/hast": "^3.0.4",
|
|
115
115
|
"@types/html-to-text": "^9.0.4",
|
|
@@ -120,7 +120,7 @@
|
|
|
120
120
|
"@types/react": "^19.2.7",
|
|
121
121
|
"@types/react-dom": "^19.2.3",
|
|
122
122
|
"@types/react-reconciler": "^0.32.3",
|
|
123
|
-
"@types/web": "^0.0.
|
|
123
|
+
"@types/web": "^0.0.309",
|
|
124
124
|
"execa": "8.0.1",
|
|
125
125
|
"mdast-util-directive": "^3.1.0",
|
|
126
126
|
"mdast-util-mdx-expression": "^2.0.1",
|
|
@@ -137,7 +137,7 @@
|
|
|
137
137
|
"@rspress/config": "1.0.0"
|
|
138
138
|
},
|
|
139
139
|
"engines": {
|
|
140
|
-
"node": ">=
|
|
140
|
+
"node": ">=20.9.0"
|
|
141
141
|
},
|
|
142
142
|
"publishConfig": {
|
|
143
143
|
"access": "public",
|
package/dist/4669.12208c6a.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import { MDX_OR_MD_REGEXP, RSPRESS_TEMP_DIR, SEARCH_INDEX_NAME, addLeadingSlash, addTrailingSlash, getSidebarDataGroup, isDebugMode, isExternalUrl, isProduction, normalizeHref, parseUrl, removeLeadingSlash, removeTrailingSlash, slash, withBase } from "@rspress/shared";
|
|
2
|
-
export { MDX_OR_MD_REGEXP, RSPRESS_TEMP_DIR, SEARCH_INDEX_NAME, addLeadingSlash, addTrailingSlash, getSidebarDataGroup, isDebugMode, isExternalUrl, isProduction, normalizeHref, parseUrl, removeLeadingSlash, removeTrailingSlash, slash, withBase };
|
package/dist/6289.c67fe0d5.js
DELETED
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
import { logger } from "@rspress/shared/logger";
|
|
2
|
-
import node_path, { extname, join, relative } from "node:path";
|
|
3
|
-
import promises, { mkdir, readFile, readdir, rm, stat, writeFile } from "node:fs/promises";
|
|
4
|
-
import picocolors from "picocolors";
|
|
5
|
-
export { extname, join, logger, mkdir, node_path, picocolors, promises, readFile, readdir, relative, rm, stat, writeFile };
|
package/dist/8813.9da1f210.js
DELETED
package/dist/9643.f109822d.js
DELETED
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
import { extractTextAndId, getIconUrlPath, getNodeAttribute, loadFrontMatter } from "@rspress/shared/node-utils";
|
|
2
|
-
import node_os, { constants } from "node:os";
|
|
3
|
-
import node_process, { cwd } from "node:process";
|
|
4
|
-
import { createProcessor, nodeTypes } from "@mdx-js/mdx";
|
|
5
|
-
export { constants, createProcessor, cwd, extractTextAndId, getIconUrlPath, getNodeAttribute, loadFrontMatter, nodeTypes, node_os, node_process };
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import rehype from "@shikijs/rehype";
|
|
2
|
-
import rehype_external_links from "rehype-external-links";
|
|
3
|
-
import rehype_raw from "rehype-raw";
|
|
4
|
-
import remark_gfm from "remark-gfm";
|
|
5
|
-
import remark_mdx from "remark-mdx";
|
|
6
|
-
import remark_stringify from "remark-stringify";
|
|
7
|
-
import { unified } from "unified";
|
|
8
|
-
import github_slugger from "github-slugger";
|
|
9
|
-
import { headingRank } from "hast-util-heading-rank";
|
|
10
|
-
import { transformerAddLang, transformerAddLineNumbers, transformerAddTitle, transformerAddWrapCode } from "@rspress/core/shiki-transformers";
|
|
11
|
-
import { createCssVariablesTheme } from "shiki";
|
|
12
|
-
import { visitChildren } from "unist-util-visit-children";
|
|
13
|
-
export { createCssVariablesTheme, github_slugger, headingRank, rehype, rehype_external_links, rehype_raw, remark_gfm, remark_mdx, remark_stringify, transformerAddLang, transformerAddLineNumbers, transformerAddTitle, transformerAddWrapCode, unified, visitChildren };
|