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,109 +0,0 @@
1
- ---
2
- home: true
3
- icon: home
4
- title: 项目主页
5
- heroImage: /logo.svg
6
- heroText: 项目名称
7
- tagline: 你可以在这里放置或是整个项目的描述。
8
- actions:
9
- - text: 使用指南 💡
10
- link: /zh/guide/
11
-
12
- - text: 博客主页 🏠
13
- link: /zh/
14
- type: secondary
15
-
16
- features:
17
- - title: Markdown 增强
18
- icon: markdown
19
- details: 新增文字对齐、上下角标、脚注、标记、任务列表、数学公式、流程图、图表与幻灯片支持
20
- link: https://vuepress-theme-hope.github.io/v2/zh/guide/markdown/
21
-
22
- - title: 幻灯片页面
23
- icon: slides
24
- details: 添加幻灯片页面以显示你喜欢的内容
25
- link: https://vuepress-theme-hope.github.io/v2/zh/guide/layout/slides
26
-
27
- - title: 布局增强
28
- icon: layout
29
- details: 添加路径导航、页脚、改进的导航栏、改进的页面导航等。
30
- link: https://vuepress-theme-hope.github.io/v2/zh/guide/layout/
31
-
32
- - title: 浏览量与评论
33
- icon: comment
34
- details: 配合 Waline 来开启阅读量统计与评论支持
35
- link: https://vuepress-theme-hope.github.io/v2/zh/guide/feature/comment.html
36
-
37
- - title: 文章信息
38
- icon: info
39
- details: 为你的文章添加作者、写作日期、预计阅读时间、字数统计等信息
40
- link: https://vuepress-theme-hope.github.io/v2/zh/guide/feature/page-info.html
41
-
42
- - title: 博客支持
43
- icon: blog
44
- details: 使用一些很棒的布局提供博客功能,通过文章的日期、标签和分类,自动生成文章、分类、标签与时间轴列表
45
- link: https://vuepress-theme-hope.github.io/v2/zh/guide/blog/intro.html
46
-
47
- - title: 主题色切换
48
- icon: palette
49
- details: 支持自定义主题色并允许用户在预设的主题颜色之间切换
50
- link: https://vuepress-theme-hope.github.io/v2/zh/guide/interface/theme-color.html
51
-
52
- - title: 深色模式
53
- icon: contrast
54
- details: 可以自由切换浅色模式与深色模式
55
- link: https://vuepress-theme-hope.github.io/v2/zh/guide/interface/darkmode.html
56
-
57
- - title: 完整的无障碍支持
58
- icon: support
59
- details: 为你的网站带来完整的无障碍支持
60
- link: https://vuepress-theme-hope.github.io/v2/zh/guide/interface/accessibility.html
61
-
62
- - title: 文章加密
63
- icon: lock
64
- details: 你可以为你的特定页面或特定目录进行加密,以便陌生人不能随意访问它们
65
- link: https://vuepress-theme-hope.github.io/v2/zh/guide/feature/encrypt.html
66
-
67
- - title: 复制按钮
68
- icon: copy
69
- details: 一键复制代码块中的代码
70
- link: https://vuepress-theme-hope.github.io/v2/zh/guide/feature/copy-code.html
71
-
72
- - title: 图片预览
73
- icon: pic
74
- details: 像相册一样允许你浏览、缩放并分享你的页面图片
75
- link: https://vuepress-theme-hope.github.io/v2/zh/guide/feature/photo-swipe.html
76
-
77
- - title: SEO 增强
78
- icon: config
79
- details: 将最终生成的网页针对搜索引擎进行优化。
80
- link: https://vuepress-theme-hope.github.io/v2/zh/guide/advanced/seo.html
81
-
82
- - title: Sitemap
83
- icon: sitemap
84
- details: 自动为你的网站生成 Sitemap
85
- link: https://vuepress-theme-hope.github.io/v2/zh/guide/advanced/sitemap.html
86
-
87
- - title: Feed 支持
88
- icon: rss
89
- details: 生成你的 Feed,并通知你的用户订阅它
90
- link: https://vuepress-theme-hope.github.io/v2/zh/guide/advanced/feed.html
91
-
92
- - title: PWA 支持
93
- icon: mobile
94
- details: 让你的网站更像一个 APP
95
- link: https://vuepress-theme-hope.github.io/v2/zh/guide/advanced/pwa.html
96
-
97
- - title: 更多新特性
98
- icon: more
99
- details: 包括图标支持、全屏按钮、返回顶部按钮等
100
- link: https://vuepress-theme-hope.github.io/v2/zh/guide/feature/
101
- copyright: false
102
- footer: MIT Licensed | Copyright © 2019-present Mr.Hope
103
- ---
104
-
105
- 这是普通主页的案例。你可以在这里放置你的主体内容。
106
-
107
- 想要使用此布局,你需要在页面 front matter 中设置 `home: true`。
108
-
109
- 配置项的相关说明详见 [项目主页配置](https://vuepress-theme-hope.github.io/v2/zh/guide/layout/home/)。
@@ -1,19 +0,0 @@
1
- ---
2
- icon: edit
3
- date: 2022-01-01
4
- category:
5
- - CategoryA
6
- tag:
7
- - tag A
8
- - tag B
9
- ---
10
-
11
- # 文章 1
12
-
13
- ## 标题 2
14
-
15
- 这里是内容。
16
-
17
- ### 标题 3
18
-
19
- 这里是内容。
@@ -1,20 +0,0 @@
1
- ---
2
- icon: edit
3
- date: 2022-01-03
4
- category:
5
- - CategoryA
6
- - CategoryB
7
- tag:
8
- - tag A
9
- - tag B
10
- ---
11
-
12
- # 文章 3
13
-
14
- ## 标题 2
15
-
16
- 这里是内容。
17
-
18
- ### 标题 3
19
-
20
- 这里是内容。
@@ -1,20 +0,0 @@
1
- ---
2
- icon: edit
3
- date: 2022-01-05
4
- category:
5
- - CategoryA
6
- - CategoryB
7
- tag:
8
- - tag A
9
- - tag B
10
- ---
11
-
12
- # 文章 5
13
-
14
- ## 标题 2
15
-
16
- 这里是内容。
17
-
18
- ### 标题 3
19
-
20
- 这里是内容。
@@ -1,21 +0,0 @@
1
- ---
2
- icon: edit
3
- date: 2022-01-06
4
- category:
5
- - CategoryA
6
- - CategoryB
7
- tag:
8
- - tag A
9
- - tag B
10
- star: 10
11
- ---
12
-
13
- # 文章 6
14
-
15
- ## 标题 2
16
-
17
- 这里是内容。
18
-
19
- ### 标题 3
20
-
21
- 这里是内容。
@@ -1,20 +0,0 @@
1
- ---
2
- icon: edit
3
- date: 2022-01-07
4
- category:
5
- - CategoryA
6
- - CategoryB
7
- tag:
8
- - tag A
9
- - tag B
10
- ---
11
-
12
- # 文章 7
13
-
14
- ## 标题 2
15
-
16
- 这里是内容。
17
-
18
- ### 标题 3
19
-
20
- 这里是内容。
@@ -1,20 +0,0 @@
1
- ---
2
- icon: edit
3
- date: 2022-01-08
4
- category:
5
- - CategoryA
6
- - CategoryB
7
- tag:
8
- - tag A
9
- - tag B
10
- ---
11
-
12
- # 文章 8
13
-
14
- ## 标题 2
15
-
16
- 这里是内容。
17
-
18
- ### 标题 3
19
-
20
- 这里是内容。
@@ -1,20 +0,0 @@
1
- ---
2
- icon: edit
3
- date: 2022-01-10
4
- category:
5
- - CategoryA
6
- - CategoryB
7
- tag:
8
- - tag A
9
- - tag B
10
- ---
11
-
12
- # 文章 10
13
-
14
- ## 标题 2
15
-
16
- 这里是内容。
17
-
18
- ### 标题 3
19
-
20
- 这里是内容。
@@ -1,20 +0,0 @@
1
- ---
2
- icon: edit
3
- date: 2022-01-11
4
- category:
5
- - CategoryA
6
- - CategoryB
7
- tag:
8
- - tag A
9
- - tag B
10
- ---
11
-
12
- # 文章 11
13
-
14
- ## 标题 2
15
-
16
- 这里是内容。
17
-
18
- ### 标题 3
19
-
20
- 这里是内容。
@@ -1,21 +0,0 @@
1
- ---
2
- icon: edit
3
- date: 2022-01-12
4
- category:
5
- - CategoryA
6
- - CategoryB
7
- tag:
8
- - tag A
9
- - tag B
10
- star: true
11
- ---
12
-
13
- # 文章 12
14
-
15
- ## 标题 2
16
-
17
- 这里是内容。
18
-
19
- ### 标题 3
20
-
21
- 这里是内容。
@@ -1,20 +0,0 @@
1
- ---
2
- icon: edit
3
- date: 2022-01-09
4
- category:
5
- - CategoryA
6
- - CategoryB
7
- tag:
8
- - tag A
9
- - tag B
10
- ---
11
-
12
- # 文章 9
13
-
14
- ## 标题 2
15
-
16
- 这里是内容。
17
-
18
- ### 标题 3
19
-
20
- 这里是内容。
@@ -1,10 +0,0 @@
1
- {
2
- "extends": "../../tsconfig.build.base.json",
3
- "compilerOptions": {
4
- "module": "CommonJS",
5
- "rootDir": "./src",
6
- "outDir": "./lib"
7
- },
8
- "include": ["./src/node"],
9
- "references": [{ "path": "../shared/tsconfig.build.json" }]
10
- }
package/tsconfig.json DELETED
@@ -1,8 +0,0 @@
1
- {
2
- "extends": "../../tsconfig.base.json",
3
- "compilerOptions": {
4
- "module": "ESNext",
5
- "rootDir": "./src"
6
- },
7
- "include": ["./src"]
8
- }