create-vuepress-theme-hope 2.0.0-beta.21 → 2.0.0-beta.211

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 (184) hide show
  1. package/LICENSE +1 -1
  2. package/README.md +35 -0
  3. package/lib/index.js +65 -0
  4. package/package.json +25 -14
  5. package/template/blog/.vuepress/config.ts +24 -0
  6. package/template/blog/.vuepress/navbar/en.ts +52 -0
  7. package/template/blog/.vuepress/navbar/index.ts +2 -0
  8. package/template/blog/.vuepress/navbar/zh.ts +52 -0
  9. package/template/blog/.vuepress/public/assets/images/cover1.jpg +0 -0
  10. package/template/blog/.vuepress/public/assets/images/cover2.jpg +0 -0
  11. package/template/blog/.vuepress/public/assets/images/cover3.jpg +0 -0
  12. package/template/blog/.vuepress/sidebar/en.ts +22 -0
  13. package/template/blog/.vuepress/sidebar/index.ts +2 -0
  14. package/template/blog/.vuepress/sidebar/zh.ts +22 -0
  15. package/template/blog/.vuepress/styles/config.scss +3 -0
  16. package/template/blog/.vuepress/styles/index.scss +1 -0
  17. package/template/blog/.vuepress/styles/palette.scss +2 -0
  18. package/template/blog/.vuepress/theme.ts +224 -0
  19. package/template/{i18n → blog}/README.md +5 -5
  20. package/template/{i18n/guide → blog/demo}/README.md +5 -4
  21. package/template/{i18n/guide → blog/demo}/disable.md +4 -4
  22. package/template/{i18n/guide → blog/demo}/encrypt.md +1 -1
  23. package/template/blog/demo/markdown.md +423 -0
  24. package/template/blog/demo/page.md +74 -0
  25. package/template/blog/intro.md +8 -0
  26. package/template/{i18n/posts/article/article1.md → blog/posts/apple/1.md} +5 -4
  27. package/template/{en-US/posts/article/article2.md → blog/posts/apple/2.md} +9 -4
  28. package/template/{i18n/posts/article/article3.md → blog/posts/apple/3.md} +6 -5
  29. package/template/{i18n/posts/article/article4.md → blog/posts/apple/4.md} +6 -5
  30. package/template/{en-US/posts/article/article5.md → blog/posts/banana/1.md} +6 -5
  31. package/template/{en-US/posts/article/article6.md → blog/posts/banana/2.md} +10 -5
  32. package/template/{i18n/posts/article/article7.md → blog/posts/banana/3.md} +5 -5
  33. package/template/{i18n/posts/article/article8.md → blog/posts/banana/4.md} +5 -5
  34. package/template/{i18n/posts/article9.md → blog/posts/cherry.md} +5 -5
  35. package/template/{i18n/posts/article10.md → blog/posts/dragonfruit.md} +5 -5
  36. package/template/{i18n/posts/article11.md → blog/posts/strawberry.md} +5 -5
  37. package/template/{en-US/posts/article12.md → blog/posts/tomato.md} +6 -5
  38. package/template/{i18n/slide.md → blog/slides.md} +8 -8
  39. package/template/{i18n → blog}/zh/README.md +4 -4
  40. package/template/{i18n/zh/guide → blog/zh/demo}/README.md +5 -4
  41. package/template/{i18n/zh/guide → blog/zh/demo}/disable.md +4 -4
  42. package/template/blog/zh/demo/markdown.md +403 -0
  43. package/template/blog/zh/demo/page.md +74 -0
  44. package/template/blog/zh/intro.md +8 -0
  45. package/template/{i18n/zh/posts/article/article1.md → blog/zh/posts/apple/1.md} +5 -4
  46. package/template/{zh-CN/posts/article/article2.md → blog/zh/posts/apple/2.md} +9 -4
  47. package/template/{i18n/zh/posts/article/article3.md → blog/zh/posts/apple/3.md} +6 -5
  48. package/template/{zh-CN/posts/article/article4.md → blog/zh/posts/apple/4.md} +6 -5
  49. package/template/{i18n/zh/posts/article/article5.md → blog/zh/posts/banana/1.md} +6 -5
  50. package/template/{i18n/zh/posts/article/article6.md → blog/zh/posts/banana/2.md} +10 -5
  51. package/template/{i18n/zh/posts/article/article7.md → blog/zh/posts/banana/3.md} +5 -5
  52. package/template/{i18n/zh/posts/article/article8.md → blog/zh/posts/banana/4.md} +5 -5
  53. package/template/{i18n/zh/posts/article9.md → blog/zh/posts/cherry.md} +5 -5
  54. package/template/{i18n/zh/posts/article10.md → blog/zh/posts/dragonfruit.md} +5 -5
  55. package/template/{i18n/zh/posts/article11.md → blog/zh/posts/strawberry.md} +5 -5
  56. package/template/{i18n/zh/posts/article12.md → blog/zh/posts/tomato.md} +6 -5
  57. package/template/{i18n/zh/slide.md → blog/zh/slides.md} +1 -1
  58. package/template/docs/.vuepress/config.ts +24 -0
  59. package/template/docs/.vuepress/navbar/en.ts +30 -0
  60. package/template/docs/.vuepress/navbar/index.ts +2 -0
  61. package/template/docs/.vuepress/navbar/zh.ts +30 -0
  62. package/template/docs/.vuepress/sidebar/en.ts +21 -0
  63. package/template/docs/.vuepress/sidebar/index.ts +2 -0
  64. package/template/docs/.vuepress/sidebar/zh.ts +21 -0
  65. package/template/docs/.vuepress/styles/config.scss +3 -0
  66. package/template/docs/.vuepress/styles/index.scss +1 -0
  67. package/template/docs/.vuepress/styles/palette.scss +2 -0
  68. package/template/docs/.vuepress/theme.ts +172 -0
  69. package/template/{en-US/home.md → docs/README.md} +28 -28
  70. package/template/{en-US/guide → docs/demo}/README.md +5 -4
  71. package/template/{en-US/guide → docs/demo}/disable.md +4 -4
  72. package/template/{en-US/guide → docs/demo}/encrypt.md +1 -1
  73. package/template/docs/demo/markdown.md +423 -0
  74. package/template/docs/demo/page.md +72 -0
  75. package/template/docs/guide/README.md +16 -0
  76. package/template/docs/guide/bar/README.md +13 -0
  77. package/template/docs/guide/bar/baz.md +6 -0
  78. package/template/docs/guide/foo/README.md +13 -0
  79. package/template/docs/guide/foo/ray.md +6 -0
  80. package/template/{en-US/slide.md → docs/slides.md} +8 -8
  81. package/template/{i18n/zh/home.md → docs/zh/README.md} +24 -24
  82. package/template/{zh-CN/guide → docs/zh/demo}/README.md +5 -4
  83. package/template/{zh-CN/guide → docs/zh/demo}/disable.md +4 -4
  84. package/template/docs/zh/demo/markdown.md +403 -0
  85. package/template/docs/zh/demo/page.md +72 -0
  86. package/template/docs/zh/guide/README.md +16 -0
  87. package/template/docs/zh/guide/bar/README.md +13 -0
  88. package/template/docs/zh/guide/bar/baz.md +6 -0
  89. package/template/docs/zh/guide/foo/README.md +13 -0
  90. package/template/docs/zh/guide/foo/ray.md +6 -0
  91. package/template/{zh-CN/slide.md → docs/zh/slides.md} +1 -1
  92. package/template/public/assets/icon/apple-icon-152.png +0 -0
  93. package/template/public/assets/icon/chrome-192.png +0 -0
  94. package/template/public/assets/icon/chrome-512.png +0 -0
  95. package/template/public/assets/icon/chrome-mask-192.png +0 -0
  96. package/template/public/assets/icon/chrome-mask-512.png +0 -0
  97. package/template/public/assets/icon/guide-maskable.png +0 -0
  98. package/template/public/assets/icon/ms-icon-144.png +0 -0
  99. package/CHANGELOG.md +0 -184
  100. package/lib/node/index.d.ts +0 -1
  101. package/lib/node/index.js +0 -3
  102. package/lib/node/index.js.map +0 -1
  103. package/readme.md +0 -33
  104. package/rollup.config.js +0 -14
  105. package/src/node/checkVersion.ts +0 -31
  106. package/src/node/copy.ts +0 -45
  107. package/src/node/deepAssign.ts +0 -42
  108. package/src/node/hasYarn.ts +0 -10
  109. package/src/node/i18n.ts +0 -91
  110. package/src/node/index.ts +0 -177
  111. package/src/node/registry.ts +0 -31
  112. package/template/en-US/.vuepress/config.ts +0 -28
  113. package/template/en-US/.vuepress/navbar.ts +0 -52
  114. package/template/en-US/.vuepress/sidebar.ts +0 -46
  115. package/template/en-US/.vuepress/styles/index.scss +0 -0
  116. package/template/en-US/.vuepress/styles/palette.scss +0 -0
  117. package/template/en-US/.vuepress/themeConfig.ts +0 -96
  118. package/template/en-US/README.md +0 -48
  119. package/template/en-US/guide/markdown.md +0 -341
  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/markdown.md +0 -341
  144. package/template/i18n/guide/page.md +0 -66
  145. package/template/i18n/home.md +0 -110
  146. package/template/i18n/intro.md +0 -7
  147. package/template/i18n/posts/article/article2.md +0 -20
  148. package/template/i18n/posts/article/article5.md +0 -20
  149. package/template/i18n/posts/article/article6.md +0 -21
  150. package/template/i18n/posts/article12.md +0 -21
  151. package/template/i18n/zh/guide/markdown.md +0 -339
  152. package/template/i18n/zh/guide/page.md +0 -66
  153. package/template/i18n/zh/posts/article/article2.md +0 -20
  154. package/template/i18n/zh/posts/article/article4.md +0 -20
  155. package/template/zh-CN/.vuepress/config.ts +0 -28
  156. package/template/zh-CN/.vuepress/navbar.ts +0 -52
  157. package/template/zh-CN/.vuepress/public/favicon.ico +0 -0
  158. package/template/zh-CN/.vuepress/public/logo.png +0 -0
  159. package/template/zh-CN/.vuepress/public/logo.svg +0 -1
  160. package/template/zh-CN/.vuepress/sidebar.ts +0 -46
  161. package/template/zh-CN/.vuepress/styles/index.scss +0 -0
  162. package/template/zh-CN/.vuepress/styles/palette.scss +0 -0
  163. package/template/zh-CN/.vuepress/themeConfig.ts +0 -96
  164. package/template/zh-CN/README.md +0 -48
  165. package/template/zh-CN/guide/markdown.md +0 -339
  166. package/template/zh-CN/guide/page.md +0 -66
  167. package/template/zh-CN/home.md +0 -109
  168. package/template/zh-CN/posts/article/article1.md +0 -19
  169. package/template/zh-CN/posts/article/article3.md +0 -20
  170. package/template/zh-CN/posts/article/article5.md +0 -20
  171. package/template/zh-CN/posts/article/article6.md +0 -21
  172. package/template/zh-CN/posts/article/article7.md +0 -20
  173. package/template/zh-CN/posts/article/article8.md +0 -20
  174. package/template/zh-CN/posts/article10.md +0 -20
  175. package/template/zh-CN/posts/article11.md +0 -20
  176. package/template/zh-CN/posts/article12.md +0 -21
  177. package/template/zh-CN/posts/article9.md +0 -20
  178. package/tsconfig.build.json +0 -10
  179. package/tsconfig.json +0 -8
  180. /package/template/{i18n/zh/guide → blog/zh/demo}/encrypt.md +0 -0
  181. /package/template/{zh-CN/guide → docs/zh/demo}/encrypt.md +0 -0
  182. /package/template/{en-US/.vuepress/public → public}/favicon.ico +0 -0
  183. /package/template/{en-US/.vuepress/public → public}/logo.png +0 -0
  184. /package/template/{en-US/.vuepress/public → public}/logo.svg +0 -0
@@ -1,16 +1,17 @@
1
1
  ---
2
+ title: Features Demo
2
3
  index: false
3
- icon: creative
4
+ icon: discover
4
5
  category:
5
6
  - Guide
6
7
  ---
7
8
 
8
- # Guides
9
-
10
- - [Page Config](page.md)
9
+ ## Catalog
11
10
 
12
11
  - [Markdown Enhance](markdown.md)
13
12
 
13
+ - [Page Config](page.md)
14
+
14
15
  - [Function Disable](disable.md)
15
16
 
16
17
  - [Encryption Demo](encrypt.md)
@@ -1,7 +1,7 @@
1
1
  ---
2
- index: 3
3
- title: Component disabled
2
+ title: Disabling layout and features
4
3
  icon: config
4
+ order: 3
5
5
  category:
6
6
  - Guide
7
7
  tag:
@@ -23,11 +23,11 @@ footer: false
23
23
  backtotop: false
24
24
  ---
25
25
 
26
- You can disable some functions on the page by setting the Frontmatter of the page.
26
+ You can disable some function and layout on the page by setting the Frontmatter of the page.
27
27
 
28
28
  <!-- more -->
29
29
 
30
- These should be disabled on this page:
30
+ This page is an demo that disables the following features:
31
31
 
32
32
  - Navbar
33
33
  - Sidebar
@@ -6,7 +6,7 @@ tag:
6
6
  - encryption
7
7
  ---
8
8
 
9
- # Encryption article
9
+ # Encryption Article
10
10
 
11
11
  The actual article content.
12
12
 
@@ -0,0 +1,423 @@
1
+ ---
2
+ title: Markdown Enhance
3
+ icon: markdown
4
+ order: 2
5
+ category:
6
+ - Guide
7
+ tag:
8
+ - Markdown
9
+ ---
10
+
11
+ VuePress basically generate pages from Markdown files. So you can use it to generate documentation or blog sites easily.
12
+
13
+ You should create and write Markdown files, so that VuePress can convert them to different pages according to file structure.
14
+
15
+ <!-- more -->
16
+
17
+ ## Markdown Introduction
18
+
19
+ If you are a new learner and don't know how to write Markdown, please read [Markdown Intro](https://theme-hope.vuejs.press/cookbook/markdown/) and [Markdown Demo](https://theme-hope.vuejs.press/cookbook/markdown/demo.html).
20
+
21
+ ## Markdown Config
22
+
23
+ VuePress introduce configuration for each Markdown page using Frontmatter.
24
+
25
+ ::: info
26
+
27
+ Frontmatter is a important concept in VuePress. If you don't know it, you need to read [Frontmatter Introduction](https://theme-hope.vuejs.press/cookbook/vuepress/page.html#front-matter).
28
+
29
+ :::
30
+
31
+ ## Markdown Extension
32
+
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
+
35
+ ### VuePress Enhancement
36
+
37
+ To enrich document writing, VuePress has extended Markdown syntax.
38
+
39
+ For these extensions, please read [Markdown extensions in VuePress](https://theme-hope.vuejs.press/basic/vuepress/markdown.html).
40
+
41
+ ### Theme Enhancement
42
+
43
+ By using [`vuepress-plugin-md-enhance`][md-enhance], the theme extends more Markdown syntax and provides richer writing functions.
44
+
45
+ #### Custom Container
46
+
47
+ ::: v-pre
48
+
49
+ Safely use {{ variable }} in Markdown.
50
+
51
+ :::
52
+
53
+ ::: info Custom Title
54
+
55
+ A custom information container with `code`, [link](#custom-container).
56
+
57
+ ```js
58
+ const a = 1;
59
+ ```
60
+
61
+ :::
62
+
63
+ ::: tip Custom Title
64
+
65
+ A custom tip container
66
+
67
+ :::
68
+
69
+ ::: warning Custom Title
70
+
71
+ A custom warning container
72
+
73
+ :::
74
+
75
+ ::: danger Custom Title
76
+
77
+ A custom danger container
78
+
79
+ :::
80
+
81
+ ::: details Custom Title
82
+
83
+ A custom details container
84
+
85
+ :::
86
+
87
+ - [View Detail](https://theme-hope.vuejs.press/guide/markdown/container.html)
88
+
89
+ #### Tabs
90
+
91
+ ::: tabs#fruit
92
+
93
+ @tab apple
94
+
95
+ Apple
96
+
97
+ @tab banana
98
+
99
+ Banana
100
+
101
+ @tab orange
102
+
103
+ Orange
104
+
105
+ :::
106
+
107
+ - [View Detail](https://theme-hope.vuejs.press/guide/markdown/tabs.html)
108
+
109
+ #### Code Tabs
110
+
111
+ ::: code-tabs#shell
112
+
113
+ @tab pnpm
114
+
115
+ ```bash
116
+ pnpm add -D vuepress-theme-hope
117
+ ```
118
+
119
+ @tab yarn
120
+
121
+ ```bash
122
+ yarn add -D vuepress-theme-hope
123
+ ```
124
+
125
+ @tab:active npm
126
+
127
+ ```bash
128
+ npm i -D vuepress-theme-hope
129
+ ```
130
+
131
+ :::
132
+
133
+ - [View Detail](https://theme-hope.vuejs.press/guide/markdown/code-tabs.html)
134
+
135
+ #### Superscript and Subscript
136
+
137
+ 19^th^ H~2~O
138
+
139
+ - [View Detail](https://theme-hope.vuejs.press/guide/markdown/sup-sub.html)
140
+
141
+ #### Align
142
+
143
+ ::: center
144
+
145
+ I am center
146
+
147
+ :::
148
+
149
+ ::: right
150
+
151
+ I am right align
152
+
153
+ :::
154
+
155
+ - [View Detail](https://theme-hope.vuejs.press/guide/markdown/align.html)
156
+
157
+ #### Attrs
158
+
159
+ A **word**{#word} having id.
160
+
161
+ - [View Detail](https://theme-hope.vuejs.press/guide/markdown/attrs.html)
162
+
163
+ #### Footnote
164
+
165
+ This text has footnote[^first].
166
+
167
+ [^first]: This is footnote content
168
+
169
+ - [View Detail](https://theme-hope.vuejs.press/guide/markdown/footnote.html)
170
+
171
+ #### Mark
172
+
173
+ You can mark ==important words== .
174
+
175
+ - [View Detail](https://theme-hope.vuejs.press/guide/markdown/mark.html)
176
+
177
+ #### Tasklist
178
+
179
+ - [x] Plan A
180
+ - [ ] Plan B
181
+
182
+ - [View Detail](https://theme-hope.vuejs.press/guide/markdown/tasklist.html)
183
+
184
+ #### Image Enhancement
185
+
186
+ Support setting color scheme and size
187
+
188
+ - [View Detail](https://theme-hope.vuejs.press/guide/markdown/image.html)
189
+
190
+ #### Card
191
+
192
+ ```card
193
+ title: Mr.Hope
194
+ desc: Where there is light, there is hope
195
+ logo: https://mrhope.site/logo.svg
196
+ link: https://mrhope.site
197
+ color: rgba(253, 230, 138, 0.15)
198
+ ```
199
+
200
+ - [View Detail](https://theme-hope.vuejs.press/guide/markdown/card.html)
201
+
202
+ #### Chart
203
+
204
+ ::: chart A Scatter Chart
205
+
206
+ ```json
207
+ {
208
+ "type": "scatter",
209
+ "data": {
210
+ "datasets": [
211
+ {
212
+ "label": "Scatter Dataset",
213
+ "data": [
214
+ { "x": -10, "y": 0 },
215
+ { "x": 0, "y": 10 },
216
+ { "x": 10, "y": 5 },
217
+ { "x": 0.5, "y": 5.5 }
218
+ ],
219
+ "backgroundColor": "rgb(255, 99, 132)"
220
+ }
221
+ ]
222
+ },
223
+ "options": {
224
+ "scales": {
225
+ "x": {
226
+ "type": "linear",
227
+ "position": "bottom"
228
+ }
229
+ }
230
+ }
231
+ }
232
+ ```
233
+
234
+ :::
235
+
236
+ - [View Detail](https://theme-hope.vuejs.press/guide/markdown/chart.html)
237
+
238
+ #### Echarts
239
+
240
+ ::: echarts A line chart
241
+
242
+ ```json
243
+ {
244
+ "xAxis": {
245
+ "type": "category",
246
+ "data": ["Mon", "Tue", "Wed", "Thu", "Fri", "Sat", "Sun"]
247
+ },
248
+ "yAxis": {
249
+ "type": "value"
250
+ },
251
+ "series": [
252
+ {
253
+ "data": [150, 230, 224, 218, 135, 147, 260],
254
+ "type": "line"
255
+ }
256
+ ]
257
+ }
258
+ ```
259
+
260
+ :::
261
+
262
+ - [View Detail](https://theme-hope.vuejs.press/guide/markdown/echarts.html)
263
+
264
+ #### Flowchart
265
+
266
+ ```flow
267
+ cond=>condition: Process?
268
+ process=>operation: Process
269
+ e=>end: End
270
+
271
+ cond(yes)->process->e
272
+ cond(no)->e
273
+ ```
274
+
275
+ - [View Detail](https://theme-hope.vuejs.press/guide/markdown/flowchart.html)
276
+
277
+ #### Mermaid
278
+
279
+ ```mermaid
280
+ ---
281
+ title: Flowchart
282
+ ---
283
+ flowchart TB
284
+ c1-->a2
285
+ subgraph one
286
+ a1-->a2
287
+ end
288
+ subgraph two
289
+ b1-->b2
290
+ end
291
+ subgraph three
292
+ c1-->c2
293
+ end
294
+ one --> two
295
+ three --> two
296
+ two --> c2
297
+ ```
298
+
299
+ - [View Detail](https://theme-hope.vuejs.press/guide/markdown/mermaid.html)
300
+
301
+ #### Tex
302
+
303
+ $$
304
+ \frac {\partial^r} {\partial \omega^r} \left(\frac {y^{\omega}} {\omega}\right)
305
+ = \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\}
306
+ $$
307
+
308
+ - [View Detail](https://theme-hope.vuejs.press/guide/markdown/tex.html)
309
+
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
+ #### Vue Playground
366
+
367
+ ::: vue-playground Vue Playground
368
+
369
+ @file App.vue
370
+
371
+ ```vue
372
+ <script setup>
373
+ import { ref } from "vue";
374
+
375
+ const msg = ref("Hello World!");
376
+ </script>
377
+
378
+ <template>
379
+ <h1>{{ msg }}</h1>
380
+ <input v-model="msg" />
381
+ </template>
382
+ ```
383
+
384
+ :::
385
+
386
+ - [View Detail](https://theme-hope.vuejs.press/guide/markdown/vue-playground.html)
387
+
388
+ #### Presentation
389
+
390
+ @slidestart
391
+
392
+ ## Slide 1
393
+
394
+ A paragraph with some text and a [link](https://mrhope.site)
395
+
396
+ ---
397
+
398
+ ## Slide 2
399
+
400
+ - Item 1
401
+ - Item 2
402
+
403
+ ---
404
+
405
+ ## Slide 3.1
406
+
407
+ ```js
408
+ const a = 1;
409
+ ```
410
+
411
+ --
412
+
413
+ ## Slide 3.2
414
+
415
+ $$
416
+ J(\theta_0,\theta_1) = \sum_{i=0}
417
+ $$
418
+
419
+ @slideend
420
+
421
+ - [View Detail](https://theme-hope.vuejs.press/guide/markdown/presentation.html)
422
+
423
+ [md-enhance]: https://md-enhance.vuejs.press/
@@ -0,0 +1,74 @@
1
+ ---
2
+ # This is the title of the article
3
+ title: Page Config
4
+ # You can customize cover image
5
+ cover: /assets/images/cover1.jpg
6
+ # This is the icon of the page
7
+ icon: page
8
+ # This control sidebar order
9
+ order: 1
10
+ # Set author
11
+ author: Ms.Hope
12
+ # Set writing time
13
+ date: 2020-01-01
14
+ # A page can have multiple categories
15
+ category:
16
+ - Guide
17
+ # A page can have multiple tags
18
+ tag:
19
+ - Page config
20
+ - Guide
21
+ # this page is sticky in article list
22
+ sticky: true
23
+ # this page will appear in starred articles
24
+ star: true
25
+ # You can customize footer content
26
+ footer: Footer content for test
27
+ # You can customize copyright content
28
+ copyright: No Copyright
29
+ ---
30
+
31
+ Content before `more` comment is regarded as page excerpt.
32
+
33
+ <!-- more -->
34
+
35
+ ## Page Information
36
+
37
+ You can set page information in Markdown's Frontmatter.
38
+
39
+ - The author is Ms.Hope.
40
+ - The writing date is January 1, 2020
41
+ - Category is "Guide"
42
+ - Tags are "Page Config" and "Guide"
43
+
44
+ ## Page Content
45
+
46
+ You are free to write your Markdown here.
47
+
48
+ ::: tip Assets
49
+
50
+ - You can place images besides your Markdown files, but you should use **relative links** (i.e.: starting with `./`) for them.
51
+
52
+ - For images in `.vuepress/public` directory, please use absolute links (i.e.: starting with `/`) for them.
53
+
54
+ :::
55
+
56
+ The theme contains a custom badge:
57
+
58
+ > A dark blue badge text badge at the end of line. <Badge text="Badge text" color="#242378" />
59
+
60
+ ## Page Structure
61
+
62
+ This page should contain:
63
+
64
+ - [BreadCrumb](https://theme-hope.vuejs.press/guide/layout/breadcrumb.html)
65
+ - [Title and information](https://theme-hope.vuejs.press/guide/feature/page-info.html)
66
+ - [TOC (Table of Contents)](https://theme-hope.vuejs.press/guide/layout/page.html#header-list)
67
+ - [Meta information including update time and contributors](https://theme-hope.vuejs.press/guide/feature/meta.html)
68
+ - [Comments](https://theme-hope.vuejs.press/guide/feature/comment.html)
69
+ - [Navbar](https://theme-hope.vuejs.press/guide/layout/navbar.html)
70
+ - [Sidebar](https://theme-hope.vuejs.press/guide/layout/sidebar.html)
71
+ - [Footer](https://theme-hope.vuejs.press/guide/layout/footer.html)
72
+ - Back to top button
73
+
74
+ You can customize them in theme options and page frontmatter.
@@ -0,0 +1,8 @@
1
+ ---
2
+ icon: info
3
+ cover: /assets/images/cover3.jpg
4
+ ---
5
+
6
+ # Intro Page
7
+
8
+ 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