create-vuepress-theme-hope 2.0.0-beta.13 → 2.0.0-beta.130

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.
Files changed (176) hide show
  1. package/{readme.md → README.md} +0 -0
  2. package/lib/index.js +66 -0
  3. package/package.json +24 -13
  4. package/template/blog/.vuepress/config.ts +23 -0
  5. package/template/blog/.vuepress/navbar/en.ts +52 -0
  6. package/template/blog/.vuepress/navbar/index.ts +2 -0
  7. package/template/blog/.vuepress/navbar/zh.ts +52 -0
  8. package/template/blog/.vuepress/sidebar/en.ts +22 -0
  9. package/template/blog/.vuepress/sidebar/index.ts +2 -0
  10. package/template/blog/.vuepress/sidebar/zh.ts +22 -0
  11. package/template/blog/.vuepress/styles/config.scss +3 -0
  12. package/template/blog/.vuepress/styles/index.scss +1 -0
  13. package/template/blog/.vuepress/styles/palette.scss +2 -0
  14. package/template/blog/.vuepress/theme.ts +255 -0
  15. package/template/{i18n → blog}/README.md +1 -1
  16. package/template/{i18n/guide → blog/demo}/README.md +5 -4
  17. package/template/{i18n/guide → blog/demo}/disable.md +4 -4
  18. package/template/{i18n/guide → blog/demo}/encrypt.md +1 -1
  19. package/template/{i18n/guide → blog/demo}/markdown.md +163 -54
  20. package/template/blog/demo/page.md +72 -0
  21. package/template/blog/intro.md +7 -0
  22. package/template/{i18n/posts/article/article1.md → blog/posts/apple/1.md} +5 -4
  23. package/template/{en-US/posts/article/article2.md → blog/posts/apple/2.md} +9 -4
  24. package/template/{i18n/posts/article/article3.md → blog/posts/apple/3.md} +6 -5
  25. package/template/{i18n/posts/article/article4.md → blog/posts/apple/4.md} +6 -5
  26. package/template/{en-US/posts/article/article5.md → blog/posts/banana/1.md} +6 -5
  27. package/template/{en-US/posts/article/article6.md → blog/posts/banana/2.md} +10 -5
  28. package/template/{i18n/posts/article/article7.md → blog/posts/banana/3.md} +5 -5
  29. package/template/{i18n/posts/article/article8.md → blog/posts/banana/4.md} +5 -5
  30. package/template/{i18n/posts/article9.md → blog/posts/cherry.md} +5 -5
  31. package/template/{i18n/posts/article10.md → blog/posts/dragonfruit.md} +5 -5
  32. package/template/{i18n/posts/article11.md → blog/posts/strawberry.md} +5 -5
  33. package/template/{en-US/posts/article12.md → blog/posts/tomato.md} +5 -5
  34. package/template/{i18n/slide.md → blog/slides.md} +7 -7
  35. package/template/{i18n → blog}/zh/README.md +1 -1
  36. package/template/{i18n/zh/guide → blog/zh/demo}/README.md +5 -4
  37. package/template/{i18n/zh/guide → blog/zh/demo}/disable.md +4 -4
  38. package/template/{i18n/zh/guide → blog/zh/demo}/encrypt.md +0 -0
  39. package/template/{i18n/zh/guide → blog/zh/demo}/markdown.md +139 -48
  40. package/template/blog/zh/demo/page.md +72 -0
  41. package/template/blog/zh/intro.md +7 -0
  42. package/template/{i18n/zh/posts/article/article1.md → blog/zh/posts/apple/1.md} +5 -4
  43. package/template/{zh-CN/posts/article/article2.md → blog/zh/posts/apple/2.md} +9 -4
  44. package/template/{i18n/zh/posts/article/article3.md → blog/zh/posts/apple/3.md} +6 -5
  45. package/template/{zh-CN/posts/article/article4.md → blog/zh/posts/apple/4.md} +6 -5
  46. package/template/{i18n/zh/posts/article/article5.md → blog/zh/posts/banana/1.md} +6 -5
  47. package/template/{i18n/zh/posts/article/article6.md → blog/zh/posts/banana/2.md} +10 -5
  48. package/template/{i18n/zh/posts/article/article7.md → blog/zh/posts/banana/3.md} +5 -5
  49. package/template/{i18n/zh/posts/article/article8.md → blog/zh/posts/banana/4.md} +5 -5
  50. package/template/{i18n/zh/posts/article9.md → blog/zh/posts/cherry.md} +5 -5
  51. package/template/{i18n/zh/posts/article10.md → blog/zh/posts/dragonfruit.md} +5 -5
  52. package/template/{i18n/zh/posts/article11.md → blog/zh/posts/strawberry.md} +5 -5
  53. package/template/{i18n/zh/posts/article12.md → blog/zh/posts/tomato.md} +5 -5
  54. package/template/{i18n/zh/slide.md → blog/zh/slides.md} +1 -1
  55. package/template/docs/.vuepress/config.ts +23 -0
  56. package/template/docs/.vuepress/navbar/en.ts +30 -0
  57. package/template/docs/.vuepress/navbar/index.ts +2 -0
  58. package/template/docs/.vuepress/navbar/zh.ts +30 -0
  59. package/template/docs/.vuepress/sidebar/en.ts +21 -0
  60. package/template/docs/.vuepress/sidebar/index.ts +2 -0
  61. package/template/docs/.vuepress/sidebar/zh.ts +21 -0
  62. package/template/docs/.vuepress/styles/config.scss +3 -0
  63. package/template/docs/.vuepress/styles/index.scss +1 -0
  64. package/template/docs/.vuepress/styles/palette.scss +2 -0
  65. package/template/docs/.vuepress/theme.ts +201 -0
  66. package/template/{en-US/home.md → docs/README.md} +11 -11
  67. package/template/{en-US/guide → docs/demo}/README.md +5 -4
  68. package/template/{en-US/guide → docs/demo}/disable.md +4 -4
  69. package/template/{en-US/guide → docs/demo}/encrypt.md +1 -1
  70. package/template/{en-US/guide → docs/demo}/markdown.md +163 -54
  71. package/template/docs/demo/page.md +72 -0
  72. package/template/docs/guide/README.md +16 -0
  73. package/template/docs/guide/bar/README.md +13 -0
  74. package/template/docs/guide/bar/baz.md +6 -0
  75. package/template/docs/guide/foo/README.md +13 -0
  76. package/template/docs/guide/foo/ray.md +6 -0
  77. package/template/{en-US/slide.md → docs/slides.md} +7 -7
  78. package/template/{i18n/zh/home.md → docs/zh/README.md} +8 -8
  79. package/template/{zh-CN/guide → docs/zh/demo}/README.md +5 -4
  80. package/template/{zh-CN/guide → docs/zh/demo}/disable.md +4 -4
  81. package/template/{zh-CN/guide → docs/zh/demo}/encrypt.md +0 -0
  82. package/template/{zh-CN/guide → docs/zh/demo}/markdown.md +139 -48
  83. package/template/docs/zh/demo/page.md +72 -0
  84. package/template/docs/zh/guide/README.md +16 -0
  85. package/template/docs/zh/guide/bar/README.md +13 -0
  86. package/template/docs/zh/guide/bar/baz.md +6 -0
  87. package/template/docs/zh/guide/foo/README.md +13 -0
  88. package/template/docs/zh/guide/foo/ray.md +6 -0
  89. package/template/{zh-CN/slide.md → docs/zh/slides.md} +1 -1
  90. package/template/public/assets/icon/apple-icon-152.png +0 -0
  91. package/template/public/assets/icon/chrome-192.png +0 -0
  92. package/template/public/assets/icon/chrome-512.png +0 -0
  93. package/template/public/assets/icon/chrome-mask-192.png +0 -0
  94. package/template/public/assets/icon/chrome-mask-512.png +0 -0
  95. package/template/public/assets/icon/guide-maskable.png +0 -0
  96. package/template/public/assets/icon/guide-monochrome.png +0 -0
  97. package/template/public/assets/icon/ms-icon-144.png +0 -0
  98. package/template/{en-US/.vuepress/public → public}/favicon.ico +0 -0
  99. package/template/{en-US/.vuepress/public → public}/logo.png +0 -0
  100. package/template/{en-US/.vuepress/public → public}/logo.svg +0 -0
  101. package/CHANGELOG.md +0 -152
  102. package/lib/node/index.d.ts +0 -1
  103. package/lib/node/index.js +0 -3
  104. package/lib/node/index.js.map +0 -1
  105. package/rollup.config.js +0 -14
  106. package/src/node/checkVersion.ts +0 -31
  107. package/src/node/copy.ts +0 -45
  108. package/src/node/deepAssign.ts +0 -42
  109. package/src/node/hasYarn.ts +0 -10
  110. package/src/node/i18n.ts +0 -91
  111. package/src/node/index.ts +0 -177
  112. package/src/node/registry.ts +0 -31
  113. package/template/en-US/.vuepress/config.ts +0 -28
  114. package/template/en-US/.vuepress/navbar.ts +0 -52
  115. package/template/en-US/.vuepress/sidebar.ts +0 -46
  116. package/template/en-US/.vuepress/styles/index.scss +0 -0
  117. package/template/en-US/.vuepress/styles/palette.scss +0 -0
  118. package/template/en-US/.vuepress/themeConfig.ts +0 -96
  119. package/template/en-US/README.md +0 -48
  120. package/template/en-US/guide/page.md +0 -66
  121. package/template/en-US/intro.md +0 -7
  122. package/template/en-US/posts/article/article1.md +0 -19
  123. package/template/en-US/posts/article/article3.md +0 -20
  124. package/template/en-US/posts/article/article4.md +0 -20
  125. package/template/en-US/posts/article/article7.md +0 -20
  126. package/template/en-US/posts/article/article8.md +0 -20
  127. package/template/en-US/posts/article10.md +0 -20
  128. package/template/en-US/posts/article11.md +0 -20
  129. package/template/en-US/posts/article9.md +0 -20
  130. package/template/i18n/.vuepress/config.ts +0 -33
  131. package/template/i18n/.vuepress/navbar/en.ts +0 -52
  132. package/template/i18n/.vuepress/navbar/index.ts +0 -2
  133. package/template/i18n/.vuepress/navbar/zh.ts +0 -52
  134. package/template/i18n/.vuepress/public/favicon.ico +0 -0
  135. package/template/i18n/.vuepress/public/logo.png +0 -0
  136. package/template/i18n/.vuepress/public/logo.svg +0 -1
  137. package/template/i18n/.vuepress/sidebar/en.ts +0 -48
  138. package/template/i18n/.vuepress/sidebar/index.ts +0 -2
  139. package/template/i18n/.vuepress/sidebar/zh.ts +0 -48
  140. package/template/i18n/.vuepress/styles/index.scss +0 -0
  141. package/template/i18n/.vuepress/styles/palette.scss +0 -0
  142. package/template/i18n/.vuepress/themeConfig.ts +0 -124
  143. package/template/i18n/guide/page.md +0 -66
  144. package/template/i18n/home.md +0 -110
  145. package/template/i18n/intro.md +0 -7
  146. package/template/i18n/posts/article/article2.md +0 -20
  147. package/template/i18n/posts/article/article5.md +0 -20
  148. package/template/i18n/posts/article/article6.md +0 -21
  149. package/template/i18n/posts/article12.md +0 -21
  150. package/template/i18n/zh/guide/page.md +0 -66
  151. package/template/i18n/zh/posts/article/article2.md +0 -20
  152. package/template/i18n/zh/posts/article/article4.md +0 -20
  153. package/template/zh-CN/.vuepress/config.ts +0 -28
  154. package/template/zh-CN/.vuepress/navbar.ts +0 -52
  155. package/template/zh-CN/.vuepress/public/favicon.ico +0 -0
  156. package/template/zh-CN/.vuepress/public/logo.png +0 -0
  157. package/template/zh-CN/.vuepress/public/logo.svg +0 -1
  158. package/template/zh-CN/.vuepress/sidebar.ts +0 -46
  159. package/template/zh-CN/.vuepress/styles/index.scss +0 -0
  160. package/template/zh-CN/.vuepress/styles/palette.scss +0 -0
  161. package/template/zh-CN/.vuepress/themeConfig.ts +0 -96
  162. package/template/zh-CN/README.md +0 -48
  163. package/template/zh-CN/guide/page.md +0 -66
  164. package/template/zh-CN/home.md +0 -109
  165. package/template/zh-CN/posts/article/article1.md +0 -19
  166. package/template/zh-CN/posts/article/article3.md +0 -20
  167. package/template/zh-CN/posts/article/article5.md +0 -20
  168. package/template/zh-CN/posts/article/article6.md +0 -21
  169. package/template/zh-CN/posts/article/article7.md +0 -20
  170. package/template/zh-CN/posts/article/article8.md +0 -20
  171. package/template/zh-CN/posts/article10.md +0 -20
  172. package/template/zh-CN/posts/article11.md +0 -20
  173. package/template/zh-CN/posts/article12.md +0 -21
  174. package/template/zh-CN/posts/article9.md +0 -20
  175. package/tsconfig.build.json +0 -10
  176. package/tsconfig.json +0 -8
@@ -1,66 +1,58 @@
1
1
  ---
2
- index: 2
3
- icon: markdown
4
2
  title: Markdown Enhance
3
+ icon: markdown
4
+ order: 2
5
5
  category:
6
6
  - Guide
7
7
  tag:
8
- - markdown
8
+ - Markdown
9
9
  ---
10
10
 
11
- Every document page in VuePress is rendered by Markdown.
11
+ VuePress basically generate pages from Markdown files. So you can use it to generate documentation or blog sites easily.
12
12
 
13
- You need to build your document or blog page by creating and writing Markdown in the corresponding path.
13
+ You should create and write Markdown files, so that VuePress can convert them to different pages according to file structure.
14
14
 
15
15
  <!-- more -->
16
16
 
17
- ## Markdown introduction
17
+ ## Markdown Introduction
18
18
 
19
- If you are a new learner and don’t know how to write Markdown, please read [Markdown Intro](https://vuepress-theme-hope.github.io/v2/basic/markdown/README.html) and [Markdown Demo](https://vuepress-theme-hope.github.io/v2/basic/markdown/demo.html).
19
+ If you are a new learner and don’t know how to write Markdown, please read [Markdown Intro](https://vuepress-theme-hope.github.io/v2/cookbook/markdown/) and [Markdown Demo](https://vuepress-theme-hope.github.io/v2/cookbook/markdown/demo.html).
20
20
 
21
- ::: info Frontmatter
21
+ ## Markdown Config
22
22
 
23
- Frontmatter is a important concept in VuePress. If you don’t know it, you need to read [Frontmatter Introduction](https://vuepress-theme-hope.github.io/v2/basic/vuepress/page.html#front-matter).
23
+ VuePress introduce configuration for each Markdown page using Frontmatter.
24
24
 
25
- :::
25
+ ::: info
26
26
 
27
- ## VuePress enhance
27
+ Frontmatter is a important concept in VuePress. If you don’t know it, you need to read [Frontmatter Introduction](https://vuepress-theme-hope.github.io/v2/cookbook/vuepress/page.html#front-matter).
28
28
 
29
- To enrich document writing, VuePress has extended Markdown syntax.
29
+ :::
30
30
 
31
- For these extensions, please read [Markdown extensions in VuePress](https://vuepress-theme-hope.github.io/v2/basic/vuepress/markdown.html).
31
+ ## Markdown Extension
32
32
 
33
- ## Theme enhance
33
+ The Markdown content in VuePress will be parsed by [markdown-it](https://github.com/markdown-it/markdown-it), which supports [syntax extensions](https://github.com/markdown-it/markdown-it#syntax-extensions) via markdown-it plugins.
34
34
 
35
- ### Enable all
35
+ ### VuePress Enhancement
36
36
 
37
- You can set `themeconfig.plugins.htmlEnhance.enableAll` to enable all features of the [md-enhance](https://vuepress-theme-hope.github.io/v2/md-enhance/) plugin.
37
+ To enrich document writing, VuePress has extended Markdown syntax.
38
38
 
39
- ```js {3-5}
40
- module.exports = {
41
- themeConfig: {
42
- plugins: {
43
- mdEnhance: {
44
- enableAll: true,
45
- },
46
- },
47
- },
48
- };
49
- ```
39
+ For these extensions, please read [Markdown extensions in VuePress](https://vuepress-theme-hope.github.io/v2/basic/vuepress/markdown.html).
50
40
 
51
- ## New Feature
41
+ ### Theme Enhancement
52
42
 
53
- ### Custom Container
43
+ By using [`vuepress-plugin-md-enhance`][md-enhance], the theme extends more Markdown syntax and provides richer writing functions.
44
+
45
+ #### Custom Container
54
46
 
55
47
  ::: v-pre
56
48
 
57
- Safely use {{ variable }} in markdown.
49
+ Safely use {{ variable }} in Markdown.
58
50
 
59
51
  :::
60
52
 
61
53
  ::: info Custom Title
62
54
 
63
- A custom information container with `code`, [link](#markdown).
55
+ A custom information container with `code`, [link](#custom-container).
64
56
 
65
57
  ```js
66
58
  const a = 1;
@@ -97,7 +89,7 @@ A custom details container
97
89
  ```md
98
90
  ::: v-pre
99
91
 
100
- Safely use {{ variable }} in markdown.
92
+ Safely use {{ variable }} in Markdown.
101
93
 
102
94
  :::
103
95
 
@@ -134,19 +126,45 @@ A custom details container
134
126
 
135
127
  ::::
136
128
 
137
- ### CodeGroup
129
+ - [View Detail](https://vuepress-theme-hope.github.io/v2/guide/markdown/container.html)
130
+
131
+ #### Tabs
132
+
133
+ ::: tabs#fruit
134
+
135
+ @tab apple
136
+
137
+ Apple
138
138
 
139
- :::: code-group
139
+ @tab banana
140
+
141
+ Banana
142
+
143
+ @tab orange
144
+
145
+ Orange
146
+
147
+ :::
140
148
 
141
- ::: code-group-item yarn
149
+ - [View Detail](https://vuepress-theme-hope.github.io/v2/guide/markdown/tabs.html)
150
+
151
+ #### Code Tabs
152
+
153
+ ::: code-tabs#shell
154
+
155
+ @tab pnpm
142
156
 
143
157
  ```bash
144
- yarn add -D vuepress-theme-hope
158
+ pnpm add -D vuepress-theme-hope
145
159
  ```
146
160
 
147
- :::
161
+ @tab yarn
148
162
 
149
- ::: code-group-item npm:active
163
+ ```bash
164
+ yarn add -D vuepress-theme-hope
165
+ ```
166
+
167
+ @tab:active npm
150
168
 
151
169
  ```bash
152
170
  npm i -D vuepress-theme-hope
@@ -154,17 +172,15 @@ npm i -D vuepress-theme-hope
154
172
 
155
173
  :::
156
174
 
157
- ::::
175
+ - [View Detail](https://vuepress-theme-hope.github.io/v2/guide/markdown/code-tabs.html)
158
176
 
159
- - [View Detail](https://vuepress-theme-hope.github.io/v2/guide/markdown/code-group.html)
160
-
161
- ### Superscript and Subscript
177
+ #### Superscript and Subscript
162
178
 
163
179
  19^th^ H~2~O
164
180
 
165
181
  - [View Detail](https://vuepress-theme-hope.github.io/v2/guide/markdown/sup-sub.html)
166
182
 
167
- ### Align
183
+ #### Align
168
184
 
169
185
  ::: center
170
186
 
@@ -180,7 +196,13 @@ I am right align
180
196
 
181
197
  - [View Detail](https://vuepress-theme-hope.github.io/v2/guide/markdown/align.html)
182
198
 
183
- ### Footnote
199
+ #### Attrs
200
+
201
+ A **word**{#word} having id.
202
+
203
+ - [View Detail](https://vuepress-theme-hope.github.io/v2/guide/markdown/attrs.html)
204
+
205
+ #### Footnote
184
206
 
185
207
  This text has footnote[^first].
186
208
 
@@ -188,20 +210,26 @@ This text has footnote[^first].
188
210
 
189
211
  - [View Detail](https://vuepress-theme-hope.github.io/v2/guide/markdown/footnote.html)
190
212
 
191
- ### Mark
213
+ #### Mark
192
214
 
193
215
  You can mark ==important words== .
194
216
 
195
217
  - [View Detail](https://vuepress-theme-hope.github.io/v2/guide/markdown/mark.html)
196
218
 
197
- ### Tasklist
219
+ #### Tasklist
198
220
 
199
221
  - [x] Plan A
200
222
  - [ ] Plan B
201
223
 
202
224
  - [View Detail](https://vuepress-theme-hope.github.io/v2/guide/markdown/tasklist.html)
203
225
 
204
- ### Chart
226
+ #### Image Enhancement
227
+
228
+ Support setting color scheme and size
229
+
230
+ - [View Detail](https://vuepress-theme-hope.github.io/v2/guide/markdown/image.html)
231
+
232
+ #### Chart
205
233
 
206
234
  ::: chart A Scatter Chart
207
235
 
@@ -235,9 +263,35 @@ You can mark ==important words== .
235
263
 
236
264
  :::
237
265
 
238
- - [View Detail](<[chart.md](https://vuepress-theme-hope.github.io/v2/guide/markdown/chart.html)>)
266
+ - [View Detail](https://vuepress-theme-hope.github.io/v2/guide/markdown/chart.html)
239
267
 
240
- ### Flowchart
268
+ #### Echarts
269
+
270
+ ::: echarts A line chart
271
+
272
+ ```json
273
+ {
274
+ "xAxis": {
275
+ "type": "category",
276
+ "data": ["Mon", "Tue", "Wed", "Thu", "Fri", "Sat", "Sun"]
277
+ },
278
+ "yAxis": {
279
+ "type": "value"
280
+ },
281
+ "series": [
282
+ {
283
+ "data": [150, 230, 224, 218, 135, 147, 260],
284
+ "type": "line"
285
+ }
286
+ ]
287
+ }
288
+ ```
289
+
290
+ :::
291
+
292
+ - [View Detail](https://vuepress-theme-hope.github.io/v2/guide/markdown/echarts.html)
293
+
294
+ #### Flowchart
241
295
 
242
296
  ```flow
243
297
  cond=>condition: Process?
@@ -250,7 +304,7 @@ cond(no)->e
250
304
 
251
305
  - [View Detail](https://vuepress-theme-hope.github.io/v2/guide/markdown/flowchart.html)
252
306
 
253
- ### Mermaid
307
+ #### Mermaid
254
308
 
255
309
  ```mermaid
256
310
  flowchart TB
@@ -271,7 +325,7 @@ flowchart TB
271
325
 
272
326
  - [View Detail](https://vuepress-theme-hope.github.io/v2/guide/markdown/mermaid.html)
273
327
 
274
- ### Tex
328
+ #### Tex
275
329
 
276
330
  $$
277
331
  \frac {\partial^r} {\partial \omega^r} \left(\frac {y^{\omega}} {\omega}\right)
@@ -280,9 +334,15 @@ $$
280
334
 
281
335
  - [View Detail](https://vuepress-theme-hope.github.io/v2/guide/markdown/tex.html)
282
336
 
283
- ### Code Demo
337
+ #### Include files
338
+
339
+ @include(./README.md{11-17})
340
+
341
+ - [View Detail](https://vuepress-theme-hope.github.io/v2/guide/markdown/include.html)
284
342
 
285
- ::: demo A normal demo
343
+ #### Code Demo
344
+
345
+ ::: normal-demo A normal demo
286
346
 
287
347
  ```html
288
348
  <h1>VuePress Theme Hope</h1>
@@ -305,7 +365,54 @@ span {
305
365
 
306
366
  - [View Detail](https://vuepress-theme-hope.github.io/v2/guide/markdown/demo.html)
307
367
 
308
- ### Presentation
368
+ #### Stylize
369
+
370
+ Donate Mr.Hope a cup of coffee. _Recommended_
371
+
372
+ - [View Detail](https://vuepress-theme-hope.github.io/v2/guide/markdown/stylize.html)
373
+
374
+ #### Playground
375
+
376
+ ::: playground#ts TS demo
377
+
378
+ @file index.ts
379
+
380
+ ```ts
381
+ const msg = "hello world";
382
+
383
+ const speak = (msg: string) => console.log(msg);
384
+
385
+ speak(msg);
386
+ ```
387
+
388
+ :::
389
+
390
+ - [View Detail](https://vuepress-theme-hope.github.io/v2/guide/markdown/playground.html)
391
+
392
+ #### Vue Playground
393
+
394
+ ::: vue-playground Vue Playground
395
+
396
+ @file App.vue
397
+
398
+ ```vue
399
+ <script setup>
400
+ import { ref } from "vue";
401
+
402
+ const msg = ref("Hello World!");
403
+ </script>
404
+
405
+ <template>
406
+ <h1>{{ msg }}</h1>
407
+ <input v-model="msg" />
408
+ </template>
409
+ ```
410
+
411
+ :::
412
+
413
+ - [View Detail](https://vuepress-theme-hope.github.io/v2/guide/markdown/vue-playground.html)
414
+
415
+ #### Presentation
309
416
 
310
417
  @slidestart
311
418
 
@@ -339,3 +446,5 @@ $$
339
446
  @slideend
340
447
 
341
448
  - [View Detail](https://vuepress-theme-hope.github.io/v2/guide/markdown/presentation.html)
449
+
450
+ [md-enhance]: https://vuepress-theme-hope.github.io/v2/md-enhance/
@@ -0,0 +1,72 @@
1
+ ---
2
+ # This is the title of the article
3
+ title: Page Config
4
+ # This is the icon of the page
5
+ icon: page
6
+ # This control sidebar order
7
+ order: 1
8
+ # Set author
9
+ author: Ms.Hope
10
+ # Set writing time
11
+ date: 2020-01-01
12
+ # A page can have multiple categories
13
+ category:
14
+ - Guide
15
+ # A page can have multiple tags
16
+ tag:
17
+ - Page config
18
+ - Guide
19
+ # this page is sticky in article list
20
+ sticky: true
21
+ # this page will appear in starred articles
22
+ star: true
23
+ # You can customize footer content
24
+ footer: Footer content for test
25
+ # You can customize copyright content
26
+ copyright: No Copyright
27
+ ---
28
+
29
+ Content before `more` comment is regarded as page excerpt.
30
+
31
+ <!-- more -->
32
+
33
+ ## Page Information
34
+
35
+ You can set page information in Markdown’s Frontmatter.
36
+
37
+ - The author is Ms.Hope.
38
+ - The writing date is January 1, 2020
39
+ - Category is "Guide"
40
+ - Tags are "Page Config" and "Guide"
41
+
42
+ ## Page Content
43
+
44
+ You are free to write your Markdown here.
45
+
46
+ ::: tip Assets
47
+
48
+ - You can place images besides your Markdown files, but you should use **relative links** (i.e.: starting with `./`) for them.
49
+
50
+ - For images in `.vuepress/public` directory, please use absolute links (i.e.: starting with `/`) for them.
51
+
52
+ :::
53
+
54
+ The theme contains a custom badge:
55
+
56
+ > A dark blue badge text badge at the end of line. <Badge text="Badge text" color="#242378" />
57
+
58
+ ## Page Structure
59
+
60
+ This page should contain:
61
+
62
+ - [BreadCrumb](https://vuepress-theme-hope.github.io/v2/guide/layout/breadcrumb.html)
63
+ - [Title and information](https://vuepress-theme-hope.github.io/v2/guide/feature/page-info.html)
64
+ - [TOC (Table of Contents)](https://vuepress-theme-hope.github.io/v2/guide/layout/page.html#header-list)
65
+ - [Meta information including update time and contributors](https://vuepress-theme-hope.github.io/v2/guide/feature/meta.html)
66
+ - [Comments](https://vuepress-theme-hope.github.io/v2/guide/feature/comment.html)
67
+ - [Navbar](https://vuepress-theme-hope.github.io/v2/guide/layout/navbar.html)
68
+ - [Sidebar](https://vuepress-theme-hope.github.io/v2/guide/layout/sidebar.html)
69
+ - [Footer](https://vuepress-theme-hope.github.io/v2/guide/layout/footer.html)
70
+ - Back to top button
71
+
72
+ You can customize them in theme options and page frontmatter.
@@ -0,0 +1,7 @@
1
+ ---
2
+ icon: info
3
+ ---
4
+
5
+ # Intro Page
6
+
7
+ Place your introduction and profile here.
@@ -2,13 +2,14 @@
2
2
  icon: edit
3
3
  date: 2022-01-01
4
4
  category:
5
- - CategoryA
5
+ - Apple
6
6
  tag:
7
- - tag A
8
- - tag B
7
+ - red
8
+ - big
9
+ - round
9
10
  ---
10
11
 
11
- # Article 1
12
+ # Apple 1
12
13
 
13
14
  ## Heading 2
14
15
 
@@ -2,14 +2,19 @@
2
2
  icon: edit
3
3
  date: 2022-01-02
4
4
  category:
5
- - CategoryA
5
+ - Apple
6
6
  tag:
7
- - tag A
8
- - tag B
7
+ - red
8
+ - big
9
+ - round
9
10
  star: true
10
11
  ---
11
12
 
12
- # Article 2
13
+ # Apple 2
14
+
15
+ A apple article being stared.
16
+
17
+ <!-- more -->
13
18
 
14
19
  ## Heading 2
15
20
 
@@ -2,14 +2,15 @@
2
2
  icon: edit
3
3
  date: 2022-01-03
4
4
  category:
5
- - CategoryA
6
- - CategoryB
5
+ - Apple
6
+ - Fruit
7
7
  tag:
8
- - tag A
9
- - tag B
8
+ - red
9
+ - big
10
+ - round
10
11
  ---
11
12
 
12
- # Article 3
13
+ # Apple 3
13
14
 
14
15
  ## Heading 2
15
16
 
@@ -2,14 +2,15 @@
2
2
  icon: edit
3
3
  date: 2022-01-04
4
4
  category:
5
- - CategoryA
6
- - CategoryB
5
+ - Apple
6
+ - Fruit
7
7
  tag:
8
- - tag A
9
- - tag B
8
+ - red
9
+ - big
10
+ - round
10
11
  ---
11
12
 
12
- # Article 4
13
+ # Apple 4
13
14
 
14
15
  ## Heading 2
15
16
 
@@ -2,14 +2,15 @@
2
2
  icon: edit
3
3
  date: 2022-01-05
4
4
  category:
5
- - CategoryA
6
- - CategoryB
5
+ - Banana
6
+ - Fruit
7
7
  tag:
8
- - tag A
9
- - tag B
8
+ - yellow
9
+ - curly
10
+ - long
10
11
  ---
11
12
 
12
- # Article 5
13
+ # Banana 1
13
14
 
14
15
  ## Heading 2
15
16
 
@@ -2,15 +2,20 @@
2
2
  icon: edit
3
3
  date: 2022-01-06
4
4
  category:
5
- - CategoryA
6
- - CategoryB
5
+ - Banana
6
+ - Fruit
7
7
  tag:
8
- - tag A
9
- - tag B
8
+ - yellow
9
+ - curly
10
+ - long
10
11
  star: 10
11
12
  ---
12
13
 
13
- # Article 6
14
+ # Banana 2
15
+
16
+ A banana article being stared with number `10`.
17
+
18
+ <!-- more -->
14
19
 
15
20
  ## Heading 2
16
21
 
@@ -2,14 +2,14 @@
2
2
  icon: edit
3
3
  date: 2022-01-07
4
4
  category:
5
- - CategoryA
6
- - CategoryB
5
+ - Banana
7
6
  tag:
8
- - tag A
9
- - tag B
7
+ - yellow
8
+ - curly
9
+ - long
10
10
  ---
11
11
 
12
- # Article 7
12
+ # Banana 3
13
13
 
14
14
  ## Heading 2
15
15
 
@@ -2,14 +2,14 @@
2
2
  icon: edit
3
3
  date: 2022-01-08
4
4
  category:
5
- - CategoryA
6
- - CategoryB
5
+ - Banana
7
6
  tag:
8
- - tag A
9
- - tag B
7
+ - yellow
8
+ - curly
9
+ - long
10
10
  ---
11
11
 
12
- # Article 8
12
+ # Banana 4
13
13
 
14
14
  ## Heading 2
15
15
 
@@ -2,14 +2,14 @@
2
2
  icon: edit
3
3
  date: 2022-01-09
4
4
  category:
5
- - CategoryA
6
- - CategoryB
5
+ - Cherry
7
6
  tag:
8
- - tag A
9
- - tag B
7
+ - red
8
+ - small
9
+ - round
10
10
  ---
11
11
 
12
- # Article 9
12
+ # Cherry
13
13
 
14
14
  ## Heading 2
15
15
 
@@ -2,14 +2,14 @@
2
2
  icon: edit
3
3
  date: 2022-01-10
4
4
  category:
5
- - CategoryA
6
- - CategoryB
5
+ - Dragon Fruit
6
+ - Fruit
7
7
  tag:
8
- - tag A
9
- - tag B
8
+ - red
9
+ - big
10
10
  ---
11
11
 
12
- # Article 10
12
+ # Dragon Fruit
13
13
 
14
14
  ## Heading 2
15
15
 
@@ -2,14 +2,14 @@
2
2
  icon: edit
3
3
  date: 2022-01-11
4
4
  category:
5
- - CategoryA
6
- - CategoryB
5
+ - Fruit
6
+ - Strawberry
7
7
  tag:
8
- - tag A
9
- - tag B
8
+ - red
9
+ - small
10
10
  ---
11
11
 
12
- # Article 11
12
+ # Strawberry
13
13
 
14
14
  ## Heading 2
15
15
 
@@ -2,15 +2,15 @@
2
2
  icon: edit
3
3
  date: 2022-01-12
4
4
  category:
5
- - CategoryA
6
- - CategoryB
5
+ - Vegetable
7
6
  tag:
8
- - tag A
9
- - tag B
7
+ - red
8
+ - round
10
9
  star: true
10
+ sticky: true
11
11
  ---
12
12
 
13
- # Article 12
13
+ # Tomato
14
14
 
15
15
  ## Heading 2
16
16