create-vuepress-theme-hope 2.0.0-rc.39 → 2.0.0-rc.41
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 +2 -2
- package/template/blog/config/en/navbar.ts +1 -0
- package/template/blog/config/en/theme.ts +2 -0
- package/template/blog/config/multi/navbar/en.ts +1 -0
- package/template/blog/config/multi/navbar/zh.ts +1 -0
- package/template/blog/config/multi/theme.ts +2 -0
- package/template/blog/config/zh/navbar.ts +1 -0
- package/template/blog/config/zh/theme.ts +2 -0
- package/template/blog/en/demo/markdown.md +144 -108
- package/template/blog/en/portfolio.md +22 -0
- package/template/blog/zh/demo/markdown.md +152 -96
- package/template/blog/zh/portfolio.md +23 -0
- package/template/docs/config/en/theme.ts +2 -0
- package/template/docs/config/multi/theme.ts +2 -0
- package/template/docs/config/zh/theme.ts +2 -0
- package/template/docs/en/demo/markdown.md +144 -108
- package/template/docs/zh/demo/markdown.md +152 -96
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "create-vuepress-theme-hope",
|
|
3
|
-
"version": "2.0.0-rc.
|
|
3
|
+
"version": "2.0.0-rc.41",
|
|
4
4
|
"description": "Create vuepress-theme-hope demo project helper",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"create",
|
|
@@ -39,7 +39,7 @@
|
|
|
39
39
|
],
|
|
40
40
|
"dependencies": {
|
|
41
41
|
"cac": "6.7.14",
|
|
42
|
-
"execa": "9.0.
|
|
42
|
+
"execa": "9.0.2",
|
|
43
43
|
"inquirer": "9.2.20"
|
|
44
44
|
},
|
|
45
45
|
"devDependencies": {
|
|
@@ -42,248 +42,284 @@ For these extensions, please read [Markdown extensions in VuePress](https://them
|
|
|
42
42
|
|
|
43
43
|
By using [`vuepress-plugin-md-enhance`][md-enhance], the theme extends more Markdown syntax and provides richer writing functions.
|
|
44
44
|
|
|
45
|
-
####
|
|
45
|
+
#### Code Tabs
|
|
46
46
|
|
|
47
|
-
:::
|
|
47
|
+
::: code-tabs#shell
|
|
48
48
|
|
|
49
|
-
|
|
49
|
+
@tab pnpm
|
|
50
50
|
|
|
51
|
-
|
|
51
|
+
```bash
|
|
52
|
+
pnpm add -D vuepress-theme-hope
|
|
53
|
+
```
|
|
52
54
|
|
|
53
|
-
|
|
55
|
+
@tab yarn
|
|
54
56
|
|
|
55
|
-
|
|
57
|
+
```bash
|
|
58
|
+
yarn add -D vuepress-theme-hope
|
|
59
|
+
```
|
|
56
60
|
|
|
57
|
-
|
|
58
|
-
|
|
61
|
+
@tab:active npm
|
|
62
|
+
|
|
63
|
+
```bash
|
|
64
|
+
npm i -D vuepress-theme-hope
|
|
59
65
|
```
|
|
60
66
|
|
|
61
67
|
:::
|
|
62
68
|
|
|
63
|
-
|
|
69
|
+
- [View Detail](https://theme-hope.vuejs.press/guide/markdown/code/code-tabs.html)
|
|
64
70
|
|
|
65
|
-
|
|
71
|
+
#### Tabs
|
|
66
72
|
|
|
67
|
-
:::
|
|
73
|
+
::: tabs#fruit
|
|
68
74
|
|
|
69
|
-
|
|
75
|
+
@tab apple
|
|
70
76
|
|
|
71
|
-
|
|
77
|
+
Apple
|
|
72
78
|
|
|
73
|
-
|
|
79
|
+
@tab banana
|
|
74
80
|
|
|
75
|
-
|
|
81
|
+
Banana
|
|
76
82
|
|
|
77
|
-
|
|
83
|
+
@tab orange
|
|
84
|
+
|
|
85
|
+
Orange
|
|
78
86
|
|
|
79
87
|
:::
|
|
80
88
|
|
|
81
|
-
|
|
89
|
+
- [View Detail](https://theme-hope.vuejs.press/guide/markdown/content/tabs.html)
|
|
82
90
|
|
|
83
|
-
|
|
91
|
+
#### Footnote
|
|
84
92
|
|
|
85
|
-
|
|
93
|
+
This text has footnote[^first].
|
|
86
94
|
|
|
87
|
-
|
|
95
|
+
[^first]: This is footnote content
|
|
88
96
|
|
|
89
|
-
|
|
97
|
+
- [View Detail](https://theme-hope.vuejs.press/guide/markdown/content/footnote.html)
|
|
90
98
|
|
|
91
|
-
|
|
99
|
+
#### Include files
|
|
92
100
|
|
|
93
|
-
@
|
|
101
|
+
<!-- @include: ./README.md{11-17} -->
|
|
94
102
|
|
|
95
|
-
|
|
103
|
+
- [View Detail](https://theme-hope.vuejs.press/guide/markdown/content/include.html)
|
|
96
104
|
|
|
97
|
-
|
|
105
|
+
#### TeX
|
|
98
106
|
|
|
99
|
-
|
|
107
|
+
$$
|
|
108
|
+
\frac {\partial^r} {\partial \omega^r} \left(\frac {y^{\omega}} {\omega}\right)
|
|
109
|
+
= \left(\frac {y^{\omega}} {\omega}\right) \left\{(\log y)^r + \sum_{i=1}^r \frac {(-1)^i r \cdots (r-i+1) (\log y)^{r-i}} {\omega^i} \right\}
|
|
110
|
+
$$
|
|
100
111
|
|
|
101
|
-
|
|
112
|
+
- [View Detail](https://theme-hope.vuejs.press/guide/markdown/grammar/tex.html)
|
|
102
113
|
|
|
103
|
-
|
|
114
|
+
#### Tasklist
|
|
104
115
|
|
|
105
|
-
|
|
116
|
+
- [x] Plan A
|
|
117
|
+
- [ ] Plan B
|
|
106
118
|
|
|
107
|
-
|
|
119
|
+
[View Detail](https://theme-hope.vuejs.press/guide/markdown/grammar/tasklist.html)
|
|
108
120
|
|
|
109
|
-
####
|
|
121
|
+
#### Image Enhancement
|
|
110
122
|
|
|
111
|
-
|
|
123
|
+
Support setting color scheme and size.
|
|
112
124
|
|
|
113
|
-
|
|
125
|
+
- [View Detail](https://theme-hope.vuejs.press/guide/markdown/grammar/image.html)
|
|
114
126
|
|
|
115
|
-
|
|
116
|
-
pnpm add -D vuepress-theme-hope
|
|
117
|
-
```
|
|
127
|
+
#### Superscript and Subscript
|
|
118
128
|
|
|
119
|
-
|
|
129
|
+
19^th^ H~2~O
|
|
120
130
|
|
|
121
|
-
|
|
122
|
-
yarn add -D vuepress-theme-hope
|
|
123
|
-
```
|
|
131
|
+
- [View Detail](https://theme-hope.vuejs.press/guide/markdown/grammar/sup-sub.html)
|
|
124
132
|
|
|
125
|
-
|
|
133
|
+
#### Component
|
|
126
134
|
|
|
127
|
-
```
|
|
128
|
-
|
|
135
|
+
```component VPCard
|
|
136
|
+
title: Mr.Hope
|
|
137
|
+
desc: Where there is light, there is hope
|
|
138
|
+
logo: https://mister-hope.com/logo.svg
|
|
139
|
+
link: https://mister-hope.com
|
|
140
|
+
background: rgba(253, 230, 138, 0.15)
|
|
129
141
|
```
|
|
130
142
|
|
|
131
|
-
|
|
143
|
+
- [View Detail](https://theme-hope.vuejs.press/guide/component/grammar.html)
|
|
132
144
|
|
|
133
|
-
|
|
145
|
+
#### Hint box and GFM alerts
|
|
134
146
|
|
|
135
|
-
|
|
147
|
+
::: v-pre
|
|
136
148
|
|
|
137
|
-
|
|
149
|
+
Safely use {{ variable }} in Markdown.
|
|
138
150
|
|
|
139
|
-
|
|
151
|
+
:::
|
|
140
152
|
|
|
141
|
-
|
|
153
|
+
::: info Custom Title
|
|
142
154
|
|
|
143
|
-
|
|
155
|
+
A custom information container with `code`, [link](#markdown-extension).
|
|
144
156
|
|
|
145
|
-
|
|
157
|
+
```js
|
|
158
|
+
const a = 1;
|
|
159
|
+
```
|
|
146
160
|
|
|
147
161
|
:::
|
|
148
162
|
|
|
149
|
-
:::
|
|
163
|
+
::: tip Custom Title
|
|
150
164
|
|
|
151
|
-
|
|
165
|
+
A custom tip container
|
|
152
166
|
|
|
153
167
|
:::
|
|
154
168
|
|
|
155
|
-
|
|
169
|
+
::: warning Custom Title
|
|
156
170
|
|
|
157
|
-
|
|
171
|
+
A custom warning container
|
|
158
172
|
|
|
159
|
-
|
|
173
|
+
:::
|
|
160
174
|
|
|
161
|
-
|
|
175
|
+
::: caution Custom Title
|
|
162
176
|
|
|
163
|
-
|
|
177
|
+
A custom caution container
|
|
164
178
|
|
|
165
|
-
|
|
179
|
+
:::
|
|
166
180
|
|
|
167
|
-
|
|
181
|
+
::: details Custom Title
|
|
168
182
|
|
|
169
|
-
|
|
183
|
+
A custom details container
|
|
170
184
|
|
|
171
|
-
|
|
185
|
+
:::
|
|
172
186
|
|
|
173
|
-
|
|
187
|
+
- [GitHub Alert](https://theme-hope.vuejs.press/guide/markdown/stylize/alert.html)
|
|
188
|
+
- [Hint boxes](https://theme-hope.vuejs.press/guide/markdown/stylize/hint.html)
|
|
174
189
|
|
|
175
|
-
|
|
190
|
+
#### Align
|
|
176
191
|
|
|
177
|
-
|
|
192
|
+
::: center
|
|
178
193
|
|
|
179
|
-
|
|
180
|
-
- [ ] Plan B
|
|
194
|
+
I am center
|
|
181
195
|
|
|
182
|
-
|
|
196
|
+
:::
|
|
183
197
|
|
|
184
|
-
|
|
198
|
+
::: right
|
|
185
199
|
|
|
186
|
-
|
|
200
|
+
I am right align
|
|
187
201
|
|
|
188
|
-
|
|
202
|
+
:::
|
|
189
203
|
|
|
190
|
-
|
|
204
|
+
- [View Detail](https://theme-hope.vuejs.press/guide/markdown/stylize/align.html)
|
|
191
205
|
|
|
192
|
-
|
|
193
|
-
title: Mr.Hope
|
|
194
|
-
desc: Where there is light, there is hope
|
|
195
|
-
logo: https://mister-hope.com/logo.svg
|
|
196
|
-
link: https://mister-hope.com
|
|
197
|
-
background: rgba(253, 230, 138, 0.15)
|
|
198
|
-
```
|
|
206
|
+
#### Attrs
|
|
199
207
|
|
|
200
|
-
|
|
208
|
+
A **word**{#word} having id.
|
|
201
209
|
|
|
202
|
-
|
|
210
|
+
- [View Detail](https://theme-hope.vuejs.press/guide/markdown/stylize/attrs.html)
|
|
203
211
|
|
|
204
|
-
|
|
212
|
+
#### Mark
|
|
213
|
+
|
|
214
|
+
You can mark ==important words== .
|
|
215
|
+
|
|
216
|
+
- [View Detail](https://theme-hope.vuejs.press/guide/markdown/stylize/mark.html)
|
|
217
|
+
|
|
218
|
+
#### Spoiler
|
|
205
219
|
|
|
206
|
-
|
|
220
|
+
VuePress Theme Hope is !!powerful!!.
|
|
221
|
+
|
|
222
|
+
- [View Detail](https://theme-hope.vuejs.press/guide/markdown/stylize/spoiler.html)
|
|
207
223
|
|
|
208
224
|
#### Stylize
|
|
209
225
|
|
|
210
226
|
Donate Mr.Hope a cup of coffee. _Recommended_
|
|
211
227
|
|
|
212
|
-
- [View Detail](https://theme-hope.vuejs.press/guide/markdown/stylize.html)
|
|
228
|
+
- [View Detail](https://theme-hope.vuejs.press/guide/markdown/stylize/stylize.html)
|
|
213
229
|
|
|
214
|
-
####
|
|
230
|
+
#### Reveal.js
|
|
215
231
|
|
|
216
|
-
|
|
217
|
-
\frac {\partial^r} {\partial \omega^r} \left(\frac {y^{\omega}} {\omega}\right)
|
|
218
|
-
= \left(\frac {y^{\omega}} {\omega}\right) \left\{(\log y)^r + \sum_{i=1}^r \frac {(-1)^i r \cdots (r-i+1) (\log y)^{r-i}} {\omega^i} \right\}
|
|
219
|
-
$$
|
|
232
|
+
<iframe src="https://plugin-md-enhance-demo.vuejs.press/snippet/revealjs.html" width="100%" height="400"/>
|
|
220
233
|
|
|
221
|
-
- [View Detail](https://theme-hope.vuejs.press/guide/markdown/
|
|
234
|
+
- [View Detail](https://theme-hope.vuejs.press/guide/markdown/content/revealjs.html)
|
|
222
235
|
|
|
223
236
|
#### Chart.js
|
|
224
237
|
|
|
225
238
|
<iframe src="https://plugin-md-enhance-demo.vuejs.press/snippet/chartjs.html" width="100%" height="450"/>
|
|
226
239
|
|
|
227
|
-
- [View Detail](https://theme-hope.vuejs.press/guide/markdown/chartjs.html)
|
|
240
|
+
- [View Detail](https://theme-hope.vuejs.press/guide/markdown/chart/chartjs.html)
|
|
228
241
|
|
|
229
242
|
#### ECharts
|
|
230
243
|
|
|
231
244
|
<iframe src="https://plugin-md-enhance-demo.vuejs.press/snippet/echarts.html" width="100%" height="800"/>
|
|
232
245
|
|
|
233
|
-
- [View Detail](https://theme-hope.vuejs.press/guide/markdown/echarts.html)
|
|
246
|
+
- [View Detail](https://theme-hope.vuejs.press/guide/markdown/chart/echarts.html)
|
|
234
247
|
|
|
235
248
|
#### Flowchart
|
|
236
249
|
|
|
237
250
|
<iframe src="https://plugin-md-enhance-demo.vuejs.press/snippet/flowchart.html" width="100%" height="450"/>
|
|
238
251
|
|
|
239
|
-
- [View Detail](https://theme-hope.vuejs.press/guide/markdown/flowchart.html)
|
|
252
|
+
- [View Detail](https://theme-hope.vuejs.press/guide/markdown/chart/flowchart.html)
|
|
240
253
|
|
|
241
254
|
#### MarkMap
|
|
242
255
|
|
|
243
256
|
<iframe src="https://plugin-md-enhance-demo.vuejs.press/snippet/markmap.html" width="100%" height="380"/>
|
|
244
257
|
|
|
245
|
-
- [View Detail](https://theme-hope.vuejs.press/guide/markdown/markmap.html)
|
|
258
|
+
- [View Detail](https://theme-hope.vuejs.press/guide/markdown/chart/markmap.html)
|
|
246
259
|
|
|
247
260
|
#### Mermaid
|
|
248
261
|
|
|
249
262
|
<iframe src="https://plugin-md-enhance-demo.vuejs.press/snippet/mermaid.html" width="100%" height="620"/>
|
|
250
263
|
|
|
251
|
-
- [View Detail](https://theme-hope.vuejs.press/guide/markdown/mermaid.html)
|
|
264
|
+
- [View Detail](https://theme-hope.vuejs.press/guide/markdown/chart/mermaid.html)
|
|
265
|
+
|
|
266
|
+
#### PlantUML
|
|
267
|
+
|
|
268
|
+
@startuml
|
|
269
|
+
Alice -> Bob: Authentication Request
|
|
270
|
+
|
|
271
|
+
alt successful case
|
|
272
|
+
|
|
273
|
+
Bob -> Alice: Authentication Accepted
|
|
274
|
+
|
|
275
|
+
else some kind of failure
|
|
276
|
+
|
|
277
|
+
Bob -> Alice: Authentication Failure
|
|
278
|
+
group My own label
|
|
279
|
+
Alice -> Log : Log attack start
|
|
280
|
+
loop 1000 times
|
|
281
|
+
Alice -> Bob: DNS Attack
|
|
282
|
+
end
|
|
283
|
+
Alice -> Log : Log attack end
|
|
284
|
+
end
|
|
285
|
+
|
|
286
|
+
else Another type of failure
|
|
287
|
+
|
|
288
|
+
Bob -> Alice: Please repeat
|
|
289
|
+
|
|
290
|
+
end
|
|
291
|
+
@enduml
|
|
292
|
+
|
|
293
|
+
- [View Detail](https://theme-hope.vuejs.press/guide/markdown/chart/plantuml.html)
|
|
252
294
|
|
|
253
295
|
#### Code Demo
|
|
254
296
|
|
|
255
297
|
<iframe src="https://plugin-md-enhance-demo.vuejs.press/snippet/code-demo.html" width="100%" height="450"/>
|
|
256
298
|
|
|
257
|
-
- [View Detail](https://theme-hope.vuejs.press/guide/markdown/demo.html)
|
|
299
|
+
- [View Detail](https://theme-hope.vuejs.press/guide/markdown/code/demo.html)
|
|
258
300
|
|
|
259
301
|
#### Playground
|
|
260
302
|
|
|
261
303
|
<iframe src="https://plugin-md-enhance-demo.vuejs.press/snippet/playground.html" width="100%" height="480"/>
|
|
262
304
|
|
|
263
|
-
- [View Detail](https://theme-hope.vuejs.press/guide/markdown/playground.html)
|
|
305
|
+
- [View Detail](https://theme-hope.vuejs.press/guide/markdown/code/playground.html)
|
|
264
306
|
|
|
265
307
|
#### Kotlin Playground
|
|
266
308
|
|
|
267
309
|
<iframe src="https://plugin-md-enhance-demo.vuejs.press/snippet/kotlin-playground.html" width="100%" height="220"/>
|
|
268
310
|
|
|
269
|
-
- [View Detail](https://theme-hope.vuejs.press/guide/markdown/kotlin-playground.html)
|
|
270
|
-
|
|
271
|
-
#### Vue Playground
|
|
272
|
-
|
|
273
|
-
<iframe src="https://plugin-md-enhance-demo.vuejs.press/snippet/vue-playground.html" width="100%" height="380"/>
|
|
274
|
-
|
|
275
|
-
- [View Detail](https://theme-hope.vuejs.press/guide/markdown/vue-playground.html)
|
|
311
|
+
- [View Detail](https://theme-hope.vuejs.press/guide/markdown/code/kotlin-playground.html)
|
|
276
312
|
|
|
277
313
|
#### Sandpack Playground
|
|
278
314
|
|
|
279
315
|
<iframe src="https://plugin-md-enhance-demo.vuejs.press/snippet/sandpack.html" width="100%" height="380"/>
|
|
280
316
|
|
|
281
|
-
- [View Detail](https://theme-hope.vuejs.press/guide/markdown/sandpack.html)
|
|
317
|
+
- [View Detail](https://theme-hope.vuejs.press/guide/markdown/code/sandpack.html)
|
|
282
318
|
|
|
283
|
-
####
|
|
319
|
+
#### Vue Playground
|
|
284
320
|
|
|
285
|
-
<iframe src="https://plugin-md-enhance-demo.vuejs.press/snippet/
|
|
321
|
+
<iframe src="https://plugin-md-enhance-demo.vuejs.press/snippet/vue-playground.html" width="100%" height="380"/>
|
|
286
322
|
|
|
287
|
-
- [View Detail](https://theme-hope.vuejs.press/guide/markdown/
|
|
323
|
+
- [View Detail](https://theme-hope.vuejs.press/guide/markdown/code/vue-playground.html)
|
|
288
324
|
|
|
289
325
|
[md-enhance]: https://md-enhance.vuejs.press/
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
---
|
|
2
|
+
home: true
|
|
3
|
+
layout: PortfolioHome
|
|
4
|
+
title: Portfolio Home
|
|
5
|
+
icon: home
|
|
6
|
+
name: Conan Edogawa
|
|
7
|
+
avatar: https://theme-hope-assets.vuejs.press/hero/conan.png
|
|
8
|
+
|
|
9
|
+
titles:
|
|
10
|
+
- Genius young detective
|
|
11
|
+
- Lan’s childhood sweetheart
|
|
12
|
+
- The biggest rival of the black organization
|
|
13
|
+
|
|
14
|
+
content: true
|
|
15
|
+
footer: false
|
|
16
|
+
---
|
|
17
|
+
|
|
18
|
+
This is a portfolio home page demo.
|
|
19
|
+
|
|
20
|
+
To use this layout, you should set both `layout: PortfolioHome` and `home: true` in the page front matter.
|
|
21
|
+
|
|
22
|
+
For related configuration docs, please see [portfolio homepage](https://theme-hope.vuejs.press/guide/blog/home.html#portfolio-style-homepage).
|