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.
Files changed (77) hide show
  1. package/package.json +1 -1
  2. package/template/blog/.vuepress/navbar/en.ts +11 -11
  3. package/template/blog/.vuepress/navbar/zh.ts +23 -13
  4. package/template/blog/.vuepress/sidebar/en.ts +2 -2
  5. package/template/blog/.vuepress/sidebar/zh.ts +2 -2
  6. package/template/blog/.vuepress/theme.ts +5 -4
  7. package/template/blog/demo/README.md +2 -2
  8. package/template/blog/demo/disable.md +1 -1
  9. package/template/blog/demo/markdown.md +2 -2
  10. package/template/blog/demo/page.md +1 -1
  11. package/template/blog/intro.md +1 -1
  12. package/template/blog/posts/apple/1.md +1 -1
  13. package/template/blog/posts/apple/2.md +1 -1
  14. package/template/blog/posts/apple/3.md +1 -1
  15. package/template/blog/posts/apple/4.md +1 -1
  16. package/template/blog/posts/banana/1.md +1 -1
  17. package/template/blog/posts/banana/2.md +1 -1
  18. package/template/blog/posts/banana/3.md +1 -1
  19. package/template/blog/posts/banana/4.md +1 -1
  20. package/template/blog/posts/cherry.md +1 -1
  21. package/template/blog/posts/dragonfruit.md +1 -1
  22. package/template/blog/posts/strawberry.md +1 -1
  23. package/template/blog/posts/tomato.md +1 -1
  24. package/template/blog/slides.md +1 -1
  25. package/template/blog/zh/demo/README.md +1 -1
  26. package/template/blog/zh/demo/disable.md +1 -1
  27. package/template/blog/zh/demo/markdown.md +1 -1
  28. package/template/blog/zh/demo/page.md +2 -2
  29. package/template/blog/zh/intro.md +1 -1
  30. package/template/blog/zh/posts/apple/1.md +1 -1
  31. package/template/blog/zh/posts/apple/2.md +1 -1
  32. package/template/blog/zh/posts/apple/3.md +1 -1
  33. package/template/blog/zh/posts/apple/4.md +1 -1
  34. package/template/blog/zh/posts/banana/1.md +1 -1
  35. package/template/blog/zh/posts/banana/2.md +1 -1
  36. package/template/blog/zh/posts/banana/3.md +1 -1
  37. package/template/blog/zh/posts/banana/4.md +1 -1
  38. package/template/blog/zh/posts/cherry.md +1 -1
  39. package/template/blog/zh/posts/dragonfruit.md +1 -1
  40. package/template/blog/zh/posts/strawberry.md +1 -1
  41. package/template/blog/zh/posts/tomato.md +1 -1
  42. package/template/blog/zh/slides.md +1 -1
  43. package/template/docs/.vuepress/navbar/en.ts +7 -7
  44. package/template/docs/.vuepress/navbar/zh.ts +7 -7
  45. package/template/docs/.vuepress/public/assets/image/advanced.svg +1 -0
  46. package/template/docs/.vuepress/public/assets/image/blog.svg +1 -0
  47. package/template/docs/.vuepress/public/assets/image/box.svg +1 -0
  48. package/template/docs/.vuepress/public/assets/image/features.svg +1 -0
  49. package/template/docs/.vuepress/public/assets/image/github-dark.svg +1 -0
  50. package/template/docs/.vuepress/public/assets/image/github-light.svg +1 -0
  51. package/template/docs/.vuepress/public/assets/image/layout.svg +1 -0
  52. package/template/docs/.vuepress/public/assets/image/markdown.svg +1 -0
  53. package/template/docs/.vuepress/sidebar/en.ts +2 -2
  54. package/template/docs/.vuepress/sidebar/zh.ts +2 -2
  55. package/template/docs/.vuepress/theme.ts +9 -5
  56. package/template/docs/README.md +247 -88
  57. package/template/docs/demo/README.md +2 -2
  58. package/template/docs/demo/disable.md +1 -1
  59. package/template/docs/demo/markdown.md +3 -3
  60. package/template/docs/demo/page.md +1 -1
  61. package/template/docs/guide/README.md +1 -1
  62. package/template/docs/guide/bar/README.md +1 -1
  63. package/template/docs/guide/bar/baz.md +1 -1
  64. package/template/docs/guide/foo/README.md +1 -1
  65. package/template/docs/guide/foo/ray.md +1 -1
  66. package/template/docs/slides.md +1 -1
  67. package/template/docs/zh/README.md +249 -89
  68. package/template/docs/zh/demo/README.md +1 -1
  69. package/template/docs/zh/demo/disable.md +1 -1
  70. package/template/docs/zh/demo/markdown.md +2 -2
  71. package/template/docs/zh/demo/page.md +1 -1
  72. package/template/docs/zh/guide/README.md +1 -1
  73. package/template/docs/zh/guide/bar/README.md +1 -1
  74. package/template/docs/zh/guide/bar/baz.md +1 -1
  75. package/template/docs/zh/guide/foo/README.md +1 -1
  76. package/template/docs/zh/guide/foo/ray.md +1 -1
  77. package/template/docs/zh/slides.md +1 -1
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "create-vuepress-theme-hope",
3
- "version": "2.0.0-beta.217",
3
+ "version": "2.0.0-beta.218",
4
4
  "description": "Create vuepress-theme-hope demo project helper",
5
5
  "keywords": [
6
6
  "create",
@@ -2,51 +2,51 @@ import { navbar } from "vuepress-theme-hope";
2
2
 
3
3
  export const enNavbar = navbar([
4
4
  "/",
5
- { text: "Demo", icon: "discover", link: "/demo/" },
5
+ "/demo/",
6
6
  {
7
7
  text: "Posts",
8
- icon: "edit",
8
+ icon: "pen-to-square",
9
9
  prefix: "/posts/",
10
10
  children: [
11
11
  {
12
12
  text: "Apple",
13
- icon: "edit",
13
+ icon: "pen-to-square",
14
14
  prefix: "apple/",
15
15
  children: [
16
- { text: "Apple1", icon: "edit", link: "1" },
17
- { text: "Apple2", icon: "edit", link: "2" },
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: "edit",
24
+ icon: "pen-to-square",
25
25
  prefix: "banana/",
26
26
  children: [
27
27
  {
28
28
  text: "Banana 1",
29
- icon: "edit",
29
+ icon: "pen-to-square",
30
30
  link: "1",
31
31
  },
32
32
  {
33
33
  text: "Banana 2",
34
- icon: "edit",
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: "edit", link: "cherry" },
42
- { text: "Dragon Fruit", icon: "edit", link: "dragonfruit" },
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: "note",
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
- { text: "演示", icon: "discover", link: "/zh/demo/" },
6
+ "/zh/demo/",
6
7
  {
7
8
  text: "博文",
8
- icon: "edit",
9
+ icon: "pen-to-square",
9
10
  prefix: "/zh/posts/",
10
11
  children: [
11
12
  {
12
13
  text: "苹果",
13
- icon: "edit",
14
+ icon: "pen-to-square",
14
15
  prefix: "apple/",
15
16
  children: [
16
- { text: "苹果1", icon: "edit", link: "1" },
17
- { text: "苹果2", icon: "edit", link: "2" },
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: "edit",
25
+ icon: "pen-to-square",
25
26
  prefix: "banana/",
26
27
  children: [
27
28
  {
28
29
  text: "香蕉 1",
29
- icon: "edit",
30
+ icon: "pen-to-square",
30
31
  link: "1",
31
32
  },
32
33
  {
33
34
  text: "香蕉 2",
34
- icon: "edit",
35
+ icon: "pen-to-square",
35
36
  link: "2",
36
37
  },
37
38
  "3",
38
39
  "4",
39
40
  ],
40
41
  },
41
- { text: "樱桃", icon: "edit", link: "cherry" },
42
- { text: "火龙果", icon: "edit", link: "dragonfruit" },
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: "V2 文档",
49
- icon: "note",
50
- link: "https://theme-hope.vuejs.press/zh/",
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: "note",
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: "creative",
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: "note",
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: "iconfont",
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: "docs",
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
- // @ts-expect-error: You should generate and use your own comment service
121
- provider: "Giscus",
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,7 +1,7 @@
1
1
  ---
2
- title: Features Demo
2
+ title: Features demo
3
3
  index: false
4
- icon: discover
4
+ icon: laptop-code
5
5
  category:
6
6
  - Guide
7
7
  ---
@@ -1,6 +1,6 @@
1
1
  ---
2
2
  title: Disabling layout and features
3
- icon: config
3
+ icon: gears
4
4
  order: 3
5
5
  category:
6
6
  - Guide
@@ -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 Markdown page using Frontmatter.
23
+ VuePress introduce configuration for each markdown page using Frontmatter.
24
24
 
25
25
  ::: info
26
26
 
@@ -4,7 +4,7 @@ title: Page Config
4
4
  # You can customize cover image
5
5
  cover: /assets/images/cover1.jpg
6
6
  # This is the icon of the page
7
- icon: page
7
+ icon: file
8
8
  # This control sidebar order
9
9
  order: 1
10
10
  # Set author
@@ -1,5 +1,5 @@
1
1
  ---
2
- icon: info
2
+ icon: circle-info
3
3
  cover: /assets/images/cover3.jpg
4
4
  ---
5
5
 
@@ -1,5 +1,5 @@
1
1
  ---
2
- icon: edit
2
+ icon: pen-to-square
3
3
  date: 2022-01-01
4
4
  category:
5
5
  - Apple
@@ -1,5 +1,5 @@
1
1
  ---
2
- icon: edit
2
+ icon: pen-to-square
3
3
  date: 2022-01-02
4
4
  category:
5
5
  - Apple
@@ -1,5 +1,5 @@
1
1
  ---
2
- icon: edit
2
+ icon: pen-to-square
3
3
  date: 2022-01-03
4
4
  category:
5
5
  - Apple
@@ -1,5 +1,5 @@
1
1
  ---
2
- icon: edit
2
+ icon: pen-to-square
3
3
  date: 2022-01-04
4
4
  category:
5
5
  - Apple
@@ -1,5 +1,5 @@
1
1
  ---
2
- icon: edit
2
+ icon: pen-to-square
3
3
  date: 2022-01-05
4
4
  category:
5
5
  - Banana
@@ -1,5 +1,5 @@
1
1
  ---
2
- icon: edit
2
+ icon: pen-to-square
3
3
  date: 2022-01-06
4
4
  category:
5
5
  - Banana
@@ -1,5 +1,5 @@
1
1
  ---
2
- icon: edit
2
+ icon: pen-to-square
3
3
  date: 2022-01-07
4
4
  category:
5
5
  - Banana
@@ -1,5 +1,5 @@
1
1
  ---
2
- icon: edit
2
+ icon: pen-to-square
3
3
  date: 2022-01-08
4
4
  category:
5
5
  - Banana
@@ -1,5 +1,5 @@
1
1
  ---
2
- icon: edit
2
+ icon: pen-to-square
3
3
  date: 2022-01-09
4
4
  category:
5
5
  - Cherry
@@ -1,5 +1,5 @@
1
1
  ---
2
- icon: edit
2
+ icon: pen-to-square
3
3
  date: 2022-01-10
4
4
  category:
5
5
  - Dragon Fruit
@@ -1,5 +1,5 @@
1
1
  ---
2
- icon: edit
2
+ icon: pen-to-square
3
3
  date: 2022-01-11
4
4
  category:
5
5
  - Fruit
@@ -1,6 +1,6 @@
1
1
  ---
2
2
  cover: /assets/images/cover2.jpg
3
- icon: edit
3
+ icon: pen-to-square
4
4
  date: 2022-01-12
5
5
  category:
6
6
  - Vegetable
@@ -1,6 +1,6 @@
1
1
  ---
2
2
  title: Slide page
3
- icon: slides
3
+ icon: person-chalkboard
4
4
  layout: Slide
5
5
  ---
6
6
 
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  title: 主要功能与配置演示
3
3
  index: false
4
- icon: discover
4
+ icon: laptop-code
5
5
  category:
6
6
  - 使用指南
7
7
  ---
@@ -1,6 +1,6 @@
1
1
  ---
2
2
  title: 布局与功能禁用
3
- icon: config
3
+ icon: gears
4
4
  order: 3
5
5
  category:
6
6
  - 使用指南
@@ -1,6 +1,6 @@
1
1
  ---
2
2
  title: Markdown 展示
3
- icon: markdown
3
+ icon: fab fa-markdown
4
4
  order: 2
5
5
  category:
6
6
  - 使用指南
@@ -1,10 +1,10 @@
1
1
  ---
2
2
  # 这是文章的标题
3
3
  title: 页面配置
4
- # You can customize cover image
4
+ # 你可以自定义封面图片
5
5
  cover: /assets/images/cover1.jpg
6
6
  # 这是页面的图标
7
- icon: page
7
+ icon: file
8
8
  # 这是侧边栏的顺序
9
9
  order: 1
10
10
  # 设置作者
@@ -1,5 +1,5 @@
1
1
  ---
2
- icon: info
2
+ icon: circle-info
3
3
  cover: /assets/images/cover3.jpg
4
4
  ---
5
5
 
@@ -1,5 +1,5 @@
1
1
  ---
2
- icon: edit
2
+ icon: pen-to-square
3
3
  date: 2022-01-01
4
4
  category:
5
5
  - 苹果
@@ -1,5 +1,5 @@
1
1
  ---
2
- icon: edit
2
+ icon: pen-to-square
3
3
  date: 2022-01-02
4
4
  category:
5
5
  - 苹果
@@ -1,5 +1,5 @@
1
1
  ---
2
- icon: edit
2
+ icon: pen-to-square
3
3
  date: 2022-01-03
4
4
  category:
5
5
  - 苹果
@@ -1,5 +1,5 @@
1
1
  ---
2
- icon: edit
2
+ icon: pen-to-square
3
3
  date: 2022-01-04
4
4
  category:
5
5
  - 苹果
@@ -1,5 +1,5 @@
1
1
  ---
2
- icon: edit
2
+ icon: pen-to-square
3
3
  date: 2022-01-05
4
4
  category:
5
5
  - 香蕉
@@ -1,5 +1,5 @@
1
1
  ---
2
- icon: edit
2
+ icon: pen-to-square
3
3
  date: 2022-01-06
4
4
  category:
5
5
  - 香蕉
@@ -1,5 +1,5 @@
1
1
  ---
2
- icon: edit
2
+ icon: pen-to-square
3
3
  date: 2022-01-07
4
4
  category:
5
5
  - 香蕉
@@ -1,5 +1,5 @@
1
1
  ---
2
- icon: edit
2
+ icon: pen-to-square
3
3
  date: 2022-01-08
4
4
  category:
5
5
  - 香蕉
@@ -1,5 +1,5 @@
1
1
  ---
2
- icon: edit
2
+ icon: pen-to-square
3
3
  date: 2022-01-09
4
4
  category:
5
5
  - 樱桃
@@ -1,5 +1,5 @@
1
1
  ---
2
- icon: edit
2
+ icon: pen-to-square
3
3
  date: 2022-01-10
4
4
  category:
5
5
  - 火龙果
@@ -1,5 +1,5 @@
1
1
  ---
2
- icon: edit
2
+ icon: pen-to-square
3
3
  date: 2022-01-11
4
4
  category:
5
5
  - 水果
@@ -1,6 +1,6 @@
1
1
  ---
2
2
  cover: /assets/images/cover2.jpg
3
- icon: edit
3
+ icon: pen-to-square
4
4
  date: 2022-01-12
5
5
  category:
6
6
  - 蔬菜
@@ -1,6 +1,6 @@
1
1
  ---
2
2
  title: 幻灯片页
3
- icon: slides
3
+ icon: person-chalkboard
4
4
  layout: Slide
5
5
  ---
6
6
 
@@ -2,29 +2,29 @@ import { navbar } from "vuepress-theme-hope";
2
2
 
3
3
  export const enNavbar = navbar([
4
4
  "/",
5
- { text: "Demo", icon: "discover", link: "/demo/" },
5
+ "/demo/",
6
6
  {
7
7
  text: "Guide",
8
- icon: "creative",
8
+ icon: "lightbulb",
9
9
  prefix: "/guide/",
10
10
  children: [
11
11
  {
12
12
  text: "Bar",
13
- icon: "creative",
13
+ icon: "lightbulb",
14
14
  prefix: "bar/",
15
- children: ["baz", { text: "...", icon: "more", link: "" }],
15
+ children: ["baz", { text: "...", icon: "ellipsis", link: "#" }],
16
16
  },
17
17
  {
18
18
  text: "Foo",
19
- icon: "config",
19
+ icon: "lightbulb",
20
20
  prefix: "foo/",
21
- children: ["ray", { text: "...", icon: "more", link: "" }],
21
+ children: ["ray", { text: "...", icon: "ellipsis", link: "#" }],
22
22
  },
23
23
  ],
24
24
  },
25
25
  {
26
26
  text: "V2 Docs",
27
- icon: "note",
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
- { text: "案例", icon: "discover", link: "/zh/demo/" },
5
+ "/zh/demo/",
6
6
  {
7
7
  text: "指南",
8
- icon: "creative",
8
+ icon: "lightbulb",
9
9
  prefix: "/zh/guide/",
10
10
  children: [
11
11
  {
12
12
  text: "Bar",
13
- icon: "creative",
13
+ icon: "lightbulb",
14
14
  prefix: "bar/",
15
- children: ["baz", { text: "...", icon: "more", link: "" }],
15
+ children: ["baz", { text: "...", icon: "ellipsis", link: "" }],
16
16
  },
17
17
  {
18
18
  text: "Foo",
19
- icon: "config",
19
+ icon: "lightbulb",
20
20
  prefix: "foo/",
21
- children: ["ray", { text: "...", icon: "more", link: "" }],
21
+ children: ["ray", { text: "...", icon: "ellipsis", link: "" }],
22
22
  },
23
23
  ],
24
24
  },
25
25
  {
26
26
  text: "V2 文档",
27
- icon: "note",
27
+ icon: "book",
28
28
  link: "https://theme-hope.vuejs.press/zh/",
29
29
  },
30
30
  ]);