@modern-js/main-doc 0.0.0-nightly-20250519160349 → 0.0.0-nightly-20250520160352

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.
@@ -17,7 +17,6 @@ type DistPathConfig = {
17
17
  wasm?: string;
18
18
  image?: string;
19
19
  media?: string;
20
- server?: string;
21
20
  worker?: string;
22
21
  assets?: string;
23
22
  };
@@ -96,7 +96,8 @@ dist
96
96
  └── qux.[hash].mp4
97
97
  ```
98
98
 
99
- ## Node.js Output Directory
99
+
100
+ <!-- ## Node.js Output Directory
100
101
 
101
102
  When you enable SSR or SSG features in Modern.js, Modern.js will generate a Node.js bundle after the build and output it to the `bundles` directory.
102
103
 
@@ -122,7 +123,7 @@ export default {
122
123
  },
123
124
  },
124
125
  };
125
- ```
126
+ ``` -->
126
127
 
127
128
  ## Flatten the Directory
128
129
 
@@ -17,7 +17,6 @@ type DistPathConfig = {
17
17
  wasm?: string;
18
18
  image?: string;
19
19
  media?: string;
20
- server?: string;
21
20
  worker?: string;
22
21
  assets?: string;
23
22
  };
@@ -96,7 +96,7 @@ dist
96
96
  └── qux.[hash].mp4
97
97
  ```
98
98
 
99
- ## Node.js 产物目录
99
+ <!-- ## Node.js 产物目录
100
100
 
101
101
  当你在 Modern.js 中开启了 SSR 或 SSG 等服务端功能时,Modern.js 会在构建后生成一份 Node.js 产物,并输出到 `bundles` 目录下:
102
102
 
@@ -122,7 +122,7 @@ export default {
122
122
  },
123
123
  },
124
124
  };
125
- ```
125
+ ``` -->
126
126
 
127
127
  ## 扁平化产物目录
128
128
 
package/package.json CHANGED
@@ -15,14 +15,14 @@
15
15
  "modern",
16
16
  "modern.js"
17
17
  ],
18
- "version": "0.0.0-nightly-20250519160349",
18
+ "version": "0.0.0-nightly-20250520160352",
19
19
  "publishConfig": {
20
20
  "registry": "https://registry.npmjs.org/",
21
21
  "access": "public"
22
22
  },
23
23
  "dependencies": {
24
24
  "mermaid": "^11.4.1",
25
- "@modern-js/sandpack-react": "0.0.0-nightly-20250519160349"
25
+ "@modern-js/sandpack-react": "0.0.0-nightly-20250520160352"
26
26
  },
27
27
  "devDependencies": {
28
28
  "@rsbuild/plugin-sass": "1.3.1",
package/rspress.config.ts CHANGED
@@ -1,5 +1,6 @@
1
1
  import path from 'path';
2
2
  import { pluginSass } from '@rsbuild/plugin-sass';
3
+ import { pluginLlms } from '@rspress/plugin-llms';
3
4
  import { transformerNotationHighlight } from '@shikijs/transformers';
4
5
  import { defineConfig } from 'rspress/config';
5
6
 
@@ -7,6 +8,9 @@ const docPath = path.join(__dirname, 'docs');
7
8
 
8
9
  export default defineConfig({
9
10
  root: docPath,
11
+ title: 'Modern.js',
12
+ description:
13
+ 'The Modern.js framework is a progressive web framework based on React. At ByteDance, we use Modern.js to build upper-level frameworks that have supported the development of thousands of web applications.',
10
14
  base: '/',
11
15
  logo: 'https://lf-cdn-tos.bytescm.com/obj/static/webinfra/modern-js-website/assets/images/images/modernjs-logo.svg',
12
16
  icon: 'https://lf3-static.bytednsdoc.com/obj/eden-cn/uhbfnupenuhf/favicon.ico',
@@ -18,6 +22,7 @@ export default defineConfig({
18
22
  transformers: [transformerNotationHighlight()],
19
23
  },
20
24
  },
25
+ plugins: [pluginLlms()],
21
26
  search: {
22
27
  codeBlocks: true,
23
28
  },