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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "create-vuepress-theme-hope",
3
- "version": "2.0.0-rc.39",
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.0",
42
+ "execa": "9.0.2",
43
43
  "inquirer": "9.2.20"
44
44
  },
45
45
  "devDependencies": {
@@ -2,6 +2,7 @@ import { navbar } from "vuepress-theme-hope";
2
2
 
3
3
  export default navbar([
4
4
  "/",
5
+ "/portfolio",
5
6
  "/demo/",
6
7
  {
7
8
  text: "Posts",
@@ -108,6 +108,8 @@ export default hopeTheme({
108
108
  imgSize: true,
109
109
  include: true,
110
110
  mark: true,
111
+ plantuml: true,
112
+ spoiler: true,
111
113
  stylize: [
112
114
  {
113
115
  matcher: "Recommended",
@@ -2,6 +2,7 @@ import { navbar } from "vuepress-theme-hope";
2
2
 
3
3
  export const enNavbar = navbar([
4
4
  "/",
5
+ "/portfolio",
5
6
  "/demo/",
6
7
  {
7
8
  text: "Posts",
@@ -2,6 +2,7 @@ import { navbar } from "vuepress-theme-hope";
2
2
 
3
3
  export const zhNavbar = navbar([
4
4
  "/zh/",
5
+ "/zh/portfolio",
5
6
  "/zh/demo/",
6
7
  {
7
8
  text: "博文",
@@ -141,6 +141,8 @@ export default hopeTheme({
141
141
  imgSize: true,
142
142
  include: true,
143
143
  mark: true,
144
+ plantuml: true,
145
+ spoiler: true,
144
146
  stylize: [
145
147
  {
146
148
  matcher: "Recommended",
@@ -2,6 +2,7 @@ import { navbar } from "vuepress-theme-hope";
2
2
 
3
3
  export default navbar([
4
4
  "/",
5
+ "/portfolio",
5
6
  "/demo/",
6
7
  {
7
8
  text: "博文",
@@ -111,6 +111,8 @@ export default hopeTheme({
111
111
  imgSize: true,
112
112
  include: true,
113
113
  mark: true,
114
+ plantuml: true,
115
+ spoiler: true,
114
116
  stylize: [
115
117
  {
116
118
  matcher: "Recommended",
@@ -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
- #### Hint box
45
+ #### Code Tabs
46
46
 
47
- ::: v-pre
47
+ ::: code-tabs#shell
48
48
 
49
- Safely use {{ variable }} in Markdown.
49
+ @tab pnpm
50
50
 
51
- :::
51
+ ```bash
52
+ pnpm add -D vuepress-theme-hope
53
+ ```
52
54
 
53
- ::: info Custom Title
55
+ @tab yarn
54
56
 
55
- A custom information container with `code`, [link](#hint-box).
57
+ ```bash
58
+ yarn add -D vuepress-theme-hope
59
+ ```
56
60
 
57
- ```js
58
- const a = 1;
61
+ @tab:active npm
62
+
63
+ ```bash
64
+ npm i -D vuepress-theme-hope
59
65
  ```
60
66
 
61
67
  :::
62
68
 
63
- ::: tip Custom Title
69
+ - [View Detail](https://theme-hope.vuejs.press/guide/markdown/code/code-tabs.html)
64
70
 
65
- A custom tip container
71
+ #### Tabs
66
72
 
67
- :::
73
+ ::: tabs#fruit
68
74
 
69
- ::: warning Custom Title
75
+ @tab apple
70
76
 
71
- A custom warning container
77
+ Apple
72
78
 
73
- :::
79
+ @tab banana
74
80
 
75
- ::: caution Custom Title
81
+ Banana
76
82
 
77
- A custom caution container
83
+ @tab orange
84
+
85
+ Orange
78
86
 
79
87
  :::
80
88
 
81
- ::: details Custom Title
89
+ - [View Detail](https://theme-hope.vuejs.press/guide/markdown/content/tabs.html)
82
90
 
83
- A custom details container
91
+ #### Footnote
84
92
 
85
- :::
93
+ This text has footnote[^first].
86
94
 
87
- - [View Detail](https://theme-hope.vuejs.press/guide/markdown/hint.html)
95
+ [^first]: This is footnote content
88
96
 
89
- #### Tabs
97
+ - [View Detail](https://theme-hope.vuejs.press/guide/markdown/content/footnote.html)
90
98
 
91
- ::: tabs#fruit
99
+ #### Include files
92
100
 
93
- @tab apple
101
+ <!-- @include: ./README.md{11-17} -->
94
102
 
95
- Apple
103
+ - [View Detail](https://theme-hope.vuejs.press/guide/markdown/content/include.html)
96
104
 
97
- @tab banana
105
+ #### TeX
98
106
 
99
- Banana
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
- @tab orange
112
+ - [View Detail](https://theme-hope.vuejs.press/guide/markdown/grammar/tex.html)
102
113
 
103
- Orange
114
+ #### Tasklist
104
115
 
105
- :::
116
+ - [x] Plan A
117
+ - [ ] Plan B
106
118
 
107
- - [View Detail](https://theme-hope.vuejs.press/guide/markdown/tabs.html)
119
+ [View Detail](https://theme-hope.vuejs.press/guide/markdown/grammar/tasklist.html)
108
120
 
109
- #### Code Tabs
121
+ #### Image Enhancement
110
122
 
111
- ::: code-tabs#shell
123
+ Support setting color scheme and size.
112
124
 
113
- @tab pnpm
125
+ - [View Detail](https://theme-hope.vuejs.press/guide/markdown/grammar/image.html)
114
126
 
115
- ```bash
116
- pnpm add -D vuepress-theme-hope
117
- ```
127
+ #### Superscript and Subscript
118
128
 
119
- @tab yarn
129
+ 19^th^ H~2~O
120
130
 
121
- ```bash
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
- @tab:active npm
133
+ #### Component
126
134
 
127
- ```bash
128
- npm i -D vuepress-theme-hope
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
- - [View Detail](https://theme-hope.vuejs.press/guide/markdown/code-tabs.html)
145
+ #### Hint box and GFM alerts
134
146
 
135
- #### Superscript and Subscript
147
+ ::: v-pre
136
148
 
137
- 19^th^ H~2~O
149
+ Safely use {{ variable }} in Markdown.
138
150
 
139
- - [View Detail](https://theme-hope.vuejs.press/guide/markdown/sup-sub.html)
151
+ :::
140
152
 
141
- #### Align
153
+ ::: info Custom Title
142
154
 
143
- ::: center
155
+ A custom information container with `code`, [link](#markdown-extension).
144
156
 
145
- I am center
157
+ ```js
158
+ const a = 1;
159
+ ```
146
160
 
147
161
  :::
148
162
 
149
- ::: right
163
+ ::: tip Custom Title
150
164
 
151
- I am right align
165
+ A custom tip container
152
166
 
153
167
  :::
154
168
 
155
- - [View Detail](https://theme-hope.vuejs.press/guide/markdown/align.html)
169
+ ::: warning Custom Title
156
170
 
157
- #### Attrs
171
+ A custom warning container
158
172
 
159
- A **word**{#word} having id.
173
+ :::
160
174
 
161
- - [View Detail](https://theme-hope.vuejs.press/guide/markdown/attrs.html)
175
+ ::: caution Custom Title
162
176
 
163
- #### Footnote
177
+ A custom caution container
164
178
 
165
- This text has footnote[^first].
179
+ :::
166
180
 
167
- [^first]: This is footnote content
181
+ ::: details Custom Title
168
182
 
169
- - [View Detail](https://theme-hope.vuejs.press/guide/markdown/footnote.html)
183
+ A custom details container
170
184
 
171
- #### Mark
185
+ :::
172
186
 
173
- You can mark ==important words== .
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
- - [View Detail](https://theme-hope.vuejs.press/guide/markdown/mark.html)
190
+ #### Align
176
191
 
177
- #### Tasklist
192
+ ::: center
178
193
 
179
- - [x] Plan A
180
- - [ ] Plan B
194
+ I am center
181
195
 
182
- [View Detail](https://theme-hope.vuejs.press/guide/markdown/tasklist.html)
196
+ :::
183
197
 
184
- #### Image Enhancement
198
+ ::: right
185
199
 
186
- Support setting color scheme and size
200
+ I am right align
187
201
 
188
- - [View Detail](https://theme-hope.vuejs.press/guide/markdown/image.html)
202
+ :::
189
203
 
190
- #### Component
204
+ - [View Detail](https://theme-hope.vuejs.press/guide/markdown/stylize/align.html)
191
205
 
192
- ```component VPCard
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
- - [View Detail](https://theme-hope.vuejs.press/guide/markdown/component.html)
208
+ A **word**{#word} having id.
201
209
 
202
- #### Include files
210
+ - [View Detail](https://theme-hope.vuejs.press/guide/markdown/stylize/attrs.html)
203
211
 
204
- <!-- @include: ./README.md{11-17} -->
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
- - [View Detail](https://theme-hope.vuejs.press/guide/markdown/include.html)
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
- #### Tex
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/tex.html)
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
- #### Reveal.js
319
+ #### Vue Playground
284
320
 
285
- <iframe src="https://plugin-md-enhance-demo.vuejs.press/snippet/revealjs.html" width="100%" height="400"/>
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/revealjs.html)
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).