create-vuepress-theme-hope 2.0.0-alpha.41 → 2.0.0-beta.10

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 (53) hide show
  1. package/CHANGELOG.md +48 -0
  2. package/package.json +3 -3
  3. package/template/en-US/.vuepress/sidebar.ts +1 -2
  4. package/template/en-US/.vuepress/themeConfig.ts +0 -60
  5. package/template/en-US/guide/README.md +1 -0
  6. package/template/en-US/guide/disable.md +1 -0
  7. package/template/en-US/guide/markdown.md +4 -3
  8. package/template/en-US/guide/page.md +6 -0
  9. package/template/i18n/.vuepress/sidebar/en.ts +1 -2
  10. package/template/i18n/.vuepress/sidebar/zh.ts +2 -1
  11. package/template/i18n/.vuepress/themeConfig.ts +0 -60
  12. package/template/i18n/guide/README.md +1 -0
  13. package/template/i18n/guide/disable.md +1 -0
  14. package/template/i18n/guide/markdown.md +4 -3
  15. package/template/i18n/guide/page.md +6 -0
  16. package/template/i18n/zh/README.md +1 -1
  17. package/template/i18n/zh/guide/README.md +1 -0
  18. package/template/i18n/zh/guide/disable.md +1 -0
  19. package/template/i18n/zh/guide/markdown.md +4 -3
  20. package/template/i18n/zh/guide/page.md +6 -0
  21. package/template/i18n/zh/home.md +1 -1
  22. package/template/zh-CN/.vuepress/sidebar.ts +2 -1
  23. package/template/zh-CN/.vuepress/themeConfig.ts +0 -60
  24. package/template/zh-CN/README.md +1 -1
  25. package/template/zh-CN/guide/README.md +1 -0
  26. package/template/zh-CN/guide/disable.md +1 -0
  27. package/template/zh-CN/guide/markdown.md +4 -3
  28. package/template/zh-CN/guide/page.md +6 -0
  29. package/template/zh-CN/home.md +1 -1
  30. package/template/en-US/.vuepress/public/assets/icon/apple-icon-152.png +0 -0
  31. package/template/en-US/.vuepress/public/assets/icon/chrome-192.png +0 -0
  32. package/template/en-US/.vuepress/public/assets/icon/chrome-512.png +0 -0
  33. package/template/en-US/.vuepress/public/assets/icon/chrome-mask-192.png +0 -0
  34. package/template/en-US/.vuepress/public/assets/icon/chrome-mask-512.png +0 -0
  35. package/template/en-US/.vuepress/public/assets/icon/guide-maskable.png +0 -0
  36. package/template/en-US/.vuepress/public/assets/icon/guide-monochrome.png +0 -0
  37. package/template/en-US/.vuepress/public/assets/icon/ms-icon-144.png +0 -0
  38. package/template/i18n/.vuepress/public/assets/icon/apple-icon-152.png +0 -0
  39. package/template/i18n/.vuepress/public/assets/icon/chrome-192.png +0 -0
  40. package/template/i18n/.vuepress/public/assets/icon/chrome-512.png +0 -0
  41. package/template/i18n/.vuepress/public/assets/icon/chrome-mask-192.png +0 -0
  42. package/template/i18n/.vuepress/public/assets/icon/chrome-mask-512.png +0 -0
  43. package/template/i18n/.vuepress/public/assets/icon/guide-maskable.png +0 -0
  44. package/template/i18n/.vuepress/public/assets/icon/guide-monochrome.png +0 -0
  45. package/template/i18n/.vuepress/public/assets/icon/ms-icon-144.png +0 -0
  46. package/template/zh-CN/.vuepress/public/assets/icon/apple-icon-152.png +0 -0
  47. package/template/zh-CN/.vuepress/public/assets/icon/chrome-192.png +0 -0
  48. package/template/zh-CN/.vuepress/public/assets/icon/chrome-512.png +0 -0
  49. package/template/zh-CN/.vuepress/public/assets/icon/chrome-mask-192.png +0 -0
  50. package/template/zh-CN/.vuepress/public/assets/icon/chrome-mask-512.png +0 -0
  51. package/template/zh-CN/.vuepress/public/assets/icon/guide-maskable.png +0 -0
  52. package/template/zh-CN/.vuepress/public/assets/icon/guide-monochrome.png +0 -0
  53. package/template/zh-CN/.vuepress/public/assets/icon/ms-icon-144.png +0 -0
package/CHANGELOG.md CHANGED
@@ -3,6 +3,54 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
+ # [2.0.0-beta.10](https://github.com/vuepress-theme-hope/vuepress-theme-hope/compare/v2.0.0-beta.9...v2.0.0-beta.10) (2022-03-11)
7
+
8
+ **Note:** Version bump only for package create-vuepress-theme-hope
9
+
10
+ # [2.0.0-beta.9](https://github.com/vuepress-theme-hope/vuepress-theme-hope/compare/v2.0.0-beta.8...v2.0.0-beta.9) (2022-03-10)
11
+
12
+ **Note:** Version bump only for package create-vuepress-theme-hope
13
+
14
+ # [2.0.0-beta.8](https://github.com/vuepress-theme-hope/vuepress-theme-hope/compare/v2.0.0-beta.7...v2.0.0-beta.8) (2022-03-10)
15
+
16
+ **Note:** Version bump only for package create-vuepress-theme-hope
17
+
18
+ # [2.0.0-beta.7](https://github.com/vuepress-theme-hope/vuepress-theme-hope/compare/v2.0.0-beta.6...v2.0.0-beta.7) (2022-03-09)
19
+
20
+ **Note:** Version bump only for package create-vuepress-theme-hope
21
+
22
+ # [2.0.0-beta.6](https://github.com/vuepress-theme-hope/vuepress-theme-hope/compare/v2.0.0-beta.5...v2.0.0-beta.6) (2022-03-08)
23
+
24
+ **Note:** Version bump only for package create-vuepress-theme-hope
25
+
26
+ # [2.0.0-beta.5](https://github.com/vuepress-theme-hope/vuepress-theme-hope/compare/v2.0.0-beta.4...v2.0.0-beta.5) (2022-03-07)
27
+
28
+ **Note:** Version bump only for package create-vuepress-theme-hope
29
+
30
+ # [2.0.0-beta.4](https://github.com/vuepress-theme-hope/vuepress-theme-hope/compare/v2.0.0-beta.3...v2.0.0-beta.4) (2022-03-06)
31
+
32
+ ### Features
33
+
34
+ - **create:** update template ([fc6c344](https://github.com/vuepress-theme-hope/vuepress-theme-hope/commit/fc6c344ed6ff5d546646c178fe3a401ee607e35b))
35
+
36
+ # [2.0.0-beta.3](https://github.com/vuepress-theme-hope/vuepress-theme-hope/compare/v2.0.0-beta.2...v2.0.0-beta.3) (2022-03-05)
37
+
38
+ ### Features
39
+
40
+ - **create:** remove pwa feature in template ([5574303](https://github.com/vuepress-theme-hope/vuepress-theme-hope/commit/5574303cffe5750945fe5cbaa659855eb539af01))
41
+
42
+ # [2.0.0-beta.2](https://github.com/vuepress-theme-hope/vuepress-theme-hope/compare/v2.0.0-beta.1...v2.0.0-beta.2) (2022-03-04)
43
+
44
+ **Note:** Version bump only for package create-vuepress-theme-hope
45
+
46
+ # [2.0.0-beta.1](https://github.com/vuepress-theme-hope/vuepress-theme-hope/compare/v2.0.0-beta.0...v2.0.0-beta.1) (2022-03-04)
47
+
48
+ **Note:** Version bump only for package create-vuepress-theme-hope
49
+
50
+ # [2.0.0-beta.0](https://github.com/vuepress-theme-hope/vuepress-theme-hope/compare/v2.0.0-alpha.41...v2.0.0-beta.0) (2022-03-03)
51
+
52
+ **Note:** Version bump only for package create-vuepress-theme-hope
53
+
6
54
  # [2.0.0-alpha.41](https://github.com/vuepress-theme-hope/vuepress-theme-hope/compare/v2.0.0-alpha.40...v2.0.0-alpha.41) (2022-03-02)
7
55
 
8
56
  **Note:** Version bump only for package create-vuepress-theme-hope
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "create-vuepress-theme-hope",
3
- "version": "2.0.0-alpha.41",
3
+ "version": "2.0.0-beta.10",
4
4
  "description": "Create vuepress-theme-hope demo project helper",
5
5
  "keywords": [
6
6
  "create",
@@ -35,7 +35,7 @@
35
35
  "@types/inquirer": "^8.2.0",
36
36
  "cac": "^6.7.12",
37
37
  "execa": "^5.1.1",
38
- "inquirer": "^8.2.0"
38
+ "inquirer": "^8.2.1"
39
39
  },
40
- "gitHead": "9c0e35cc2d33443a1e772d4ca534ad838abb89a6"
40
+ "gitHead": "062dcf8dd5f8d34a11c30885600b17117becb7cb"
41
41
  }
@@ -7,10 +7,9 @@ export default defineSidebarConfig([
7
7
  {
8
8
  icon: "creative",
9
9
  text: "Guide",
10
- collapsable: true,
11
10
  prefix: "guide/",
12
11
  link: "guide/",
13
- children: ["page", "markdown", "disable", "encrypt"],
12
+ children: "structure",
14
13
  },
15
14
  {
16
15
  text: "Articles",
@@ -86,65 +86,5 @@ export default defineThemeConfig({
86
86
  plugins: ["highlight", "math", "search", "notes", "zoom"],
87
87
  },
88
88
  },
89
-
90
- pwa: {
91
- favicon: "/favicon.ico",
92
- cachePic: true,
93
- apple: {
94
- icon: "/assets/icon/apple-icon-152.png",
95
- statusBarColor: "black",
96
- },
97
- msTile: {
98
- image: "/assets/icon/ms-icon-144.png",
99
- color: "#ffffff",
100
- },
101
- manifest: {
102
- icons: [
103
- {
104
- src: "/assets/icon/chrome-mask-512.png",
105
- sizes: "512x512",
106
- purpose: "maskable",
107
- type: "image/png",
108
- },
109
- {
110
- src: "/assets/icon/chrome-mask-192.png",
111
- sizes: "192x192",
112
- purpose: "maskable",
113
- type: "image/png",
114
- },
115
- {
116
- src: "/assets/icon/chrome-512.png",
117
- sizes: "512x512",
118
- type: "image/png",
119
- },
120
- {
121
- src: "/assets/icon/chrome-192.png",
122
- sizes: "192x192",
123
- type: "image/png",
124
- },
125
- ],
126
- shortcuts: [
127
- {
128
- name: "Guide",
129
- short_name: "Guide",
130
- url: "/guide/",
131
- icons: [
132
- {
133
- src: "/assets/icon/guide-maskable.png",
134
- sizes: "192x192",
135
- purpose: "maskable",
136
- type: "image/png",
137
- },
138
- {
139
- src: "/assets/icon/guide-monochrome.png",
140
- sizes: "192x192",
141
- purpose: "monochrome",
142
- type: "image/png",
143
- },
144
- ],
145
- },
146
- ],
147
- },
148
- },
149
89
  },
150
90
  });
@@ -1,4 +1,5 @@
1
1
  ---
2
+ index: false
2
3
  icon: creative
3
4
  category:
4
5
  - Guide
@@ -1,4 +1,5 @@
1
1
  ---
2
+ index: 3
2
3
  title: Component disabled
3
4
  icon: config
4
5
  category:
@@ -1,4 +1,5 @@
1
1
  ---
2
+ index: 2
2
3
  icon: markdown
3
4
  title: Markdown Enhance
4
5
  category:
@@ -248,13 +249,13 @@ $$
248
249
  ::: demo A normal demo
249
250
 
250
251
  ```html
251
- <h1>Mr.Hope</h1>
252
- <p>Is <span id="very">very</span> handsome</p>
252
+ <h1>VuePress Theme Hope</h1>
253
+ <p>Is <span id="very">very</span> powerful!</p>
253
254
  ```
254
255
 
255
256
  ```js
256
257
  document.querySelector("#very").addEventListener("click", () => {
257
- alert("Very handsome!");
258
+ alert("Very powerful!");
258
259
  });
259
260
  ```
260
261
 
@@ -1,4 +1,6 @@
1
1
  ---
2
+ # This control sidebar index
3
+ index: 1
2
4
  # This is the icon of the page
3
5
  icon: page
4
6
  # This is the title of the article
@@ -22,6 +24,10 @@ star: true
22
24
  footer: Footer content for test
23
25
  ---
24
26
 
27
+ Content before `more` comment is regarded as page excerpt.
28
+
29
+ <!-- more -->
30
+
25
31
  ## Page information
26
32
 
27
33
  You can set page information in Markdown’s Frontmatter.
@@ -8,10 +8,9 @@ export const en = defineSidebarConfig({
8
8
  {
9
9
  icon: "creative",
10
10
  text: "Guide",
11
- collapsable: true,
12
11
  prefix: "guide/",
13
12
  link: "guide/",
14
- children: ["page", "markdown", "disable", "encrypt"],
13
+ children: "structure",
15
14
  },
16
15
  {
17
16
  text: "Articles",
@@ -9,7 +9,8 @@ export const zh = defineSidebarConfig({
9
9
  text: "如何使用",
10
10
  icon: "creative",
11
11
  prefix: "guide/",
12
- children: ["", "page", "markdown", "disable", "encrypt"],
12
+ link: "guide/",
13
+ children: "structure",
13
14
  },
14
15
  {
15
16
  text: "文章",
@@ -123,65 +123,5 @@ export default defineThemeConfig({
123
123
  plugins: ["highlight", "math", "search", "notes", "zoom"],
124
124
  },
125
125
  },
126
-
127
- pwa: {
128
- favicon: "/favicon.ico",
129
- cachePic: true,
130
- apple: {
131
- icon: "/assets/icon/apple-icon-152.png",
132
- statusBarColor: "black",
133
- },
134
- msTile: {
135
- image: "/assets/icon/ms-icon-144.png",
136
- color: "#ffffff",
137
- },
138
- manifest: {
139
- icons: [
140
- {
141
- src: "/assets/icon/chrome-mask-512.png",
142
- sizes: "512x512",
143
- purpose: "maskable",
144
- type: "image/png",
145
- },
146
- {
147
- src: "/assets/icon/chrome-mask-192.png",
148
- sizes: "192x192",
149
- purpose: "maskable",
150
- type: "image/png",
151
- },
152
- {
153
- src: "/assets/icon/chrome-512.png",
154
- sizes: "512x512",
155
- type: "image/png",
156
- },
157
- {
158
- src: "/assets/icon/chrome-192.png",
159
- sizes: "192x192",
160
- type: "image/png",
161
- },
162
- ],
163
- shortcuts: [
164
- {
165
- name: "Guide",
166
- short_name: "Guide",
167
- url: "/guide/",
168
- icons: [
169
- {
170
- src: "/assets/icon/guide-maskable.png",
171
- sizes: "192x192",
172
- purpose: "maskable",
173
- type: "image/png",
174
- },
175
- {
176
- src: "/assets/icon/guide-monochrome.png",
177
- sizes: "192x192",
178
- purpose: "monochrome",
179
- type: "image/png",
180
- },
181
- ],
182
- },
183
- ],
184
- },
185
- },
186
126
  },
187
127
  });
@@ -1,4 +1,5 @@
1
1
  ---
2
+ index: false
2
3
  icon: creative
3
4
  category:
4
5
  - Guide
@@ -1,4 +1,5 @@
1
1
  ---
2
+ index: 3
2
3
  title: Component disabled
3
4
  icon: config
4
5
  category:
@@ -1,4 +1,5 @@
1
1
  ---
2
+ index: 2
2
3
  icon: markdown
3
4
  title: Markdown Enhance
4
5
  category:
@@ -248,13 +249,13 @@ $$
248
249
  ::: demo A normal demo
249
250
 
250
251
  ```html
251
- <h1>Mr.Hope</h1>
252
- <p>Is <span id="very">very</span> handsome</p>
252
+ <h1>VuePress Theme Hope</h1>
253
+ <p>Is <span id="very">very</span> powerful!</p>
253
254
  ```
254
255
 
255
256
  ```js
256
257
  document.querySelector("#very").addEventListener("click", () => {
257
- alert("Very handsome!");
258
+ alert("Very powerful!");
258
259
  });
259
260
  ```
260
261
 
@@ -1,4 +1,6 @@
1
1
  ---
2
+ # This control sidebar index
3
+ index: 1
2
4
  # This is the icon of the page
3
5
  icon: page
4
6
  # This is the title of the article
@@ -22,6 +24,10 @@ star: true
22
24
  footer: Footer content for test
23
25
  ---
24
26
 
27
+ Content before `more` comment is regarded as page excerpt.
28
+
29
+ <!-- more -->
30
+
25
31
  ## Page information
26
32
 
27
33
  You can set page information in Markdown’s Frontmatter.
@@ -43,6 +43,6 @@ footer: 自定义你的页脚文字
43
43
 
44
44
  这是一个博客主页。
45
45
 
46
- 要使用此布局,您应该在页面前端设置 `layout: Blog` 和 `home: true`。
46
+ 要使用此布局,你应该在页面前端设置 `layout: Blog` 和 `home: true`。
47
47
 
48
48
  相关配置文档请见 [博客主页](https://vuepress-theme-hope.github.io/v2/zh/guide/blog/home/)。
@@ -1,4 +1,5 @@
1
1
  ---
2
+ index: false
2
3
  icon: creative
3
4
  category:
4
5
  - 使用指南
@@ -1,4 +1,5 @@
1
1
  ---
2
+ index: 3
2
3
  title: 组件禁用
3
4
  icon: config
4
5
  category:
@@ -1,4 +1,5 @@
1
1
  ---
2
+ index: 2
2
3
  icon: markdown
3
4
  title: Markdown 增强
4
5
  category:
@@ -246,13 +247,13 @@ $$
246
247
  ::: demo 一个普通 Demo
247
248
 
248
249
  ```html
249
- <h1>Mr.Hope</h1>
250
- <p><span id="very">十分</span> 帅</p>
250
+ <h1>VuePress Theme Hope</h1>
251
+ <p><span id="very">非常</span>强大!</p>
251
252
  ```
252
253
 
253
254
  ```js
254
255
  document.querySelector("#very").addEventListener("click", () => {
255
- alert("十分帅");
256
+ alert("非常强大");
256
257
  });
257
258
  ```
258
259
 
@@ -1,4 +1,6 @@
1
1
  ---
2
+ # 这是侧边栏索引
3
+ index: 1
2
4
  # 这是页面的图标
3
5
  icon: page
4
6
  # 这是文章的标题
@@ -22,6 +24,10 @@ star: true
22
24
  footer: 这是测试显示的页脚
23
25
  ---
24
26
 
27
+ `more` 注释之前的内容被视为文章摘要。
28
+
29
+ <!-- more -->
30
+
25
31
  ## 页面信息
26
32
 
27
33
  你可以在 Markdown 的 Frontmatter 中设置页面信息。
@@ -21,7 +21,7 @@ features:
21
21
 
22
22
  - title: 幻灯片页面
23
23
  icon: slides
24
- details: 添加幻灯片页面以显示您喜欢的内容
24
+ details: 添加幻灯片页面以显示你喜欢的内容
25
25
  link: https://vuepress-theme-hope.github.io/v2/zh/guide/layout/slides
26
26
 
27
27
  - title: 布局增强
@@ -8,7 +8,8 @@ export default defineSidebarConfig([
8
8
  text: "如何使用",
9
9
  icon: "creative",
10
10
  prefix: "guide/",
11
- children: ["", "page", "markdown", "disable", "encrypt"],
11
+ link: "guide/",
12
+ children: "structure",
12
13
  },
13
14
  {
14
15
  text: "文章",
@@ -91,65 +91,5 @@ export default defineThemeConfig({
91
91
  plugins: ["highlight", "math", "search", "notes", "zoom"],
92
92
  },
93
93
  },
94
-
95
- pwa: {
96
- favicon: "/favicon.ico",
97
- cachePic: true,
98
- apple: {
99
- icon: "/assets/icon/apple-icon-152.png",
100
- statusBarColor: "black",
101
- },
102
- msTile: {
103
- image: "/assets/icon/ms-icon-144.png",
104
- color: "#ffffff",
105
- },
106
- manifest: {
107
- icons: [
108
- {
109
- src: "/assets/icon/chrome-mask-512.png",
110
- sizes: "512x512",
111
- purpose: "maskable",
112
- type: "image/png",
113
- },
114
- {
115
- src: "/assets/icon/chrome-mask-192.png",
116
- sizes: "192x192",
117
- purpose: "maskable",
118
- type: "image/png",
119
- },
120
- {
121
- src: "/assets/icon/chrome-512.png",
122
- sizes: "512x512",
123
- type: "image/png",
124
- },
125
- {
126
- src: "/assets/icon/chrome-192.png",
127
- sizes: "192x192",
128
- type: "image/png",
129
- },
130
- ],
131
- shortcuts: [
132
- {
133
- name: "Guide",
134
- short_name: "Guide",
135
- url: "/guide/",
136
- icons: [
137
- {
138
- src: "/assets/icon/guide-maskable.png",
139
- sizes: "192x192",
140
- purpose: "maskable",
141
- type: "image/png",
142
- },
143
- {
144
- src: "/assets/icon/guide-monochrome.png",
145
- sizes: "192x192",
146
- purpose: "monochrome",
147
- type: "image/png",
148
- },
149
- ],
150
- },
151
- ],
152
- },
153
- },
154
94
  },
155
95
  });
@@ -43,6 +43,6 @@ footer: 自定义你的页脚文字
43
43
 
44
44
  这是一个博客主页。
45
45
 
46
- 要使用此布局,您应该在页面前端设置 `layout: Blog` 和 `home: true`。
46
+ 要使用此布局,你应该在页面前端设置 `layout: Blog` 和 `home: true`。
47
47
 
48
48
  相关配置文档请见 [博客主页](https://vuepress-theme-hope.github.io/v2/zh/guide/blog/home/)。
@@ -1,4 +1,5 @@
1
1
  ---
2
+ index: false
2
3
  icon: creative
3
4
  category:
4
5
  - 使用指南
@@ -1,4 +1,5 @@
1
1
  ---
2
+ index: 3
2
3
  title: 组件禁用
3
4
  icon: config
4
5
  category:
@@ -1,4 +1,5 @@
1
1
  ---
2
+ index: 2
2
3
  icon: markdown
3
4
  title: Markdown 增强
4
5
  category:
@@ -246,13 +247,13 @@ $$
246
247
  ::: demo 一个普通 Demo
247
248
 
248
249
  ```html
249
- <h1>Mr.Hope</h1>
250
- <p><span id="very">十分</span> 帅</p>
250
+ <h1>VuePress Theme Hope</h1>
251
+ <p><span id="very">非常</span>强大!</p>
251
252
  ```
252
253
 
253
254
  ```js
254
255
  document.querySelector("#very").addEventListener("click", () => {
255
- alert("十分帅");
256
+ alert("非常强大");
256
257
  });
257
258
  ```
258
259
 
@@ -1,4 +1,6 @@
1
1
  ---
2
+ # 这是侧边栏索引
3
+ index: 1
2
4
  # 这是页面的图标
3
5
  icon: page
4
6
  # 这是文章的标题
@@ -22,6 +24,10 @@ star: true
22
24
  footer: 这是测试显示的页脚
23
25
  ---
24
26
 
27
+ `more` 注释之前的内容被视为文章摘要。
28
+
29
+ <!-- more -->
30
+
25
31
  ## 页面信息
26
32
 
27
33
  你可以在 Markdown 的 Frontmatter 中设置页面信息。
@@ -21,7 +21,7 @@ features:
21
21
 
22
22
  - title: 幻灯片页面
23
23
  icon: slides
24
- details: 添加幻灯片页面以显示您喜欢的内容
24
+ details: 添加幻灯片页面以显示你喜欢的内容
25
25
  link: https://vuepress-theme-hope.github.io/v2/zh/guide/layout/slides
26
26
 
27
27
  - title: 布局增强