create-rspress 2.0.0-beta.3 → 2.0.0-beta.30
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/README.md +1 -1
- package/dist/index.js +6 -6
- package/package.json +7 -8
- package/template-basic/docs/{_meta.json → _nav.json} +1 -1
- package/template-basic/docs/guide/index.md +10 -4
- package/template-basic/package.json +2 -2
- package/template-basic/rspress.config.ts +1 -1
- package/template-common/tsconfig.json +15 -7
package/README.md
CHANGED
package/dist/index.js
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
const src_dirname =
|
|
1
|
+
import node_path from "node:path";
|
|
2
|
+
import { fileURLToPath } from "node:url";
|
|
3
|
+
import { create } from "create-rstack";
|
|
4
|
+
const src_dirname = node_path.dirname(fileURLToPath(import.meta.url));
|
|
5
5
|
async function getTemplateName() {
|
|
6
6
|
return 'basic';
|
|
7
7
|
}
|
|
8
8
|
function mapESLintTemplate() {
|
|
9
9
|
return 'vanilla-ts';
|
|
10
10
|
}
|
|
11
|
-
|
|
12
|
-
root:
|
|
11
|
+
create({
|
|
12
|
+
root: node_path.resolve(src_dirname, '..'),
|
|
13
13
|
name: 'rspress',
|
|
14
14
|
templates: [
|
|
15
15
|
'basic'
|
package/package.json
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "create-rspress",
|
|
3
|
-
"version": "2.0.0-beta.
|
|
3
|
+
"version": "2.0.0-beta.30",
|
|
4
4
|
"description": "Create a new Rspress project",
|
|
5
|
-
"homepage": "https://rspress.
|
|
5
|
+
"homepage": "https://rspress.rs",
|
|
6
6
|
"repository": {
|
|
7
7
|
"type": "git",
|
|
8
8
|
"url": "git+https://github.com/web-infra-dev/rspress.git",
|
|
@@ -23,13 +23,13 @@
|
|
|
23
23
|
"bin.js"
|
|
24
24
|
],
|
|
25
25
|
"dependencies": {
|
|
26
|
-
"create-rstack": "1.
|
|
26
|
+
"create-rstack": "1.5.6"
|
|
27
27
|
},
|
|
28
28
|
"devDependencies": {
|
|
29
|
-
"@microsoft/api-extractor": "^7.52.
|
|
30
|
-
"@rslib/core": "0.
|
|
31
|
-
"@types/node": "^
|
|
32
|
-
"rsbuild-plugin-publint": "^0.3.
|
|
29
|
+
"@microsoft/api-extractor": "^7.52.11",
|
|
30
|
+
"@rslib/core": "0.12.4",
|
|
31
|
+
"@types/node": "^22.8.1",
|
|
32
|
+
"rsbuild-plugin-publint": "^0.3.3",
|
|
33
33
|
"typescript": "^5.8.2"
|
|
34
34
|
},
|
|
35
35
|
"engines": {
|
|
@@ -37,7 +37,6 @@
|
|
|
37
37
|
},
|
|
38
38
|
"publishConfig": {
|
|
39
39
|
"access": "public",
|
|
40
|
-
"provenance": true,
|
|
41
40
|
"registry": "https://registry.npmjs.org/"
|
|
42
41
|
},
|
|
43
42
|
"scripts": {
|
|
@@ -178,9 +178,10 @@ You can also apply line highlighting and code block title at the same time, for
|
|
|
178
178
|
**Input:**
|
|
179
179
|
|
|
180
180
|
````md
|
|
181
|
-
```js title="hello.js"
|
|
182
|
-
console.log('Hello World');
|
|
181
|
+
```js title="hello.js"
|
|
182
|
+
console.log('Hello World'); // [\!code highlight]
|
|
183
183
|
|
|
184
|
+
// [\!code highlight:3]
|
|
184
185
|
const a = 1;
|
|
185
186
|
|
|
186
187
|
console.log(a);
|
|
@@ -191,11 +192,16 @@ console.log(b);
|
|
|
191
192
|
```
|
|
192
193
|
````
|
|
193
194
|
|
|
195
|
+
:::warning
|
|
196
|
+
The backslash (`\`) in `[\!code highlight]` is for Markdown escaping to display the raw syntax. Do not include it when using this notation in your actual code.
|
|
197
|
+
:::
|
|
198
|
+
|
|
194
199
|
**Output:**
|
|
195
200
|
|
|
196
|
-
```js title="hello.js"
|
|
197
|
-
console.log('Hello World');
|
|
201
|
+
```js title="hello.js"
|
|
202
|
+
console.log('Hello World'); // [!code highlight]
|
|
198
203
|
|
|
204
|
+
// [!code highlight:3]
|
|
199
205
|
const a = 1;
|
|
200
206
|
|
|
201
207
|
console.log(a);
|
|
@@ -1,17 +1,25 @@
|
|
|
1
1
|
{
|
|
2
2
|
"compilerOptions": {
|
|
3
|
-
"target": "ES2020",
|
|
4
3
|
"lib": ["DOM", "ES2020"],
|
|
5
|
-
"module": "ESNext",
|
|
6
4
|
"jsx": "react-jsx",
|
|
5
|
+
"target": "ES2020",
|
|
7
6
|
"noEmit": true,
|
|
8
|
-
"strict": true,
|
|
9
7
|
"skipLibCheck": true,
|
|
10
|
-
"isolatedModules": true,
|
|
11
|
-
"resolveJsonModule": true,
|
|
12
|
-
"moduleResolution": "bundler",
|
|
13
8
|
"useDefineForClassFields": true,
|
|
14
|
-
|
|
9
|
+
|
|
10
|
+
/* modules */
|
|
11
|
+
"module": "ESNext",
|
|
12
|
+
"moduleDetection": "force",
|
|
13
|
+
"moduleResolution": "bundler",
|
|
14
|
+
"verbatimModuleSyntax": true,
|
|
15
|
+
"resolveJsonModule": true,
|
|
16
|
+
"allowImportingTsExtensions": true,
|
|
17
|
+
"isolatedModules": true,
|
|
18
|
+
|
|
19
|
+
/* type checking */
|
|
20
|
+
"strict": true,
|
|
21
|
+
"noUnusedLocals": true,
|
|
22
|
+
"noUnusedParameters": true
|
|
15
23
|
},
|
|
16
24
|
"include": ["docs", "theme", "rspress.config.ts"],
|
|
17
25
|
"mdx": {
|