create-vuepress-theme-hope 2.0.0-beta.239 → 2.0.0-beta.240
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/package.json +3 -1
- package/template/blog/config/en/theme.ts +33 -9
- package/template/blog/config/multi/theme.ts +33 -9
- package/template/blog/config/zh/theme.ts +33 -9
- package/template/blog/en/demo/markdown.md +55 -55
- package/template/blog/zh/demo/markdown.md +55 -55
- package/template/docs/config/en/theme.ts +33 -9
- package/template/docs/config/multi/theme.ts +33 -9
- package/template/docs/config/zh/theme.ts +33 -9
- package/template/docs/en/demo/markdown.md +55 -55
- package/template/docs/zh/demo/markdown.md +55 -55
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "create-vuepress-theme-hope",
|
|
3
|
-
"version": "2.0.0-beta.
|
|
3
|
+
"version": "2.0.0-beta.240",
|
|
4
4
|
"description": "Create vuepress-theme-hope demo project helper",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"create",
|
|
@@ -28,6 +28,8 @@
|
|
|
28
28
|
"exports": {
|
|
29
29
|
"./package.json": "./package.json"
|
|
30
30
|
},
|
|
31
|
+
"main": "./lib/index.js",
|
|
32
|
+
"types": "./lib/index.d.ts",
|
|
31
33
|
"bin": {
|
|
32
34
|
"create-vuepress-theme-hope": "./lib/index.js"
|
|
33
35
|
},
|
|
@@ -93,25 +93,47 @@ export default hopeTheme({
|
|
|
93
93
|
mdEnhance: {
|
|
94
94
|
align: true,
|
|
95
95
|
attrs: true,
|
|
96
|
-
|
|
96
|
+
card: true,
|
|
97
|
+
|
|
98
|
+
// install chart.js before enabling it
|
|
99
|
+
// chart: true,
|
|
100
|
+
|
|
97
101
|
codetabs: true,
|
|
98
102
|
demo: true,
|
|
99
|
-
|
|
103
|
+
|
|
104
|
+
// install echarts before enabling it
|
|
105
|
+
// echarts: true,
|
|
106
|
+
|
|
100
107
|
figure: true,
|
|
101
|
-
|
|
108
|
+
|
|
109
|
+
// install flowchart.ts before enabling it
|
|
110
|
+
// flowchart: true,
|
|
111
|
+
|
|
102
112
|
gfm: true,
|
|
103
113
|
imgLazyload: true,
|
|
104
114
|
imgSize: true,
|
|
105
115
|
include: true,
|
|
106
|
-
|
|
116
|
+
|
|
117
|
+
// install katex before enabling it
|
|
118
|
+
// katex: true,
|
|
119
|
+
|
|
120
|
+
// install mathjax-full before enabling it
|
|
121
|
+
// mathjax: true,
|
|
122
|
+
|
|
107
123
|
mark: true,
|
|
108
|
-
|
|
124
|
+
|
|
125
|
+
// install mermaid before enabling it
|
|
126
|
+
// mermaid: true,
|
|
127
|
+
|
|
109
128
|
playground: {
|
|
110
129
|
presets: ["ts", "vue"],
|
|
111
130
|
},
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
131
|
+
|
|
132
|
+
// install reveal.js before enabling it
|
|
133
|
+
// revealJs: {
|
|
134
|
+
// plugins: ["highlight", "math", "search", "notes", "zoom"],
|
|
135
|
+
// },
|
|
136
|
+
|
|
115
137
|
stylize: [
|
|
116
138
|
{
|
|
117
139
|
matcher: "Recommended",
|
|
@@ -129,7 +151,9 @@ export default hopeTheme({
|
|
|
129
151
|
sup: true,
|
|
130
152
|
tabs: true,
|
|
131
153
|
vPre: true,
|
|
132
|
-
|
|
154
|
+
|
|
155
|
+
// install @vue/repl before enabling it
|
|
156
|
+
// vuePlayground: true,
|
|
133
157
|
},
|
|
134
158
|
|
|
135
159
|
// uncomment these if you want a PWA
|
|
@@ -126,25 +126,47 @@ export default hopeTheme({
|
|
|
126
126
|
mdEnhance: {
|
|
127
127
|
align: true,
|
|
128
128
|
attrs: true,
|
|
129
|
-
|
|
129
|
+
card: true,
|
|
130
|
+
|
|
131
|
+
// install chart.js before enabling it
|
|
132
|
+
// chart: true,
|
|
133
|
+
|
|
130
134
|
codetabs: true,
|
|
131
135
|
demo: true,
|
|
132
|
-
|
|
136
|
+
|
|
137
|
+
// install echarts before enabling it
|
|
138
|
+
// echarts: true,
|
|
139
|
+
|
|
133
140
|
figure: true,
|
|
134
|
-
|
|
141
|
+
|
|
142
|
+
// install flowchart.ts before enabling it
|
|
143
|
+
// flowchart: true,
|
|
144
|
+
|
|
135
145
|
gfm: true,
|
|
136
146
|
imgLazyload: true,
|
|
137
147
|
imgSize: true,
|
|
138
148
|
include: true,
|
|
139
|
-
|
|
149
|
+
|
|
150
|
+
// install katex before enabling it
|
|
151
|
+
// katex: true,
|
|
152
|
+
|
|
153
|
+
// install mathjax-full before enabling it
|
|
154
|
+
// mathjax: true,
|
|
155
|
+
|
|
140
156
|
mark: true,
|
|
141
|
-
|
|
157
|
+
|
|
158
|
+
// install mermaid before enabling it
|
|
159
|
+
// mermaid: true,
|
|
160
|
+
|
|
142
161
|
playground: {
|
|
143
162
|
presets: ["ts", "vue"],
|
|
144
163
|
},
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
164
|
+
|
|
165
|
+
// install reveal.js before enabling it
|
|
166
|
+
// revealJs: {
|
|
167
|
+
// plugins: ["highlight", "math", "search", "notes", "zoom"],
|
|
168
|
+
// },
|
|
169
|
+
|
|
148
170
|
stylize: [
|
|
149
171
|
{
|
|
150
172
|
matcher: "Recommended",
|
|
@@ -162,7 +184,9 @@ export default hopeTheme({
|
|
|
162
184
|
sup: true,
|
|
163
185
|
tabs: true,
|
|
164
186
|
vPre: true,
|
|
165
|
-
|
|
187
|
+
|
|
188
|
+
// install @vue/repl before enabling it
|
|
189
|
+
// vuePlayground: true,
|
|
166
190
|
},
|
|
167
191
|
|
|
168
192
|
// uncomment these if you want a PWA
|
|
@@ -94,25 +94,47 @@ export default hopeTheme({
|
|
|
94
94
|
mdEnhance: {
|
|
95
95
|
align: true,
|
|
96
96
|
attrs: true,
|
|
97
|
-
|
|
97
|
+
card: true,
|
|
98
|
+
|
|
99
|
+
// install chart.js before enabling it
|
|
100
|
+
// chart: true,
|
|
101
|
+
|
|
98
102
|
codetabs: true,
|
|
99
103
|
demo: true,
|
|
100
|
-
|
|
104
|
+
|
|
105
|
+
// install echarts before enabling it
|
|
106
|
+
// echarts: true,
|
|
107
|
+
|
|
101
108
|
figure: true,
|
|
102
|
-
|
|
109
|
+
|
|
110
|
+
// install flowchart.ts before enabling it
|
|
111
|
+
// flowchart: true,
|
|
112
|
+
|
|
103
113
|
gfm: true,
|
|
104
114
|
imgLazyload: true,
|
|
105
115
|
imgSize: true,
|
|
106
116
|
include: true,
|
|
107
|
-
|
|
117
|
+
|
|
118
|
+
// install katex before enabling it
|
|
119
|
+
// katex: true,
|
|
120
|
+
|
|
121
|
+
// install mathjax-full before enabling it
|
|
122
|
+
// mathjax: true,
|
|
123
|
+
|
|
108
124
|
mark: true,
|
|
109
|
-
|
|
125
|
+
|
|
126
|
+
// install mermaid before enabling it
|
|
127
|
+
// mermaid: true,
|
|
128
|
+
|
|
110
129
|
playground: {
|
|
111
130
|
presets: ["ts", "vue"],
|
|
112
131
|
},
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
132
|
+
|
|
133
|
+
// install reveal.js before enabling it
|
|
134
|
+
// revealJs: {
|
|
135
|
+
// plugins: ["highlight", "math", "search", "notes", "zoom"],
|
|
136
|
+
// },
|
|
137
|
+
|
|
116
138
|
stylize: [
|
|
117
139
|
{
|
|
118
140
|
matcher: "Recommended",
|
|
@@ -130,7 +152,9 @@ export default hopeTheme({
|
|
|
130
152
|
sup: true,
|
|
131
153
|
tabs: true,
|
|
132
154
|
vPre: true,
|
|
133
|
-
|
|
155
|
+
|
|
156
|
+
// install @vue/repl before enabling it
|
|
157
|
+
// vuePlayground: true,
|
|
134
158
|
},
|
|
135
159
|
|
|
136
160
|
// uncomment these if you want a PWA
|
|
@@ -199,6 +199,61 @@ color: rgba(253, 230, 138, 0.15)
|
|
|
199
199
|
|
|
200
200
|
- [View Detail](https://theme-hope.vuejs.press/guide/markdown/card.html)
|
|
201
201
|
|
|
202
|
+
#### Include files
|
|
203
|
+
|
|
204
|
+
<!-- @include: ./README.md{11-17} -->
|
|
205
|
+
|
|
206
|
+
- [View Detail](https://theme-hope.vuejs.press/guide/markdown/include.html)
|
|
207
|
+
|
|
208
|
+
#### Code Demo
|
|
209
|
+
|
|
210
|
+
::: normal-demo A normal demo
|
|
211
|
+
|
|
212
|
+
```html
|
|
213
|
+
<h1>VuePress Theme Hope</h1>
|
|
214
|
+
<p>Is <span id="very">very</span> powerful!</p>
|
|
215
|
+
```
|
|
216
|
+
|
|
217
|
+
```js
|
|
218
|
+
document.querySelector("#very").addEventListener("click", () => {
|
|
219
|
+
alert("Very powerful!");
|
|
220
|
+
});
|
|
221
|
+
```
|
|
222
|
+
|
|
223
|
+
```css
|
|
224
|
+
span {
|
|
225
|
+
color: red;
|
|
226
|
+
}
|
|
227
|
+
```
|
|
228
|
+
|
|
229
|
+
:::
|
|
230
|
+
|
|
231
|
+
- [View Detail](https://theme-hope.vuejs.press/guide/markdown/demo.html)
|
|
232
|
+
|
|
233
|
+
#### Stylize
|
|
234
|
+
|
|
235
|
+
Donate Mr.Hope a cup of coffee. _Recommended_
|
|
236
|
+
|
|
237
|
+
- [View Detail](https://theme-hope.vuejs.press/guide/markdown/stylize.html)
|
|
238
|
+
|
|
239
|
+
#### Playground
|
|
240
|
+
|
|
241
|
+
::: playground#ts TS demo
|
|
242
|
+
|
|
243
|
+
@file index.ts
|
|
244
|
+
|
|
245
|
+
```ts
|
|
246
|
+
const msg = "hello world";
|
|
247
|
+
|
|
248
|
+
const speak = (msg: string) => console.log(msg);
|
|
249
|
+
|
|
250
|
+
speak(msg);
|
|
251
|
+
```
|
|
252
|
+
|
|
253
|
+
:::
|
|
254
|
+
|
|
255
|
+
- [View Detail](https://theme-hope.vuejs.press/guide/markdown/playground.html)
|
|
256
|
+
|
|
202
257
|
#### Chart
|
|
203
258
|
|
|
204
259
|
::: chart A Scatter Chart
|
|
@@ -307,61 +362,6 @@ $$
|
|
|
307
362
|
|
|
308
363
|
- [View Detail](https://theme-hope.vuejs.press/guide/markdown/tex.html)
|
|
309
364
|
|
|
310
|
-
#### Include files
|
|
311
|
-
|
|
312
|
-
<!-- @include: ./README.md{11-17} -->
|
|
313
|
-
|
|
314
|
-
- [View Detail](https://theme-hope.vuejs.press/guide/markdown/include.html)
|
|
315
|
-
|
|
316
|
-
#### Code Demo
|
|
317
|
-
|
|
318
|
-
::: normal-demo A normal demo
|
|
319
|
-
|
|
320
|
-
```html
|
|
321
|
-
<h1>VuePress Theme Hope</h1>
|
|
322
|
-
<p>Is <span id="very">very</span> powerful!</p>
|
|
323
|
-
```
|
|
324
|
-
|
|
325
|
-
```js
|
|
326
|
-
document.querySelector("#very").addEventListener("click", () => {
|
|
327
|
-
alert("Very powerful!");
|
|
328
|
-
});
|
|
329
|
-
```
|
|
330
|
-
|
|
331
|
-
```css
|
|
332
|
-
span {
|
|
333
|
-
color: red;
|
|
334
|
-
}
|
|
335
|
-
```
|
|
336
|
-
|
|
337
|
-
:::
|
|
338
|
-
|
|
339
|
-
- [View Detail](https://theme-hope.vuejs.press/guide/markdown/demo.html)
|
|
340
|
-
|
|
341
|
-
#### Stylize
|
|
342
|
-
|
|
343
|
-
Donate Mr.Hope a cup of coffee. _Recommended_
|
|
344
|
-
|
|
345
|
-
- [View Detail](https://theme-hope.vuejs.press/guide/markdown/stylize.html)
|
|
346
|
-
|
|
347
|
-
#### Playground
|
|
348
|
-
|
|
349
|
-
::: playground#ts TS demo
|
|
350
|
-
|
|
351
|
-
@file index.ts
|
|
352
|
-
|
|
353
|
-
```ts
|
|
354
|
-
const msg = "hello world";
|
|
355
|
-
|
|
356
|
-
const speak = (msg: string) => console.log(msg);
|
|
357
|
-
|
|
358
|
-
speak(msg);
|
|
359
|
-
```
|
|
360
|
-
|
|
361
|
-
:::
|
|
362
|
-
|
|
363
|
-
- [View Detail](https://theme-hope.vuejs.press/guide/markdown/playground.html)
|
|
364
|
-
|
|
365
365
|
#### Vue Playground
|
|
366
366
|
|
|
367
367
|
::: vue-playground Vue Playground
|
|
@@ -179,6 +179,61 @@ color: rgba(253, 230, 138, 0.15)
|
|
|
179
179
|
|
|
180
180
|
- [查看详情](https://theme-hope.vuejs.press/zh/guide/markdown/card.html)
|
|
181
181
|
|
|
182
|
+
#### 导入文件
|
|
183
|
+
|
|
184
|
+
<!-- @include: ./README.md{11-17} -->
|
|
185
|
+
|
|
186
|
+
- [查看详情](https://theme-hope.vuejs.press/zh/guide/markdown/include.html)
|
|
187
|
+
|
|
188
|
+
#### 代码演示
|
|
189
|
+
|
|
190
|
+
::: normal-demo 一个普通 Demo
|
|
191
|
+
|
|
192
|
+
```html
|
|
193
|
+
<h1>VuePress Theme Hope</h1>
|
|
194
|
+
<p><span id="very">非常</span>强大!</p>
|
|
195
|
+
```
|
|
196
|
+
|
|
197
|
+
```js
|
|
198
|
+
document.querySelector("#very").addEventListener("click", () => {
|
|
199
|
+
alert("非常强大");
|
|
200
|
+
});
|
|
201
|
+
```
|
|
202
|
+
|
|
203
|
+
```css
|
|
204
|
+
span {
|
|
205
|
+
color: red;
|
|
206
|
+
}
|
|
207
|
+
```
|
|
208
|
+
|
|
209
|
+
:::
|
|
210
|
+
|
|
211
|
+
- [查看详情](https://theme-hope.vuejs.press/zh/guide/markdown/demo.html)
|
|
212
|
+
|
|
213
|
+
#### 样式化
|
|
214
|
+
|
|
215
|
+
向 Mr.Hope 捐赠一杯咖啡。 _Recommended_
|
|
216
|
+
|
|
217
|
+
- [查看详情](https://theme-hope.vuejs.press/zh/guide/markdown/stylize.html)
|
|
218
|
+
|
|
219
|
+
#### 交互演示
|
|
220
|
+
|
|
221
|
+
::: playground#ts TS 案例
|
|
222
|
+
|
|
223
|
+
@file index.ts
|
|
224
|
+
|
|
225
|
+
```ts
|
|
226
|
+
const msg = "hello world";
|
|
227
|
+
|
|
228
|
+
const speak = (msg: string) => console.log(msg);
|
|
229
|
+
|
|
230
|
+
speak(msg);
|
|
231
|
+
```
|
|
232
|
+
|
|
233
|
+
:::
|
|
234
|
+
|
|
235
|
+
- [查看详情](https://theme-hope.vuejs.press/zh/guide/markdown/playground.html)
|
|
236
|
+
|
|
182
237
|
#### 图表
|
|
183
238
|
|
|
184
239
|
::: chart 一个散点图案例
|
|
@@ -287,61 +342,6 @@ $$
|
|
|
287
342
|
|
|
288
343
|
- [查看详情](https://theme-hope.vuejs.press/zh/guide/markdown/tex.html)
|
|
289
344
|
|
|
290
|
-
#### 导入文件
|
|
291
|
-
|
|
292
|
-
<!-- @include: ./README.md{11-17} -->
|
|
293
|
-
|
|
294
|
-
- [查看详情](https://theme-hope.vuejs.press/zh/guide/markdown/include.html)
|
|
295
|
-
|
|
296
|
-
#### 代码演示
|
|
297
|
-
|
|
298
|
-
::: normal-demo 一个普通 Demo
|
|
299
|
-
|
|
300
|
-
```html
|
|
301
|
-
<h1>VuePress Theme Hope</h1>
|
|
302
|
-
<p><span id="very">非常</span>强大!</p>
|
|
303
|
-
```
|
|
304
|
-
|
|
305
|
-
```js
|
|
306
|
-
document.querySelector("#very").addEventListener("click", () => {
|
|
307
|
-
alert("非常强大");
|
|
308
|
-
});
|
|
309
|
-
```
|
|
310
|
-
|
|
311
|
-
```css
|
|
312
|
-
span {
|
|
313
|
-
color: red;
|
|
314
|
-
}
|
|
315
|
-
```
|
|
316
|
-
|
|
317
|
-
:::
|
|
318
|
-
|
|
319
|
-
- [查看详情](https://theme-hope.vuejs.press/zh/guide/markdown/demo.html)
|
|
320
|
-
|
|
321
|
-
#### 样式化
|
|
322
|
-
|
|
323
|
-
向 Mr.Hope 捐赠一杯咖啡。 _Recommended_
|
|
324
|
-
|
|
325
|
-
- [查看详情](https://theme-hope.vuejs.press/zh/guide/markdown/stylize.html)
|
|
326
|
-
|
|
327
|
-
#### 交互演示
|
|
328
|
-
|
|
329
|
-
::: playground#ts TS 案例
|
|
330
|
-
|
|
331
|
-
@file index.ts
|
|
332
|
-
|
|
333
|
-
```ts
|
|
334
|
-
const msg = "hello world";
|
|
335
|
-
|
|
336
|
-
const speak = (msg: string) => console.log(msg);
|
|
337
|
-
|
|
338
|
-
speak(msg);
|
|
339
|
-
```
|
|
340
|
-
|
|
341
|
-
:::
|
|
342
|
-
|
|
343
|
-
- [查看详情](https://theme-hope.vuejs.press/zh/guide/markdown/playground.html)
|
|
344
|
-
|
|
345
345
|
#### Vue 交互演示
|
|
346
346
|
|
|
347
347
|
::: vue-playground Vue 交互演示
|
|
@@ -52,25 +52,47 @@ export default hopeTheme({
|
|
|
52
52
|
mdEnhance: {
|
|
53
53
|
align: true,
|
|
54
54
|
attrs: true,
|
|
55
|
-
|
|
55
|
+
card: true,
|
|
56
|
+
|
|
57
|
+
// install chart.js before enabling it
|
|
58
|
+
// chart: true,
|
|
59
|
+
|
|
56
60
|
codetabs: true,
|
|
57
61
|
demo: true,
|
|
58
|
-
|
|
62
|
+
|
|
63
|
+
// install echarts before enabling it
|
|
64
|
+
// echarts: true,
|
|
65
|
+
|
|
59
66
|
figure: true,
|
|
60
|
-
|
|
67
|
+
|
|
68
|
+
// install flowchart.ts before enabling it
|
|
69
|
+
// flowchart: true,
|
|
70
|
+
|
|
61
71
|
gfm: true,
|
|
62
72
|
imgLazyload: true,
|
|
63
73
|
imgSize: true,
|
|
64
74
|
include: true,
|
|
65
|
-
|
|
75
|
+
|
|
76
|
+
// install katex before enabling it
|
|
77
|
+
// katex: true,
|
|
78
|
+
|
|
79
|
+
// install mathjax-full before enabling it
|
|
80
|
+
// mathjax: true,
|
|
81
|
+
|
|
66
82
|
mark: true,
|
|
67
|
-
|
|
83
|
+
|
|
84
|
+
// install mermaid before enabling it
|
|
85
|
+
// mermaid: true,
|
|
86
|
+
|
|
68
87
|
playground: {
|
|
69
88
|
presets: ["ts", "vue"],
|
|
70
89
|
},
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
90
|
+
|
|
91
|
+
// install reveal.js before enabling it
|
|
92
|
+
// revealJs: {
|
|
93
|
+
// plugins: ["highlight", "math", "search", "notes", "zoom"],
|
|
94
|
+
// },
|
|
95
|
+
|
|
74
96
|
stylize: [
|
|
75
97
|
{
|
|
76
98
|
matcher: "Recommended",
|
|
@@ -88,7 +110,9 @@ export default hopeTheme({
|
|
|
88
110
|
sup: true,
|
|
89
111
|
tabs: true,
|
|
90
112
|
vPre: true,
|
|
91
|
-
|
|
113
|
+
|
|
114
|
+
// install @vue/repl before enabling it
|
|
115
|
+
// vuePlayground: true,
|
|
92
116
|
},
|
|
93
117
|
|
|
94
118
|
// uncomment these if you want a pwa
|
|
@@ -77,25 +77,47 @@ export default hopeTheme({
|
|
|
77
77
|
mdEnhance: {
|
|
78
78
|
align: true,
|
|
79
79
|
attrs: true,
|
|
80
|
-
|
|
80
|
+
card: true,
|
|
81
|
+
|
|
82
|
+
// install chart.js before enabling it
|
|
83
|
+
// chart: true,
|
|
84
|
+
|
|
81
85
|
codetabs: true,
|
|
82
86
|
demo: true,
|
|
83
|
-
|
|
87
|
+
|
|
88
|
+
// install echarts before enabling it
|
|
89
|
+
// echarts: true,
|
|
90
|
+
|
|
84
91
|
figure: true,
|
|
85
|
-
|
|
92
|
+
|
|
93
|
+
// install flowchart.ts before enabling it
|
|
94
|
+
// flowchart: true,
|
|
95
|
+
|
|
86
96
|
gfm: true,
|
|
87
97
|
imgLazyload: true,
|
|
88
98
|
imgSize: true,
|
|
89
99
|
include: true,
|
|
90
|
-
|
|
100
|
+
|
|
101
|
+
// install katex before enabling it
|
|
102
|
+
// katex: true,
|
|
103
|
+
|
|
104
|
+
// install mathjax-full before enabling it
|
|
105
|
+
// mathjax: true,
|
|
106
|
+
|
|
91
107
|
mark: true,
|
|
92
|
-
|
|
108
|
+
|
|
109
|
+
// install mermaid before enabling it
|
|
110
|
+
// mermaid: true,
|
|
111
|
+
|
|
93
112
|
playground: {
|
|
94
113
|
presets: ["ts", "vue"],
|
|
95
114
|
},
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
115
|
+
|
|
116
|
+
// install reveal.js before enabling it
|
|
117
|
+
// revealJs: {
|
|
118
|
+
// plugins: ["highlight", "math", "search", "notes", "zoom"],
|
|
119
|
+
// },
|
|
120
|
+
|
|
99
121
|
stylize: [
|
|
100
122
|
{
|
|
101
123
|
matcher: "Recommended",
|
|
@@ -113,7 +135,9 @@ export default hopeTheme({
|
|
|
113
135
|
sup: true,
|
|
114
136
|
tabs: true,
|
|
115
137
|
vPre: true,
|
|
116
|
-
|
|
138
|
+
|
|
139
|
+
// install @vue/repl before enabling it
|
|
140
|
+
// vuePlayground: true,
|
|
117
141
|
},
|
|
118
142
|
|
|
119
143
|
// uncomment these if you want a pwa
|
|
@@ -53,25 +53,47 @@ export default hopeTheme({
|
|
|
53
53
|
mdEnhance: {
|
|
54
54
|
align: true,
|
|
55
55
|
attrs: true,
|
|
56
|
-
|
|
56
|
+
card: true,
|
|
57
|
+
|
|
58
|
+
// install chart.js before enabling it
|
|
59
|
+
// chart: true,
|
|
60
|
+
|
|
57
61
|
codetabs: true,
|
|
58
62
|
demo: true,
|
|
59
|
-
|
|
63
|
+
|
|
64
|
+
// install echarts before enabling it
|
|
65
|
+
// echarts: true,
|
|
66
|
+
|
|
60
67
|
figure: true,
|
|
61
|
-
|
|
68
|
+
|
|
69
|
+
// install flowchart.ts before enabling it
|
|
70
|
+
// flowchart: true,
|
|
71
|
+
|
|
62
72
|
gfm: true,
|
|
63
73
|
imgLazyload: true,
|
|
64
74
|
imgSize: true,
|
|
65
75
|
include: true,
|
|
66
|
-
|
|
76
|
+
|
|
77
|
+
// install katex before enabling it
|
|
78
|
+
// katex: true,
|
|
79
|
+
|
|
80
|
+
// install mathjax-full before enabling it
|
|
81
|
+
// mathjax: true,
|
|
82
|
+
|
|
67
83
|
mark: true,
|
|
68
|
-
|
|
84
|
+
|
|
85
|
+
// install mermaid before enabling it
|
|
86
|
+
// mermaid: true,
|
|
87
|
+
|
|
69
88
|
playground: {
|
|
70
89
|
presets: ["ts", "vue"],
|
|
71
90
|
},
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
91
|
+
|
|
92
|
+
// install reveal.js before enabling it
|
|
93
|
+
// revealJs: {
|
|
94
|
+
// plugins: ["highlight", "math", "search", "notes", "zoom"],
|
|
95
|
+
// },
|
|
96
|
+
|
|
75
97
|
stylize: [
|
|
76
98
|
{
|
|
77
99
|
matcher: "Recommended",
|
|
@@ -89,7 +111,9 @@ export default hopeTheme({
|
|
|
89
111
|
sup: true,
|
|
90
112
|
tabs: true,
|
|
91
113
|
vPre: true,
|
|
92
|
-
|
|
114
|
+
|
|
115
|
+
// install @vue/repl before enabling it
|
|
116
|
+
// vuePlayground: true,
|
|
93
117
|
},
|
|
94
118
|
|
|
95
119
|
// uncomment these if you want a pwa
|
|
@@ -199,6 +199,61 @@ color: rgba(253, 230, 138, 0.15)
|
|
|
199
199
|
|
|
200
200
|
- [View Detail](https://theme-hope.vuejs.press/guide/markdown/card.html)
|
|
201
201
|
|
|
202
|
+
#### Include files
|
|
203
|
+
|
|
204
|
+
<!-- @include: ./README.md{11-17} -->
|
|
205
|
+
|
|
206
|
+
- [View Detail](https://theme-hope.vuejs.press/guide/markdown/include.html)
|
|
207
|
+
|
|
208
|
+
#### Code Demo
|
|
209
|
+
|
|
210
|
+
::: normal-demo A normal demo
|
|
211
|
+
|
|
212
|
+
```html
|
|
213
|
+
<h1>VuePress Theme Hope</h1>
|
|
214
|
+
<p>Is <span id="very">very</span> powerful!</p>
|
|
215
|
+
```
|
|
216
|
+
|
|
217
|
+
```js
|
|
218
|
+
document.querySelector("#very").addEventListener("click", () => {
|
|
219
|
+
alert("Very powerful!");
|
|
220
|
+
});
|
|
221
|
+
```
|
|
222
|
+
|
|
223
|
+
```css
|
|
224
|
+
span {
|
|
225
|
+
color: red;
|
|
226
|
+
}
|
|
227
|
+
```
|
|
228
|
+
|
|
229
|
+
:::
|
|
230
|
+
|
|
231
|
+
- [View Detail](https://theme-hope.vuejs.press/guide/markdown/demo.html)
|
|
232
|
+
|
|
233
|
+
#### Stylize
|
|
234
|
+
|
|
235
|
+
Donate Mr.Hope a cup of coffee. _Recommended_
|
|
236
|
+
|
|
237
|
+
- [View Detail](https://theme-hope.vuejs.press/guide/markdown/stylize.html)
|
|
238
|
+
|
|
239
|
+
#### Playground
|
|
240
|
+
|
|
241
|
+
::: playground#ts TS demo
|
|
242
|
+
|
|
243
|
+
@file index.ts
|
|
244
|
+
|
|
245
|
+
```ts
|
|
246
|
+
const msg = "hello world";
|
|
247
|
+
|
|
248
|
+
const speak = (msg: string) => console.log(msg);
|
|
249
|
+
|
|
250
|
+
speak(msg);
|
|
251
|
+
```
|
|
252
|
+
|
|
253
|
+
:::
|
|
254
|
+
|
|
255
|
+
- [View Detail](https://theme-hope.vuejs.press/guide/markdown/playground.html)
|
|
256
|
+
|
|
202
257
|
#### Chart
|
|
203
258
|
|
|
204
259
|
::: chart A Scatter Chart
|
|
@@ -307,61 +362,6 @@ $$
|
|
|
307
362
|
|
|
308
363
|
- [View Detail](https://theme-hope.vuejs.press/guide/markdown/tex.html)
|
|
309
364
|
|
|
310
|
-
#### Include files
|
|
311
|
-
|
|
312
|
-
<!-- @include: ./README.md{11-17} -->
|
|
313
|
-
|
|
314
|
-
- [View Detail](https://theme-hope.vuejs.press/guide/markdown/include.html)
|
|
315
|
-
|
|
316
|
-
#### Code Demo
|
|
317
|
-
|
|
318
|
-
::: normal-demo A normal demo
|
|
319
|
-
|
|
320
|
-
```html
|
|
321
|
-
<h1>VuePress Theme Hope</h1>
|
|
322
|
-
<p>Is <span id="very">very</span> powerful!</p>
|
|
323
|
-
```
|
|
324
|
-
|
|
325
|
-
```js
|
|
326
|
-
document.querySelector("#very").addEventListener("click", () => {
|
|
327
|
-
alert("Very powerful!");
|
|
328
|
-
});
|
|
329
|
-
```
|
|
330
|
-
|
|
331
|
-
```css
|
|
332
|
-
span {
|
|
333
|
-
color: red;
|
|
334
|
-
}
|
|
335
|
-
```
|
|
336
|
-
|
|
337
|
-
:::
|
|
338
|
-
|
|
339
|
-
- [View Detail](https://theme-hope.vuejs.press/guide/markdown/demo.html)
|
|
340
|
-
|
|
341
|
-
#### Stylize
|
|
342
|
-
|
|
343
|
-
Donate Mr.Hope a cup of coffee. _Recommended_
|
|
344
|
-
|
|
345
|
-
- [View Detail](https://theme-hope.vuejs.press/guide/markdown/stylize.html)
|
|
346
|
-
|
|
347
|
-
#### Playground
|
|
348
|
-
|
|
349
|
-
::: playground#ts TS demo
|
|
350
|
-
|
|
351
|
-
@file index.ts
|
|
352
|
-
|
|
353
|
-
```ts
|
|
354
|
-
const msg = "hello world";
|
|
355
|
-
|
|
356
|
-
const speak = (msg: string) => console.log(msg);
|
|
357
|
-
|
|
358
|
-
speak(msg);
|
|
359
|
-
```
|
|
360
|
-
|
|
361
|
-
:::
|
|
362
|
-
|
|
363
|
-
- [View Detail](https://theme-hope.vuejs.press/guide/markdown/playground.html)
|
|
364
|
-
|
|
365
365
|
#### Vue Playground
|
|
366
366
|
|
|
367
367
|
::: vue-playground Vue Playground
|
|
@@ -179,6 +179,61 @@ color: rgba(253, 230, 138, 0.15)
|
|
|
179
179
|
|
|
180
180
|
- [查看详情](https://theme-hope.vuejs.press/zh/guide/markdown/card.html)
|
|
181
181
|
|
|
182
|
+
#### 导入文件
|
|
183
|
+
|
|
184
|
+
<!-- @include: ./README.md{11-17} -->
|
|
185
|
+
|
|
186
|
+
- [查看详情](https://theme-hope.vuejs.press/zh/guide/markdown/include.html)
|
|
187
|
+
|
|
188
|
+
#### 代码演示
|
|
189
|
+
|
|
190
|
+
::: normal-demo 一个普通 Demo
|
|
191
|
+
|
|
192
|
+
```html
|
|
193
|
+
<h1>VuePress Theme Hope</h1>
|
|
194
|
+
<p><span id="very">非常</span>强大!</p>
|
|
195
|
+
```
|
|
196
|
+
|
|
197
|
+
```js
|
|
198
|
+
document.querySelector("#very").addEventListener("click", () => {
|
|
199
|
+
alert("非常强大");
|
|
200
|
+
});
|
|
201
|
+
```
|
|
202
|
+
|
|
203
|
+
```css
|
|
204
|
+
span {
|
|
205
|
+
color: red;
|
|
206
|
+
}
|
|
207
|
+
```
|
|
208
|
+
|
|
209
|
+
:::
|
|
210
|
+
|
|
211
|
+
- [查看详情](https://theme-hope.vuejs.press/zh/guide/markdown/demo.html)
|
|
212
|
+
|
|
213
|
+
#### 样式化
|
|
214
|
+
|
|
215
|
+
向 Mr.Hope 捐赠一杯咖啡。 _Recommended_
|
|
216
|
+
|
|
217
|
+
- [查看详情](https://theme-hope.vuejs.press/zh/guide/markdown/stylize.html)
|
|
218
|
+
|
|
219
|
+
#### 交互演示
|
|
220
|
+
|
|
221
|
+
::: playground#ts TS 案例
|
|
222
|
+
|
|
223
|
+
@file index.ts
|
|
224
|
+
|
|
225
|
+
```ts
|
|
226
|
+
const msg = "hello world";
|
|
227
|
+
|
|
228
|
+
const speak = (msg: string) => console.log(msg);
|
|
229
|
+
|
|
230
|
+
speak(msg);
|
|
231
|
+
```
|
|
232
|
+
|
|
233
|
+
:::
|
|
234
|
+
|
|
235
|
+
- [查看详情](https://theme-hope.vuejs.press/zh/guide/markdown/playground.html)
|
|
236
|
+
|
|
182
237
|
#### 图表
|
|
183
238
|
|
|
184
239
|
::: chart 一个散点图案例
|
|
@@ -287,61 +342,6 @@ $$
|
|
|
287
342
|
|
|
288
343
|
- [查看详情](https://theme-hope.vuejs.press/zh/guide/markdown/tex.html)
|
|
289
344
|
|
|
290
|
-
#### 导入文件
|
|
291
|
-
|
|
292
|
-
<!-- @include: ./README.md{11-17} -->
|
|
293
|
-
|
|
294
|
-
- [查看详情](https://theme-hope.vuejs.press/zh/guide/markdown/include.html)
|
|
295
|
-
|
|
296
|
-
#### 代码演示
|
|
297
|
-
|
|
298
|
-
::: normal-demo 一个普通 Demo
|
|
299
|
-
|
|
300
|
-
```html
|
|
301
|
-
<h1>VuePress Theme Hope</h1>
|
|
302
|
-
<p><span id="very">非常</span>强大!</p>
|
|
303
|
-
```
|
|
304
|
-
|
|
305
|
-
```js
|
|
306
|
-
document.querySelector("#very").addEventListener("click", () => {
|
|
307
|
-
alert("非常强大");
|
|
308
|
-
});
|
|
309
|
-
```
|
|
310
|
-
|
|
311
|
-
```css
|
|
312
|
-
span {
|
|
313
|
-
color: red;
|
|
314
|
-
}
|
|
315
|
-
```
|
|
316
|
-
|
|
317
|
-
:::
|
|
318
|
-
|
|
319
|
-
- [查看详情](https://theme-hope.vuejs.press/zh/guide/markdown/demo.html)
|
|
320
|
-
|
|
321
|
-
#### 样式化
|
|
322
|
-
|
|
323
|
-
向 Mr.Hope 捐赠一杯咖啡。 _Recommended_
|
|
324
|
-
|
|
325
|
-
- [查看详情](https://theme-hope.vuejs.press/zh/guide/markdown/stylize.html)
|
|
326
|
-
|
|
327
|
-
#### 交互演示
|
|
328
|
-
|
|
329
|
-
::: playground#ts TS 案例
|
|
330
|
-
|
|
331
|
-
@file index.ts
|
|
332
|
-
|
|
333
|
-
```ts
|
|
334
|
-
const msg = "hello world";
|
|
335
|
-
|
|
336
|
-
const speak = (msg: string) => console.log(msg);
|
|
337
|
-
|
|
338
|
-
speak(msg);
|
|
339
|
-
```
|
|
340
|
-
|
|
341
|
-
:::
|
|
342
|
-
|
|
343
|
-
- [查看详情](https://theme-hope.vuejs.press/zh/guide/markdown/playground.html)
|
|
344
|
-
|
|
345
345
|
#### Vue 交互演示
|
|
346
346
|
|
|
347
347
|
::: vue-playground Vue 交互演示
|