create-vuepress-theme-hope 2.0.0-beta.13 → 2.0.0-beta.131
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/{readme.md → README.md} +0 -0
- package/lib/index.js +66 -0
- package/package.json +23 -13
- package/template/blog/.vuepress/config.ts +23 -0
- package/template/blog/.vuepress/navbar/en.ts +52 -0
- package/template/blog/.vuepress/navbar/index.ts +2 -0
- package/template/blog/.vuepress/navbar/zh.ts +52 -0
- package/template/blog/.vuepress/sidebar/en.ts +22 -0
- package/template/blog/.vuepress/sidebar/index.ts +2 -0
- package/template/blog/.vuepress/sidebar/zh.ts +22 -0
- package/template/blog/.vuepress/styles/config.scss +3 -0
- package/template/blog/.vuepress/styles/index.scss +1 -0
- package/template/blog/.vuepress/styles/palette.scss +2 -0
- package/template/blog/.vuepress/theme.ts +255 -0
- package/template/{i18n → blog}/README.md +1 -1
- package/template/{i18n/guide → blog/demo}/README.md +5 -4
- package/template/{i18n/guide → blog/demo}/disable.md +4 -4
- package/template/{i18n/guide → blog/demo}/encrypt.md +1 -1
- package/template/{i18n/guide → blog/demo}/markdown.md +163 -54
- package/template/blog/demo/page.md +72 -0
- package/template/blog/intro.md +7 -0
- package/template/{i18n/posts/article/article1.md → blog/posts/apple/1.md} +5 -4
- package/template/{en-US/posts/article/article2.md → blog/posts/apple/2.md} +9 -4
- package/template/{i18n/posts/article/article3.md → blog/posts/apple/3.md} +6 -5
- package/template/{i18n/posts/article/article4.md → blog/posts/apple/4.md} +6 -5
- package/template/{en-US/posts/article/article5.md → blog/posts/banana/1.md} +6 -5
- package/template/{en-US/posts/article/article6.md → blog/posts/banana/2.md} +10 -5
- package/template/{i18n/posts/article/article7.md → blog/posts/banana/3.md} +5 -5
- package/template/{i18n/posts/article/article8.md → blog/posts/banana/4.md} +5 -5
- package/template/{i18n/posts/article9.md → blog/posts/cherry.md} +5 -5
- package/template/{i18n/posts/article10.md → blog/posts/dragonfruit.md} +5 -5
- package/template/{i18n/posts/article11.md → blog/posts/strawberry.md} +5 -5
- package/template/{en-US/posts/article12.md → blog/posts/tomato.md} +5 -5
- package/template/{i18n/slide.md → blog/slides.md} +7 -7
- package/template/{i18n → blog}/zh/README.md +1 -1
- package/template/{i18n/zh/guide → blog/zh/demo}/README.md +5 -4
- package/template/{i18n/zh/guide → blog/zh/demo}/disable.md +4 -4
- package/template/{i18n/zh/guide → blog/zh/demo}/encrypt.md +0 -0
- package/template/{i18n/zh/guide → blog/zh/demo}/markdown.md +139 -48
- package/template/blog/zh/demo/page.md +72 -0
- package/template/blog/zh/intro.md +7 -0
- package/template/{i18n/zh/posts/article/article1.md → blog/zh/posts/apple/1.md} +5 -4
- package/template/{zh-CN/posts/article/article2.md → blog/zh/posts/apple/2.md} +9 -4
- package/template/{i18n/zh/posts/article/article3.md → blog/zh/posts/apple/3.md} +6 -5
- package/template/{zh-CN/posts/article/article4.md → blog/zh/posts/apple/4.md} +6 -5
- package/template/{i18n/zh/posts/article/article5.md → blog/zh/posts/banana/1.md} +6 -5
- package/template/{i18n/zh/posts/article/article6.md → blog/zh/posts/banana/2.md} +10 -5
- package/template/{i18n/zh/posts/article/article7.md → blog/zh/posts/banana/3.md} +5 -5
- package/template/{i18n/zh/posts/article/article8.md → blog/zh/posts/banana/4.md} +5 -5
- package/template/{i18n/zh/posts/article9.md → blog/zh/posts/cherry.md} +5 -5
- package/template/{i18n/zh/posts/article10.md → blog/zh/posts/dragonfruit.md} +5 -5
- package/template/{i18n/zh/posts/article11.md → blog/zh/posts/strawberry.md} +5 -5
- package/template/{i18n/zh/posts/article12.md → blog/zh/posts/tomato.md} +5 -5
- package/template/{i18n/zh/slide.md → blog/zh/slides.md} +1 -1
- package/template/docs/.vuepress/config.ts +23 -0
- package/template/docs/.vuepress/navbar/en.ts +30 -0
- package/template/docs/.vuepress/navbar/index.ts +2 -0
- package/template/docs/.vuepress/navbar/zh.ts +30 -0
- package/template/docs/.vuepress/sidebar/en.ts +21 -0
- package/template/docs/.vuepress/sidebar/index.ts +2 -0
- package/template/docs/.vuepress/sidebar/zh.ts +21 -0
- package/template/docs/.vuepress/styles/config.scss +3 -0
- package/template/docs/.vuepress/styles/index.scss +1 -0
- package/template/docs/.vuepress/styles/palette.scss +2 -0
- package/template/docs/.vuepress/theme.ts +201 -0
- package/template/{en-US/home.md → docs/README.md} +11 -11
- package/template/{en-US/guide → docs/demo}/README.md +5 -4
- package/template/{en-US/guide → docs/demo}/disable.md +4 -4
- package/template/{en-US/guide → docs/demo}/encrypt.md +1 -1
- package/template/{en-US/guide → docs/demo}/markdown.md +163 -54
- package/template/docs/demo/page.md +72 -0
- package/template/docs/guide/README.md +16 -0
- package/template/docs/guide/bar/README.md +13 -0
- package/template/docs/guide/bar/baz.md +6 -0
- package/template/docs/guide/foo/README.md +13 -0
- package/template/docs/guide/foo/ray.md +6 -0
- package/template/{en-US/slide.md → docs/slides.md} +7 -7
- package/template/{i18n/zh/home.md → docs/zh/README.md} +8 -8
- package/template/{zh-CN/guide → docs/zh/demo}/README.md +5 -4
- package/template/{zh-CN/guide → docs/zh/demo}/disable.md +4 -4
- package/template/{zh-CN/guide → docs/zh/demo}/encrypt.md +0 -0
- package/template/{zh-CN/guide → docs/zh/demo}/markdown.md +139 -48
- package/template/docs/zh/demo/page.md +72 -0
- package/template/docs/zh/guide/README.md +16 -0
- package/template/docs/zh/guide/bar/README.md +13 -0
- package/template/docs/zh/guide/bar/baz.md +6 -0
- package/template/docs/zh/guide/foo/README.md +13 -0
- package/template/docs/zh/guide/foo/ray.md +6 -0
- package/template/{zh-CN/slide.md → docs/zh/slides.md} +1 -1
- package/template/public/assets/icon/apple-icon-152.png +0 -0
- package/template/public/assets/icon/chrome-192.png +0 -0
- package/template/public/assets/icon/chrome-512.png +0 -0
- package/template/public/assets/icon/chrome-mask-192.png +0 -0
- package/template/public/assets/icon/chrome-mask-512.png +0 -0
- package/template/public/assets/icon/guide-maskable.png +0 -0
- package/template/public/assets/icon/guide-monochrome.png +0 -0
- package/template/public/assets/icon/ms-icon-144.png +0 -0
- package/template/{en-US/.vuepress/public → public}/favicon.ico +0 -0
- package/template/{en-US/.vuepress/public → public}/logo.png +0 -0
- package/template/{en-US/.vuepress/public → public}/logo.svg +0 -0
- package/CHANGELOG.md +0 -152
- package/lib/node/index.d.ts +0 -1
- package/lib/node/index.js +0 -3
- package/lib/node/index.js.map +0 -1
- package/rollup.config.js +0 -14
- package/src/node/checkVersion.ts +0 -31
- package/src/node/copy.ts +0 -45
- package/src/node/deepAssign.ts +0 -42
- package/src/node/hasYarn.ts +0 -10
- package/src/node/i18n.ts +0 -91
- package/src/node/index.ts +0 -177
- package/src/node/registry.ts +0 -31
- package/template/en-US/.vuepress/config.ts +0 -28
- package/template/en-US/.vuepress/navbar.ts +0 -52
- package/template/en-US/.vuepress/sidebar.ts +0 -46
- package/template/en-US/.vuepress/styles/index.scss +0 -0
- package/template/en-US/.vuepress/styles/palette.scss +0 -0
- package/template/en-US/.vuepress/themeConfig.ts +0 -96
- package/template/en-US/README.md +0 -48
- package/template/en-US/guide/page.md +0 -66
- package/template/en-US/intro.md +0 -7
- package/template/en-US/posts/article/article1.md +0 -19
- package/template/en-US/posts/article/article3.md +0 -20
- package/template/en-US/posts/article/article4.md +0 -20
- package/template/en-US/posts/article/article7.md +0 -20
- package/template/en-US/posts/article/article8.md +0 -20
- package/template/en-US/posts/article10.md +0 -20
- package/template/en-US/posts/article11.md +0 -20
- package/template/en-US/posts/article9.md +0 -20
- package/template/i18n/.vuepress/config.ts +0 -33
- package/template/i18n/.vuepress/navbar/en.ts +0 -52
- package/template/i18n/.vuepress/navbar/index.ts +0 -2
- package/template/i18n/.vuepress/navbar/zh.ts +0 -52
- package/template/i18n/.vuepress/public/favicon.ico +0 -0
- package/template/i18n/.vuepress/public/logo.png +0 -0
- package/template/i18n/.vuepress/public/logo.svg +0 -1
- package/template/i18n/.vuepress/sidebar/en.ts +0 -48
- package/template/i18n/.vuepress/sidebar/index.ts +0 -2
- package/template/i18n/.vuepress/sidebar/zh.ts +0 -48
- package/template/i18n/.vuepress/styles/index.scss +0 -0
- package/template/i18n/.vuepress/styles/palette.scss +0 -0
- package/template/i18n/.vuepress/themeConfig.ts +0 -124
- package/template/i18n/guide/page.md +0 -66
- package/template/i18n/home.md +0 -110
- package/template/i18n/intro.md +0 -7
- package/template/i18n/posts/article/article2.md +0 -20
- package/template/i18n/posts/article/article5.md +0 -20
- package/template/i18n/posts/article/article6.md +0 -21
- package/template/i18n/posts/article12.md +0 -21
- package/template/i18n/zh/guide/page.md +0 -66
- package/template/i18n/zh/posts/article/article2.md +0 -20
- package/template/i18n/zh/posts/article/article4.md +0 -20
- package/template/zh-CN/.vuepress/config.ts +0 -28
- package/template/zh-CN/.vuepress/navbar.ts +0 -52
- package/template/zh-CN/.vuepress/public/favicon.ico +0 -0
- package/template/zh-CN/.vuepress/public/logo.png +0 -0
- package/template/zh-CN/.vuepress/public/logo.svg +0 -1
- package/template/zh-CN/.vuepress/sidebar.ts +0 -46
- package/template/zh-CN/.vuepress/styles/index.scss +0 -0
- package/template/zh-CN/.vuepress/styles/palette.scss +0 -0
- package/template/zh-CN/.vuepress/themeConfig.ts +0 -96
- package/template/zh-CN/README.md +0 -48
- package/template/zh-CN/guide/page.md +0 -66
- package/template/zh-CN/home.md +0 -109
- package/template/zh-CN/posts/article/article1.md +0 -19
- package/template/zh-CN/posts/article/article3.md +0 -20
- package/template/zh-CN/posts/article/article5.md +0 -20
- package/template/zh-CN/posts/article/article6.md +0 -21
- package/template/zh-CN/posts/article/article7.md +0 -20
- package/template/zh-CN/posts/article/article8.md +0 -20
- package/template/zh-CN/posts/article10.md +0 -20
- package/template/zh-CN/posts/article11.md +0 -20
- package/template/zh-CN/posts/article12.md +0 -21
- package/template/zh-CN/posts/article9.md +0 -20
- package/tsconfig.build.json +0 -10
- 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
|
-
-
|
|
8
|
+
- Markdown
|
|
9
9
|
---
|
|
10
10
|
|
|
11
|
-
|
|
11
|
+
VuePress basically generate pages from Markdown files. So you can use it to generate documentation or blog sites easily.
|
|
12
12
|
|
|
13
|
-
You
|
|
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
|
|
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/
|
|
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
|
-
|
|
21
|
+
## Markdown Config
|
|
22
22
|
|
|
23
|
-
|
|
23
|
+
VuePress introduce configuration for each Markdown page using Frontmatter.
|
|
24
24
|
|
|
25
|
-
:::
|
|
25
|
+
::: info
|
|
26
26
|
|
|
27
|
-
|
|
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
|
-
|
|
29
|
+
:::
|
|
30
30
|
|
|
31
|
-
|
|
31
|
+
## Markdown Extension
|
|
32
32
|
|
|
33
|
-
|
|
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
|
-
###
|
|
35
|
+
### VuePress Enhancement
|
|
36
36
|
|
|
37
|
-
|
|
37
|
+
To enrich document writing, VuePress has extended Markdown syntax.
|
|
38
38
|
|
|
39
|
-
|
|
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
|
-
|
|
41
|
+
### Theme Enhancement
|
|
52
42
|
|
|
53
|
-
|
|
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
|
|
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](#
|
|
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
|
|
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
|
-
|
|
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
|
-
|
|
139
|
+
@tab banana
|
|
140
|
+
|
|
141
|
+
Banana
|
|
142
|
+
|
|
143
|
+
@tab orange
|
|
144
|
+
|
|
145
|
+
Orange
|
|
146
|
+
|
|
147
|
+
:::
|
|
140
148
|
|
|
141
|
-
|
|
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
|
-
|
|
158
|
+
pnpm add -D vuepress-theme-hope
|
|
145
159
|
```
|
|
146
160
|
|
|
147
|
-
|
|
161
|
+
@tab yarn
|
|
148
162
|
|
|
149
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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](
|
|
266
|
+
- [View Detail](https://vuepress-theme-hope.github.io/v2/guide/markdown/chart.html)
|
|
239
267
|
|
|
240
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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.
|
|
@@ -2,14 +2,19 @@
|
|
|
2
2
|
icon: edit
|
|
3
3
|
date: 2022-01-02
|
|
4
4
|
category:
|
|
5
|
-
-
|
|
5
|
+
- Apple
|
|
6
6
|
tag:
|
|
7
|
-
-
|
|
8
|
-
-
|
|
7
|
+
- red
|
|
8
|
+
- big
|
|
9
|
+
- round
|
|
9
10
|
star: true
|
|
10
11
|
---
|
|
11
12
|
|
|
12
|
-
#
|
|
13
|
+
# Apple 2
|
|
14
|
+
|
|
15
|
+
A apple article being stared.
|
|
16
|
+
|
|
17
|
+
<!-- more -->
|
|
13
18
|
|
|
14
19
|
## Heading 2
|
|
15
20
|
|
|
@@ -2,15 +2,20 @@
|
|
|
2
2
|
icon: edit
|
|
3
3
|
date: 2022-01-06
|
|
4
4
|
category:
|
|
5
|
-
-
|
|
6
|
-
-
|
|
5
|
+
- Banana
|
|
6
|
+
- Fruit
|
|
7
7
|
tag:
|
|
8
|
-
-
|
|
9
|
-
-
|
|
8
|
+
- yellow
|
|
9
|
+
- curly
|
|
10
|
+
- long
|
|
10
11
|
star: 10
|
|
11
12
|
---
|
|
12
13
|
|
|
13
|
-
#
|
|
14
|
+
# Banana 2
|
|
15
|
+
|
|
16
|
+
A banana article being stared with number `10`.
|
|
17
|
+
|
|
18
|
+
<!-- more -->
|
|
14
19
|
|
|
15
20
|
## Heading 2
|
|
16
21
|
|