create-vuepress-theme-hope 2.0.0-beta.217 → 2.0.0-beta.218
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/template/blog/.vuepress/navbar/en.ts +11 -11
- package/template/blog/.vuepress/navbar/zh.ts +23 -13
- package/template/blog/.vuepress/sidebar/en.ts +2 -2
- package/template/blog/.vuepress/sidebar/zh.ts +2 -2
- package/template/blog/.vuepress/theme.ts +5 -4
- package/template/blog/demo/README.md +2 -2
- package/template/blog/demo/disable.md +1 -1
- package/template/blog/demo/markdown.md +2 -2
- package/template/blog/demo/page.md +1 -1
- package/template/blog/intro.md +1 -1
- package/template/blog/posts/apple/1.md +1 -1
- package/template/blog/posts/apple/2.md +1 -1
- package/template/blog/posts/apple/3.md +1 -1
- package/template/blog/posts/apple/4.md +1 -1
- package/template/blog/posts/banana/1.md +1 -1
- package/template/blog/posts/banana/2.md +1 -1
- package/template/blog/posts/banana/3.md +1 -1
- package/template/blog/posts/banana/4.md +1 -1
- package/template/blog/posts/cherry.md +1 -1
- package/template/blog/posts/dragonfruit.md +1 -1
- package/template/blog/posts/strawberry.md +1 -1
- package/template/blog/posts/tomato.md +1 -1
- package/template/blog/slides.md +1 -1
- package/template/blog/zh/demo/README.md +1 -1
- package/template/blog/zh/demo/disable.md +1 -1
- package/template/blog/zh/demo/markdown.md +1 -1
- package/template/blog/zh/demo/page.md +2 -2
- package/template/blog/zh/intro.md +1 -1
- package/template/blog/zh/posts/apple/1.md +1 -1
- package/template/blog/zh/posts/apple/2.md +1 -1
- package/template/blog/zh/posts/apple/3.md +1 -1
- package/template/blog/zh/posts/apple/4.md +1 -1
- package/template/blog/zh/posts/banana/1.md +1 -1
- package/template/blog/zh/posts/banana/2.md +1 -1
- package/template/blog/zh/posts/banana/3.md +1 -1
- package/template/blog/zh/posts/banana/4.md +1 -1
- package/template/blog/zh/posts/cherry.md +1 -1
- package/template/blog/zh/posts/dragonfruit.md +1 -1
- package/template/blog/zh/posts/strawberry.md +1 -1
- package/template/blog/zh/posts/tomato.md +1 -1
- package/template/blog/zh/slides.md +1 -1
- package/template/docs/.vuepress/navbar/en.ts +7 -7
- package/template/docs/.vuepress/navbar/zh.ts +7 -7
- package/template/docs/.vuepress/public/assets/image/advanced.svg +1 -0
- package/template/docs/.vuepress/public/assets/image/blog.svg +1 -0
- package/template/docs/.vuepress/public/assets/image/box.svg +1 -0
- package/template/docs/.vuepress/public/assets/image/features.svg +1 -0
- package/template/docs/.vuepress/public/assets/image/github-dark.svg +1 -0
- package/template/docs/.vuepress/public/assets/image/github-light.svg +1 -0
- package/template/docs/.vuepress/public/assets/image/layout.svg +1 -0
- package/template/docs/.vuepress/public/assets/image/markdown.svg +1 -0
- package/template/docs/.vuepress/sidebar/en.ts +2 -2
- package/template/docs/.vuepress/sidebar/zh.ts +2 -2
- package/template/docs/.vuepress/theme.ts +9 -5
- package/template/docs/README.md +247 -88
- package/template/docs/demo/README.md +2 -2
- package/template/docs/demo/disable.md +1 -1
- package/template/docs/demo/markdown.md +3 -3
- package/template/docs/demo/page.md +1 -1
- package/template/docs/guide/README.md +1 -1
- package/template/docs/guide/bar/README.md +1 -1
- package/template/docs/guide/bar/baz.md +1 -1
- package/template/docs/guide/foo/README.md +1 -1
- package/template/docs/guide/foo/ray.md +1 -1
- package/template/docs/slides.md +1 -1
- package/template/docs/zh/README.md +249 -89
- package/template/docs/zh/demo/README.md +1 -1
- package/template/docs/zh/demo/disable.md +1 -1
- package/template/docs/zh/demo/markdown.md +2 -2
- package/template/docs/zh/demo/page.md +1 -1
- package/template/docs/zh/guide/README.md +1 -1
- package/template/docs/zh/guide/bar/README.md +1 -1
- package/template/docs/zh/guide/bar/baz.md +1 -1
- package/template/docs/zh/guide/foo/README.md +1 -1
- package/template/docs/zh/guide/foo/ray.md +1 -1
- package/template/docs/zh/slides.md +1 -1
package/package.json
CHANGED
|
@@ -2,51 +2,51 @@ import { navbar } from "vuepress-theme-hope";
|
|
|
2
2
|
|
|
3
3
|
export const enNavbar = navbar([
|
|
4
4
|
"/",
|
|
5
|
-
|
|
5
|
+
"/demo/",
|
|
6
6
|
{
|
|
7
7
|
text: "Posts",
|
|
8
|
-
icon: "
|
|
8
|
+
icon: "pen-to-square",
|
|
9
9
|
prefix: "/posts/",
|
|
10
10
|
children: [
|
|
11
11
|
{
|
|
12
12
|
text: "Apple",
|
|
13
|
-
icon: "
|
|
13
|
+
icon: "pen-to-square",
|
|
14
14
|
prefix: "apple/",
|
|
15
15
|
children: [
|
|
16
|
-
{ text: "Apple1", icon: "
|
|
17
|
-
{ text: "Apple2", icon: "
|
|
16
|
+
{ text: "Apple1", icon: "pen-to-square", link: "1" },
|
|
17
|
+
{ text: "Apple2", icon: "pen-to-square", link: "2" },
|
|
18
18
|
"3",
|
|
19
19
|
"4",
|
|
20
20
|
],
|
|
21
21
|
},
|
|
22
22
|
{
|
|
23
23
|
text: "Banana",
|
|
24
|
-
icon: "
|
|
24
|
+
icon: "pen-to-square",
|
|
25
25
|
prefix: "banana/",
|
|
26
26
|
children: [
|
|
27
27
|
{
|
|
28
28
|
text: "Banana 1",
|
|
29
|
-
icon: "
|
|
29
|
+
icon: "pen-to-square",
|
|
30
30
|
link: "1",
|
|
31
31
|
},
|
|
32
32
|
{
|
|
33
33
|
text: "Banana 2",
|
|
34
|
-
icon: "
|
|
34
|
+
icon: "pen-to-square",
|
|
35
35
|
link: "2",
|
|
36
36
|
},
|
|
37
37
|
"3",
|
|
38
38
|
"4",
|
|
39
39
|
],
|
|
40
40
|
},
|
|
41
|
-
{ text: "Cherry", icon: "
|
|
42
|
-
{ text: "Dragon Fruit", icon: "
|
|
41
|
+
{ text: "Cherry", icon: "pen-to-square", link: "cherry" },
|
|
42
|
+
{ text: "Dragon Fruit", icon: "pen-to-square", link: "dragonfruit" },
|
|
43
43
|
"tomato",
|
|
44
44
|
"strawberry",
|
|
45
45
|
],
|
|
46
46
|
},
|
|
47
47
|
{
|
|
48
48
|
text: "V2 Docs",
|
|
49
|
-
icon: "
|
|
49
|
+
icon: "book",
|
|
50
50
|
link: "https://theme-hope.vuejs.press/",
|
|
51
51
|
},
|
|
52
52
|
]);
|
|
@@ -1,52 +1,62 @@
|
|
|
1
1
|
import { navbar } from "vuepress-theme-hope";
|
|
2
|
+
import { version } from "../version.js";
|
|
2
3
|
|
|
3
4
|
export const zhNavbar = navbar([
|
|
4
5
|
"/zh/",
|
|
5
|
-
|
|
6
|
+
"/zh/demo/",
|
|
6
7
|
{
|
|
7
8
|
text: "博文",
|
|
8
|
-
icon: "
|
|
9
|
+
icon: "pen-to-square",
|
|
9
10
|
prefix: "/zh/posts/",
|
|
10
11
|
children: [
|
|
11
12
|
{
|
|
12
13
|
text: "苹果",
|
|
13
|
-
icon: "
|
|
14
|
+
icon: "pen-to-square",
|
|
14
15
|
prefix: "apple/",
|
|
15
16
|
children: [
|
|
16
|
-
{ text: "苹果1", icon: "
|
|
17
|
-
{ text: "苹果2", icon: "
|
|
17
|
+
{ text: "苹果1", icon: "pen-to-square", link: "1" },
|
|
18
|
+
{ text: "苹果2", icon: "pen-to-square", link: "2" },
|
|
18
19
|
"3",
|
|
19
20
|
"4",
|
|
20
21
|
],
|
|
21
22
|
},
|
|
22
23
|
{
|
|
23
24
|
text: "香蕉",
|
|
24
|
-
icon: "
|
|
25
|
+
icon: "pen-to-square",
|
|
25
26
|
prefix: "banana/",
|
|
26
27
|
children: [
|
|
27
28
|
{
|
|
28
29
|
text: "香蕉 1",
|
|
29
|
-
icon: "
|
|
30
|
+
icon: "pen-to-square",
|
|
30
31
|
link: "1",
|
|
31
32
|
},
|
|
32
33
|
{
|
|
33
34
|
text: "香蕉 2",
|
|
34
|
-
icon: "
|
|
35
|
+
icon: "pen-to-square",
|
|
35
36
|
link: "2",
|
|
36
37
|
},
|
|
37
38
|
"3",
|
|
38
39
|
"4",
|
|
39
40
|
],
|
|
40
41
|
},
|
|
41
|
-
{ text: "樱桃", icon: "
|
|
42
|
-
{ text: "火龙果", icon: "
|
|
42
|
+
{ text: "樱桃", icon: "pen-to-square", link: "cherry" },
|
|
43
|
+
{ text: "火龙果", icon: "pen-to-square", link: "dragonfruit" },
|
|
43
44
|
"tomato",
|
|
44
45
|
"strawberry",
|
|
45
46
|
],
|
|
46
47
|
},
|
|
47
48
|
{
|
|
48
|
-
text:
|
|
49
|
-
icon: "
|
|
50
|
-
|
|
49
|
+
text: version,
|
|
50
|
+
icon: "book",
|
|
51
|
+
children: [
|
|
52
|
+
{
|
|
53
|
+
text: "V2 文档",
|
|
54
|
+
link: "https://theme-hope.vuejs.press/zh/",
|
|
55
|
+
},
|
|
56
|
+
{
|
|
57
|
+
text: "V2 文档案例",
|
|
58
|
+
link: "https://theme-hope-docs-demo.vuejs.press/zh/",
|
|
59
|
+
},
|
|
60
|
+
],
|
|
51
61
|
},
|
|
52
62
|
]);
|
|
@@ -4,15 +4,15 @@ export const enSidebar = sidebar({
|
|
|
4
4
|
"/": [
|
|
5
5
|
"",
|
|
6
6
|
{
|
|
7
|
-
icon: "discover",
|
|
8
7
|
text: "Demo",
|
|
8
|
+
icon: "laptop-code",
|
|
9
9
|
prefix: "demo/",
|
|
10
10
|
link: "demo/",
|
|
11
11
|
children: "structure",
|
|
12
12
|
},
|
|
13
13
|
{
|
|
14
14
|
text: "Articles",
|
|
15
|
-
icon: "
|
|
15
|
+
icon: "book",
|
|
16
16
|
prefix: "posts/",
|
|
17
17
|
children: "structure",
|
|
18
18
|
},
|
|
@@ -5,14 +5,14 @@ export const zhSidebar = sidebar({
|
|
|
5
5
|
"",
|
|
6
6
|
{
|
|
7
7
|
text: "如何使用",
|
|
8
|
-
icon: "
|
|
8
|
+
icon: "laptop-code",
|
|
9
9
|
prefix: "demo/",
|
|
10
10
|
link: "demo/",
|
|
11
11
|
children: "structure",
|
|
12
12
|
},
|
|
13
13
|
{
|
|
14
14
|
text: "文章",
|
|
15
|
-
icon: "
|
|
15
|
+
icon: "book",
|
|
16
16
|
prefix: "posts/",
|
|
17
17
|
children: "structure",
|
|
18
18
|
},
|
|
@@ -13,13 +13,13 @@ export default hopeTheme({
|
|
|
13
13
|
url: "https://mrhope.site",
|
|
14
14
|
},
|
|
15
15
|
|
|
16
|
-
iconAssets: "
|
|
16
|
+
iconAssets: "fontawesome-with-brands",
|
|
17
17
|
|
|
18
18
|
logo: "/logo.svg",
|
|
19
19
|
|
|
20
20
|
repo: "vuepress-theme-hope/vuepress-theme-hope",
|
|
21
21
|
|
|
22
|
-
docsDir: "
|
|
22
|
+
docsDir: "src",
|
|
23
23
|
|
|
24
24
|
blog: {
|
|
25
25
|
medias: {
|
|
@@ -117,8 +117,9 @@ export default hopeTheme({
|
|
|
117
117
|
blog: true,
|
|
118
118
|
|
|
119
119
|
comment: {
|
|
120
|
-
//
|
|
121
|
-
provider: "
|
|
120
|
+
// You should generate and use your own comment service
|
|
121
|
+
provider: "Waline",
|
|
122
|
+
serverURL: "https://waline-comment.vuejs.press",
|
|
122
123
|
},
|
|
123
124
|
|
|
124
125
|
// all features are enabled for demo, only preserve features you need here
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
---
|
|
2
2
|
title: Markdown Enhance
|
|
3
|
-
icon: markdown
|
|
3
|
+
icon: fab fa-markdown
|
|
4
4
|
order: 2
|
|
5
5
|
category:
|
|
6
6
|
- Guide
|
|
@@ -20,7 +20,7 @@ If you are a new learner and don't know how to write Markdown, please read [Mark
|
|
|
20
20
|
|
|
21
21
|
## Markdown Config
|
|
22
22
|
|
|
23
|
-
VuePress introduce configuration for each
|
|
23
|
+
VuePress introduce configuration for each markdown page using Frontmatter.
|
|
24
24
|
|
|
25
25
|
::: info
|
|
26
26
|
|
package/template/blog/intro.md
CHANGED
package/template/blog/slides.md
CHANGED
|
@@ -2,29 +2,29 @@ import { navbar } from "vuepress-theme-hope";
|
|
|
2
2
|
|
|
3
3
|
export const enNavbar = navbar([
|
|
4
4
|
"/",
|
|
5
|
-
|
|
5
|
+
"/demo/",
|
|
6
6
|
{
|
|
7
7
|
text: "Guide",
|
|
8
|
-
icon: "
|
|
8
|
+
icon: "lightbulb",
|
|
9
9
|
prefix: "/guide/",
|
|
10
10
|
children: [
|
|
11
11
|
{
|
|
12
12
|
text: "Bar",
|
|
13
|
-
icon: "
|
|
13
|
+
icon: "lightbulb",
|
|
14
14
|
prefix: "bar/",
|
|
15
|
-
children: ["baz", { text: "...", icon: "
|
|
15
|
+
children: ["baz", { text: "...", icon: "ellipsis", link: "#" }],
|
|
16
16
|
},
|
|
17
17
|
{
|
|
18
18
|
text: "Foo",
|
|
19
|
-
icon: "
|
|
19
|
+
icon: "lightbulb",
|
|
20
20
|
prefix: "foo/",
|
|
21
|
-
children: ["ray", { text: "...", icon: "
|
|
21
|
+
children: ["ray", { text: "...", icon: "ellipsis", link: "#" }],
|
|
22
22
|
},
|
|
23
23
|
],
|
|
24
24
|
},
|
|
25
25
|
{
|
|
26
26
|
text: "V2 Docs",
|
|
27
|
-
icon: "
|
|
27
|
+
icon: "book",
|
|
28
28
|
link: "https://theme-hope.vuejs.press/",
|
|
29
29
|
},
|
|
30
30
|
]);
|
|
@@ -2,29 +2,29 @@ import { navbar } from "vuepress-theme-hope";
|
|
|
2
2
|
|
|
3
3
|
export const zhNavbar = navbar([
|
|
4
4
|
"/zh/",
|
|
5
|
-
|
|
5
|
+
"/zh/demo/",
|
|
6
6
|
{
|
|
7
7
|
text: "指南",
|
|
8
|
-
icon: "
|
|
8
|
+
icon: "lightbulb",
|
|
9
9
|
prefix: "/zh/guide/",
|
|
10
10
|
children: [
|
|
11
11
|
{
|
|
12
12
|
text: "Bar",
|
|
13
|
-
icon: "
|
|
13
|
+
icon: "lightbulb",
|
|
14
14
|
prefix: "bar/",
|
|
15
|
-
children: ["baz", { text: "...", icon: "
|
|
15
|
+
children: ["baz", { text: "...", icon: "ellipsis", link: "" }],
|
|
16
16
|
},
|
|
17
17
|
{
|
|
18
18
|
text: "Foo",
|
|
19
|
-
icon: "
|
|
19
|
+
icon: "lightbulb",
|
|
20
20
|
prefix: "foo/",
|
|
21
|
-
children: ["ray", { text: "...", icon: "
|
|
21
|
+
children: ["ray", { text: "...", icon: "ellipsis", link: "" }],
|
|
22
22
|
},
|
|
23
23
|
],
|
|
24
24
|
},
|
|
25
25
|
{
|
|
26
26
|
text: "V2 文档",
|
|
27
|
-
icon: "
|
|
27
|
+
icon: "book",
|
|
28
28
|
link: "https://theme-hope.vuejs.press/zh/",
|
|
29
29
|
},
|
|
30
30
|
]);
|