create-vuepress-theme-hope 2.0.0-beta.21 → 2.0.0-beta.210
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/LICENSE +1 -1
- package/README.md +35 -0
- package/lib/index.js +65 -0
- package/package.json +25 -14
- package/template/blog/.vuepress/config.ts +24 -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/public/assets/images/cover1.jpg +0 -0
- package/template/blog/.vuepress/public/assets/images/cover2.jpg +0 -0
- package/template/blog/.vuepress/public/assets/images/cover3.jpg +0 -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 +224 -0
- package/template/{i18n → blog}/README.md +5 -5
- 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/blog/demo/markdown.md +423 -0
- package/template/blog/demo/page.md +74 -0
- package/template/blog/intro.md +8 -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} +6 -5
- package/template/{i18n/slide.md → blog/slides.md} +8 -8
- package/template/{i18n → blog}/zh/README.md +4 -4
- 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/blog/zh/demo/markdown.md +403 -0
- package/template/blog/zh/demo/page.md +74 -0
- package/template/blog/zh/intro.md +8 -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} +6 -5
- package/template/{i18n/zh/slide.md → blog/zh/slides.md} +1 -1
- package/template/docs/.vuepress/config.ts +24 -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 +172 -0
- package/template/{en-US/home.md → docs/README.md} +28 -28
- 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/docs/demo/markdown.md +423 -0
- 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} +8 -8
- package/template/{i18n/zh/home.md → docs/zh/README.md} +24 -24
- 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/docs/zh/demo/markdown.md +403 -0
- 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/ms-icon-144.png +0 -0
- package/CHANGELOG.md +0 -184
- package/lib/node/index.d.ts +0 -1
- package/lib/node/index.js +0 -3
- package/lib/node/index.js.map +0 -1
- package/readme.md +0 -33
- 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/markdown.md +0 -341
- 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/markdown.md +0 -341
- 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/markdown.md +0 -339
- 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/markdown.md +0 -339
- 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
- /package/template/{i18n/zh/guide → blog/zh/demo}/encrypt.md +0 -0
- /package/template/{zh-CN/guide → docs/zh/demo}/encrypt.md +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
|
@@ -1,341 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
index: 2
|
|
3
|
-
icon: markdown
|
|
4
|
-
title: Markdown Enhance
|
|
5
|
-
category:
|
|
6
|
-
- Guide
|
|
7
|
-
tag:
|
|
8
|
-
- markdown
|
|
9
|
-
---
|
|
10
|
-
|
|
11
|
-
Every document page in VuePress is rendered by Markdown.
|
|
12
|
-
|
|
13
|
-
You need to build your document or blog page by creating and writing Markdown in the corresponding path.
|
|
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://vuepress-theme-hope.github.io/v2/basic/markdown/README.html) and [Markdown Demo](https://vuepress-theme-hope.github.io/v2/basic/markdown/demo.html).
|
|
20
|
-
|
|
21
|
-
::: info Frontmatter
|
|
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).
|
|
24
|
-
|
|
25
|
-
:::
|
|
26
|
-
|
|
27
|
-
## VuePress enhance
|
|
28
|
-
|
|
29
|
-
To enrich document writing, VuePress has extended Markdown syntax.
|
|
30
|
-
|
|
31
|
-
For these extensions, please read [Markdown extensions in VuePress](https://vuepress-theme-hope.github.io/v2/basic/vuepress/markdown.html).
|
|
32
|
-
|
|
33
|
-
## Theme enhance
|
|
34
|
-
|
|
35
|
-
### Enable all
|
|
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.
|
|
38
|
-
|
|
39
|
-
```js {3-5}
|
|
40
|
-
module.exports = {
|
|
41
|
-
themeConfig: {
|
|
42
|
-
plugins: {
|
|
43
|
-
mdEnhance: {
|
|
44
|
-
enableAll: true,
|
|
45
|
-
},
|
|
46
|
-
},
|
|
47
|
-
},
|
|
48
|
-
};
|
|
49
|
-
```
|
|
50
|
-
|
|
51
|
-
## New Feature
|
|
52
|
-
|
|
53
|
-
### Custom Container
|
|
54
|
-
|
|
55
|
-
::: v-pre
|
|
56
|
-
|
|
57
|
-
Safely use {{ variable }} in markdown.
|
|
58
|
-
|
|
59
|
-
:::
|
|
60
|
-
|
|
61
|
-
::: info Custom Title
|
|
62
|
-
|
|
63
|
-
A custom information container with `code`, [link](#markdown).
|
|
64
|
-
|
|
65
|
-
```js
|
|
66
|
-
const a = 1;
|
|
67
|
-
```
|
|
68
|
-
|
|
69
|
-
:::
|
|
70
|
-
|
|
71
|
-
::: tip Custom Title
|
|
72
|
-
|
|
73
|
-
A custom tip container
|
|
74
|
-
|
|
75
|
-
:::
|
|
76
|
-
|
|
77
|
-
::: warning Custom Title
|
|
78
|
-
|
|
79
|
-
A custom warning container
|
|
80
|
-
|
|
81
|
-
:::
|
|
82
|
-
|
|
83
|
-
::: danger Custom Title
|
|
84
|
-
|
|
85
|
-
A custom danger container
|
|
86
|
-
|
|
87
|
-
:::
|
|
88
|
-
|
|
89
|
-
::: details Custom Title
|
|
90
|
-
|
|
91
|
-
A custom details container
|
|
92
|
-
|
|
93
|
-
:::
|
|
94
|
-
|
|
95
|
-
:::: details Code
|
|
96
|
-
|
|
97
|
-
```md
|
|
98
|
-
::: v-pre
|
|
99
|
-
|
|
100
|
-
Safely use {{ variable }} in markdown.
|
|
101
|
-
|
|
102
|
-
:::
|
|
103
|
-
|
|
104
|
-
::: info Custom Title
|
|
105
|
-
|
|
106
|
-
A custom information container
|
|
107
|
-
|
|
108
|
-
:::
|
|
109
|
-
|
|
110
|
-
::: tip Custom Title
|
|
111
|
-
|
|
112
|
-
A custom tip container
|
|
113
|
-
|
|
114
|
-
:::
|
|
115
|
-
|
|
116
|
-
::: warning Custom Title
|
|
117
|
-
|
|
118
|
-
A custom warning container
|
|
119
|
-
|
|
120
|
-
:::
|
|
121
|
-
|
|
122
|
-
::: danger Custom Title
|
|
123
|
-
|
|
124
|
-
A custom danger container
|
|
125
|
-
|
|
126
|
-
:::
|
|
127
|
-
|
|
128
|
-
::: details Custom Title
|
|
129
|
-
|
|
130
|
-
A custom details container
|
|
131
|
-
|
|
132
|
-
:::
|
|
133
|
-
```
|
|
134
|
-
|
|
135
|
-
::::
|
|
136
|
-
|
|
137
|
-
### CodeGroup
|
|
138
|
-
|
|
139
|
-
:::: code-group
|
|
140
|
-
|
|
141
|
-
::: code-group-item yarn
|
|
142
|
-
|
|
143
|
-
```bash
|
|
144
|
-
yarn add -D vuepress-theme-hope
|
|
145
|
-
```
|
|
146
|
-
|
|
147
|
-
:::
|
|
148
|
-
|
|
149
|
-
::: code-group-item npm:active
|
|
150
|
-
|
|
151
|
-
```bash
|
|
152
|
-
npm i -D vuepress-theme-hope
|
|
153
|
-
```
|
|
154
|
-
|
|
155
|
-
:::
|
|
156
|
-
|
|
157
|
-
::::
|
|
158
|
-
|
|
159
|
-
- [View Detail](https://vuepress-theme-hope.github.io/v2/guide/markdown/code-group.html)
|
|
160
|
-
|
|
161
|
-
### Superscript and Subscript
|
|
162
|
-
|
|
163
|
-
19^th^ H~2~O
|
|
164
|
-
|
|
165
|
-
- [View Detail](https://vuepress-theme-hope.github.io/v2/guide/markdown/sup-sub.html)
|
|
166
|
-
|
|
167
|
-
### Align
|
|
168
|
-
|
|
169
|
-
::: center
|
|
170
|
-
|
|
171
|
-
I am center
|
|
172
|
-
|
|
173
|
-
:::
|
|
174
|
-
|
|
175
|
-
::: right
|
|
176
|
-
|
|
177
|
-
I am right align
|
|
178
|
-
|
|
179
|
-
:::
|
|
180
|
-
|
|
181
|
-
- [View Detail](https://vuepress-theme-hope.github.io/v2/guide/markdown/align.html)
|
|
182
|
-
|
|
183
|
-
### Footnote
|
|
184
|
-
|
|
185
|
-
This text has footnote[^first].
|
|
186
|
-
|
|
187
|
-
[^first]: This is footnote content
|
|
188
|
-
|
|
189
|
-
- [View Detail](https://vuepress-theme-hope.github.io/v2/guide/markdown/footnote.html)
|
|
190
|
-
|
|
191
|
-
### Mark
|
|
192
|
-
|
|
193
|
-
You can mark ==important words== .
|
|
194
|
-
|
|
195
|
-
- [View Detail](https://vuepress-theme-hope.github.io/v2/guide/markdown/mark.html)
|
|
196
|
-
|
|
197
|
-
### Tasklist
|
|
198
|
-
|
|
199
|
-
- [x] Plan A
|
|
200
|
-
- [ ] Plan B
|
|
201
|
-
|
|
202
|
-
- [View Detail](https://vuepress-theme-hope.github.io/v2/guide/markdown/tasklist.html)
|
|
203
|
-
|
|
204
|
-
### Chart
|
|
205
|
-
|
|
206
|
-
::: chart A Scatter Chart
|
|
207
|
-
|
|
208
|
-
```json
|
|
209
|
-
{
|
|
210
|
-
"type": "scatter",
|
|
211
|
-
"data": {
|
|
212
|
-
"datasets": [
|
|
213
|
-
{
|
|
214
|
-
"label": "Scatter Dataset",
|
|
215
|
-
"data": [
|
|
216
|
-
{ "x": -10, "y": 0 },
|
|
217
|
-
{ "x": 0, "y": 10 },
|
|
218
|
-
{ "x": 10, "y": 5 },
|
|
219
|
-
{ "x": 0.5, "y": 5.5 }
|
|
220
|
-
],
|
|
221
|
-
"backgroundColor": "rgb(255, 99, 132)"
|
|
222
|
-
}
|
|
223
|
-
]
|
|
224
|
-
},
|
|
225
|
-
"options": {
|
|
226
|
-
"scales": {
|
|
227
|
-
"x": {
|
|
228
|
-
"type": "linear",
|
|
229
|
-
"position": "bottom"
|
|
230
|
-
}
|
|
231
|
-
}
|
|
232
|
-
}
|
|
233
|
-
}
|
|
234
|
-
```
|
|
235
|
-
|
|
236
|
-
:::
|
|
237
|
-
|
|
238
|
-
- [View Detail](<[chart.md](https://vuepress-theme-hope.github.io/v2/guide/markdown/chart.html)>)
|
|
239
|
-
|
|
240
|
-
### Flowchart
|
|
241
|
-
|
|
242
|
-
```flow
|
|
243
|
-
cond=>condition: Process?
|
|
244
|
-
process=>operation: Process
|
|
245
|
-
e=>end: End
|
|
246
|
-
|
|
247
|
-
cond(yes)->process->e
|
|
248
|
-
cond(no)->e
|
|
249
|
-
```
|
|
250
|
-
|
|
251
|
-
- [View Detail](https://vuepress-theme-hope.github.io/v2/guide/markdown/flowchart.html)
|
|
252
|
-
|
|
253
|
-
### Mermaid
|
|
254
|
-
|
|
255
|
-
```mermaid
|
|
256
|
-
flowchart TB
|
|
257
|
-
c1-->a2
|
|
258
|
-
subgraph one
|
|
259
|
-
a1-->a2
|
|
260
|
-
end
|
|
261
|
-
subgraph two
|
|
262
|
-
b1-->b2
|
|
263
|
-
end
|
|
264
|
-
subgraph three
|
|
265
|
-
c1-->c2
|
|
266
|
-
end
|
|
267
|
-
one --> two
|
|
268
|
-
three --> two
|
|
269
|
-
two --> c2
|
|
270
|
-
```
|
|
271
|
-
|
|
272
|
-
- [View Detail](https://vuepress-theme-hope.github.io/v2/guide/markdown/mermaid.html)
|
|
273
|
-
|
|
274
|
-
### Tex
|
|
275
|
-
|
|
276
|
-
$$
|
|
277
|
-
\frac {\partial^r} {\partial \omega^r} \left(\frac {y^{\omega}} {\omega}\right)
|
|
278
|
-
= \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\}
|
|
279
|
-
$$
|
|
280
|
-
|
|
281
|
-
- [View Detail](https://vuepress-theme-hope.github.io/v2/guide/markdown/tex.html)
|
|
282
|
-
|
|
283
|
-
### Code Demo
|
|
284
|
-
|
|
285
|
-
::: demo A normal demo
|
|
286
|
-
|
|
287
|
-
```html
|
|
288
|
-
<h1>VuePress Theme Hope</h1>
|
|
289
|
-
<p>Is <span id="very">very</span> powerful!</p>
|
|
290
|
-
```
|
|
291
|
-
|
|
292
|
-
```js
|
|
293
|
-
document.querySelector("#very").addEventListener("click", () => {
|
|
294
|
-
alert("Very powerful!");
|
|
295
|
-
});
|
|
296
|
-
```
|
|
297
|
-
|
|
298
|
-
```css
|
|
299
|
-
span {
|
|
300
|
-
color: red;
|
|
301
|
-
}
|
|
302
|
-
```
|
|
303
|
-
|
|
304
|
-
:::
|
|
305
|
-
|
|
306
|
-
- [View Detail](https://vuepress-theme-hope.github.io/v2/guide/markdown/demo.html)
|
|
307
|
-
|
|
308
|
-
### Presentation
|
|
309
|
-
|
|
310
|
-
@slidestart
|
|
311
|
-
|
|
312
|
-
## Slide 1
|
|
313
|
-
|
|
314
|
-
A paragraph with some text and a [link](https://mrhope.site)
|
|
315
|
-
|
|
316
|
-
---
|
|
317
|
-
|
|
318
|
-
## Slide 2
|
|
319
|
-
|
|
320
|
-
- Item 1
|
|
321
|
-
- Item 2
|
|
322
|
-
|
|
323
|
-
---
|
|
324
|
-
|
|
325
|
-
## Slide 3.1
|
|
326
|
-
|
|
327
|
-
```js
|
|
328
|
-
const a = 1;
|
|
329
|
-
```
|
|
330
|
-
|
|
331
|
-
--
|
|
332
|
-
|
|
333
|
-
## Slide 3.2
|
|
334
|
-
|
|
335
|
-
$$
|
|
336
|
-
J(\theta_0,\theta_1) = \sum_{i=0}
|
|
337
|
-
$$
|
|
338
|
-
|
|
339
|
-
@slideend
|
|
340
|
-
|
|
341
|
-
- [View Detail](https://vuepress-theme-hope.github.io/v2/guide/markdown/presentation.html)
|
|
@@ -1,66 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
# This control sidebar index
|
|
3
|
-
index: 1
|
|
4
|
-
# This is the icon of the page
|
|
5
|
-
icon: page
|
|
6
|
-
# This is the title of the article
|
|
7
|
-
title: page config
|
|
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 aricle channel in home page
|
|
22
|
-
star: true
|
|
23
|
-
# You can customize the footer
|
|
24
|
-
footer: Footer content for test
|
|
25
|
-
---
|
|
26
|
-
|
|
27
|
-
Content before `more` comment is regarded as page excerpt.
|
|
28
|
-
|
|
29
|
-
<!-- more -->
|
|
30
|
-
|
|
31
|
-
## Page information
|
|
32
|
-
|
|
33
|
-
You can set page information in Markdown’s Frontmatter.
|
|
34
|
-
|
|
35
|
-
- The author is set to Ms.Hope.
|
|
36
|
-
|
|
37
|
-
- The writing time should be January 1, 2020
|
|
38
|
-
|
|
39
|
-
- Category is "Guide"
|
|
40
|
-
|
|
41
|
-
- Tags are "Page Config" and "Guide"
|
|
42
|
-
|
|
43
|
-
## Page content
|
|
44
|
-
|
|
45
|
-
You are free to write your Markdown here.
|
|
46
|
-
|
|
47
|
-
::: tip
|
|
48
|
-
|
|
49
|
-
- Please use the relative link `./` for pictures in the Markdown folder.
|
|
50
|
-
|
|
51
|
-
- For pictures in `.vuepress/public` folder, please use absolute link `/` for reference
|
|
52
|
-
|
|
53
|
-
:::
|
|
54
|
-
|
|
55
|
-
The theme contains a custom badge:
|
|
56
|
-
|
|
57
|
-
> A dark blue badge text badge at the end of line. <Badge text="Badge text" color="#242378" />
|
|
58
|
-
|
|
59
|
-
## Page structure
|
|
60
|
-
|
|
61
|
-
This page should contain:
|
|
62
|
-
|
|
63
|
-
- Back to top button
|
|
64
|
-
- Route navigation
|
|
65
|
-
- Comments
|
|
66
|
-
- Footer
|
package/template/en-US/intro.md
DELETED
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
import { defineHopeConfig } from "vuepress-theme-hope";
|
|
2
|
-
import themeConfig from "./themeConfig";
|
|
3
|
-
|
|
4
|
-
export default defineHopeConfig({
|
|
5
|
-
base: "/",
|
|
6
|
-
|
|
7
|
-
dest: "./dist",
|
|
8
|
-
|
|
9
|
-
head: [
|
|
10
|
-
[
|
|
11
|
-
"link",
|
|
12
|
-
{
|
|
13
|
-
rel: "stylesheet",
|
|
14
|
-
href: "//at.alicdn.com/t/font_2410206_mfj6e1vbwo.css",
|
|
15
|
-
},
|
|
16
|
-
],
|
|
17
|
-
],
|
|
18
|
-
|
|
19
|
-
locales: {
|
|
20
|
-
"/": {
|
|
21
|
-
lang: "en-US",
|
|
22
|
-
title: "Theme Demo",
|
|
23
|
-
description: "A demo for vuepress-theme-hope",
|
|
24
|
-
},
|
|
25
|
-
"/zh/": {
|
|
26
|
-
lang: "zh-CN",
|
|
27
|
-
title: "主题演示",
|
|
28
|
-
description: "vuepress-theme-hope 的演示",
|
|
29
|
-
},
|
|
30
|
-
},
|
|
31
|
-
|
|
32
|
-
themeConfig,
|
|
33
|
-
});
|
|
@@ -1,52 +0,0 @@
|
|
|
1
|
-
import { defineNavbarConfig } from "vuepress-theme-hope";
|
|
2
|
-
|
|
3
|
-
export const en = defineNavbarConfig([
|
|
4
|
-
"/",
|
|
5
|
-
"/home",
|
|
6
|
-
{ text: "Guide", icon: "creative", link: "/guide/" },
|
|
7
|
-
{
|
|
8
|
-
text: "Posts",
|
|
9
|
-
icon: "edit",
|
|
10
|
-
prefix: "/posts/",
|
|
11
|
-
children: [
|
|
12
|
-
{
|
|
13
|
-
text: "Articles 1-4",
|
|
14
|
-
icon: "edit",
|
|
15
|
-
prefix: "article/",
|
|
16
|
-
children: [
|
|
17
|
-
{ text: "Article 1", icon: "edit", link: "article1" },
|
|
18
|
-
{ text: "Article 2", icon: "edit", link: "article2" },
|
|
19
|
-
"article3",
|
|
20
|
-
"article4",
|
|
21
|
-
],
|
|
22
|
-
},
|
|
23
|
-
{
|
|
24
|
-
text: "Articles 5-12",
|
|
25
|
-
icon: "edit",
|
|
26
|
-
children: [
|
|
27
|
-
{
|
|
28
|
-
text: "Article 5",
|
|
29
|
-
icon: "edit",
|
|
30
|
-
link: "article/article5",
|
|
31
|
-
},
|
|
32
|
-
{
|
|
33
|
-
text: "Article 6",
|
|
34
|
-
icon: "edit",
|
|
35
|
-
link: "article/article6",
|
|
36
|
-
},
|
|
37
|
-
"article/article7",
|
|
38
|
-
"article/article8",
|
|
39
|
-
],
|
|
40
|
-
},
|
|
41
|
-
{ text: "Article 9", icon: "edit", link: "article9" },
|
|
42
|
-
{ text: "Article 10", icon: "edit", link: "article10" },
|
|
43
|
-
"article11",
|
|
44
|
-
"article12",
|
|
45
|
-
],
|
|
46
|
-
},
|
|
47
|
-
{
|
|
48
|
-
text: "Theme Docs",
|
|
49
|
-
icon: "note",
|
|
50
|
-
link: "https://vuepress-theme-hope.github.io/v2/",
|
|
51
|
-
},
|
|
52
|
-
]);
|