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
@@ -0,0 +1,13 @@
1
+ ---
2
+ title: Bar feature
3
+ icon: creative
4
+ ---
5
+
6
+ ## Introduction
7
+
8
+ We support bar feature, ...
9
+
10
+ ## Details
11
+
12
+ - [baz](baz.md)
13
+ - ...
@@ -0,0 +1,6 @@
1
+ ---
2
+ title: Baz
3
+ icon: info
4
+ ---
5
+
6
+ Feature details here.
@@ -0,0 +1,13 @@
1
+ ---
2
+ title: Foo feature
3
+ icon: config
4
+ ---
5
+
6
+ ## Introduction
7
+
8
+ We support foo feature, ...
9
+
10
+ ## Details
11
+
12
+ - [ray](ray.md)
13
+ - ...
@@ -0,0 +1,6 @@
1
+ ---
2
+ title: Ray
3
+ icon: config
4
+ ---
5
+
6
+ Feature details here.
@@ -4,7 +4,7 @@ icon: slides
4
4
  layout: Slide
5
5
  ---
6
6
 
7
- <!-- markdownlint-disable MD024 MD033 -->
7
+ <!-- markdownlint-disable MD024 MD033 MD051 -->
8
8
 
9
9
  @slidestart
10
10
 
@@ -18,7 +18,7 @@ A simple slide demo and useful hints.
18
18
 
19
19
  <!-- .element: class="r-fit-text" -->
20
20
 
21
- > By Mr.Hope. Please scroll mousewheel down to the next slide
21
+ > By Mr.Hope. Please scroll mouse wheel down to the next slide
22
22
 
23
23
  ---
24
24
 
@@ -42,7 +42,7 @@ Use `---` to mark horizontal slides
42
42
 
43
43
  <!-- .element: class="fragment fade-in" -->
44
44
 
45
- Use `--` to sperate vertical slides in a horizontal slide.
45
+ Use `--` to separate vertical slides in a horizontal slide.
46
46
 
47
47
  <!-- .element: class="fragment fade-in" -->
48
48
 
@@ -78,7 +78,7 @@ You can use all kinds of markup in slides.
78
78
 
79
79
  Headings will transform to UPPERCASE by default.
80
80
 
81
- Here is paragraph with some **bold**, _italic_, ~~strikethrough~~ text and a [link](https://mrhope.site), and it can auto break itself so you don’t need to worry the length.
81
+ Here is paragraph with some **bold**, _italic_, ~~strike-through~~ text and a [link](https://mrhope.site), and it can auto break itself so you don't need to worry the length.
82
82
 
83
83
  --
84
84
 
@@ -134,7 +134,7 @@ $$
134
134
 
135
135
  You can use all kinds of markup in slides.
136
136
 
137
- ⚠**Note**: Table, hr and other unstandard Markdown syntax is not supported.
137
+ ⚠**Note**: Table, hr and other nonstandard Markdown syntax is not supported.
138
138
 
139
139
  ---
140
140
 
@@ -174,7 +174,7 @@ You can use all kinds of markup in slides.
174
174
 
175
175
  ### Background
176
176
 
177
- Cutom background by adding `data-background` attribute to slide.
177
+ Custom background by adding `data-background` attribute to slide.
178
178
 
179
179
  ---
180
180
 
@@ -277,7 +277,7 @@ Add `fragment` and animation class to element.
277
277
 
278
278
  ## Fragment
279
279
 
280
- ### Mutiple fragments
280
+ ### Multiple fragments
281
281
 
282
282
  Multiple fragments can be applied to the same element sequentially by wrapping it
283
283
 
@@ -331,7 +331,7 @@ Multiple elements can appear at the same index.
331
331
 
332
332
  <!-- .element: class="r-fit-text" -->
333
333
 
334
- Transition can be changed by setting the `transition` config option globally or `data-transition` attribute on specific slide.
334
+ Transition can be changed by setting the `transition` config option globally or `data-transition` attribute on slide.
335
335
 
336
336
  Possible values:
337
337
 
@@ -7,103 +7,103 @@ heroText: 项目名称
7
7
  tagline: 你可以在这里放置或是整个项目的描述。
8
8
  actions:
9
9
  - text: 使用指南 💡
10
- link: /zh/guide/
10
+ link: /zh/demo/
11
+ type: primary
11
12
 
12
- - text: 博客主页 🏠
13
- link: /zh/
14
- type: secondary
13
+ - text: 文档
14
+ link: /zh/guide/
15
15
 
16
16
  features:
17
17
  - title: Markdown 增强
18
18
  icon: markdown
19
19
  details: 新增文字对齐、上下角标、脚注、标记、任务列表、数学公式、流程图、图表与幻灯片支持
20
- link: https://vuepress-theme-hope.github.io/v2/zh/guide/markdown/
20
+ link: https://theme-hope.vuejs.press/zh/guide/markdown/
21
21
 
22
22
  - title: 幻灯片页面
23
23
  icon: slides
24
24
  details: 添加幻灯片页面以显示你喜欢的内容
25
- link: https://vuepress-theme-hope.github.io/v2/zh/guide/layout/slides
25
+ link: https://theme-hope.vuejs.press/zh/guide/layout/slides.html
26
26
 
27
27
  - title: 布局增强
28
28
  icon: layout
29
29
  details: 添加路径导航、页脚、改进的导航栏、改进的页面导航等。
30
- link: https://vuepress-theme-hope.github.io/v2/zh/guide/layout/
30
+ link: https://theme-hope.vuejs.press/zh/guide/layout/
31
31
 
32
32
  - title: 浏览量与评论
33
33
  icon: comment
34
34
  details: 配合 Waline 来开启阅读量统计与评论支持
35
- link: https://vuepress-theme-hope.github.io/v2/zh/guide/feature/comment.html
35
+ link: https://theme-hope.vuejs.press/zh/guide/feature/comment.html
36
36
 
37
37
  - title: 文章信息
38
38
  icon: info
39
39
  details: 为你的文章添加作者、写作日期、预计阅读时间、字数统计等信息
40
- link: https://vuepress-theme-hope.github.io/v2/zh/guide/feature/page-info.html
40
+ link: https://theme-hope.vuejs.press/zh/guide/feature/page-info.html
41
41
 
42
42
  - title: 博客支持
43
43
  icon: blog
44
44
  details: 使用一些很棒的布局提供博客功能,通过文章的日期、标签和分类,自动生成文章、分类、标签与时间轴列表
45
- link: https://vuepress-theme-hope.github.io/v2/zh/guide/blog/intro.html
45
+ link: https://theme-hope.vuejs.press/zh/guide/blog/intro.html
46
46
 
47
47
  - title: 主题色切换
48
48
  icon: palette
49
49
  details: 支持自定义主题色并允许用户在预设的主题颜色之间切换
50
- link: https://vuepress-theme-hope.github.io/v2/zh/guide/interface/theme-color.html
50
+ link: https://theme-hope.vuejs.press/zh/guide/interface/theme-color.html
51
51
 
52
52
  - title: 深色模式
53
53
  icon: contrast
54
54
  details: 可以自由切换浅色模式与深色模式
55
- link: https://vuepress-theme-hope.github.io/v2/zh/guide/interface/darkmode.html
55
+ link: https://theme-hope.vuejs.press/zh/guide/interface/darkmode.html
56
56
 
57
57
  - title: 完整的无障碍支持
58
58
  icon: support
59
59
  details: 为你的网站带来完整的无障碍支持
60
- link: https://vuepress-theme-hope.github.io/v2/zh/guide/interface/accessibility.html
60
+ link: https://theme-hope.vuejs.press/zh/guide/interface/accessibility.html
61
61
 
62
62
  - title: 文章加密
63
63
  icon: lock
64
64
  details: 你可以为你的特定页面或特定目录进行加密,以便陌生人不能随意访问它们
65
- link: https://vuepress-theme-hope.github.io/v2/zh/guide/feature/encrypt.html
65
+ link: https://theme-hope.vuejs.press/zh/guide/feature/encrypt.html
66
66
 
67
67
  - title: 复制按钮
68
68
  icon: copy
69
69
  details: 一键复制代码块中的代码
70
- link: https://vuepress-theme-hope.github.io/v2/zh/guide/feature/copy-code.html
70
+ link: https://theme-hope.vuejs.press/zh/guide/feature/copy-code.html
71
71
 
72
72
  - title: 图片预览
73
73
  icon: pic
74
74
  details: 像相册一样允许你浏览、缩放并分享你的页面图片
75
- link: https://vuepress-theme-hope.github.io/v2/zh/guide/feature/photo-swipe.html
75
+ link: https://theme-hope.vuejs.press/zh/guide/feature/photo-swipe.html
76
76
 
77
77
  - title: SEO 增强
78
78
  icon: config
79
79
  details: 将最终生成的网页针对搜索引擎进行优化。
80
- link: https://vuepress-theme-hope.github.io/v2/zh/guide/advanced/seo.html
80
+ link: https://theme-hope.vuejs.press/zh/guide/advanced/seo.html
81
81
 
82
82
  - title: Sitemap
83
83
  icon: sitemap
84
84
  details: 自动为你的网站生成 Sitemap
85
- link: https://vuepress-theme-hope.github.io/v2/zh/guide/advanced/sitemap.html
85
+ link: https://theme-hope.vuejs.press/zh/guide/advanced/sitemap.html
86
86
 
87
87
  - title: Feed 支持
88
88
  icon: rss
89
89
  details: 生成你的 Feed,并通知你的用户订阅它
90
- link: https://vuepress-theme-hope.github.io/v2/zh/guide/advanced/feed.html
90
+ link: https://theme-hope.vuejs.press/zh/guide/advanced/feed.html
91
91
 
92
92
  - title: PWA 支持
93
93
  icon: mobile
94
94
  details: 让你的网站更像一个 APP
95
- link: https://vuepress-theme-hope.github.io/v2/zh/guide/advanced/pwa.html
95
+ link: https://theme-hope.vuejs.press/zh/guide/advanced/pwa.html
96
96
 
97
97
  - title: 更多新特性
98
98
  icon: more
99
99
  details: 包括图标支持、全屏按钮、返回顶部按钮等
100
- link: https://vuepress-theme-hope.github.io/v2/zh/guide/feature/
100
+ link: https://theme-hope.vuejs.press/zh/guide/feature/
101
101
  copyright: false
102
- footer: MIT Licensed | Copyright © 2019-present Mr.Hope
102
+ footer: 使用 <a href="https://theme-hope.vuejs.press/" target="_blank">VuePress Theme Hope</a> 主题 | MIT 协议, 版权所有 © 2019-present Mr.Hope
103
103
  ---
104
104
 
105
- 这是普通主页的案例。你可以在这里放置你的主体内容。
105
+ 这是项目主页的案例。你可以在这里放置你的主体内容。
106
106
 
107
107
  想要使用此布局,你需要在页面 front matter 中设置 `home: true`。
108
108
 
109
- 配置项的相关说明详见 [项目主页配置](https://vuepress-theme-hope.github.io/v2/zh/guide/layout/home/)。
109
+ 配置项的相关说明详见 [项目主页配置](https://theme-hope.vuejs.press/zh/guide/layout/home/)。
@@ -1,16 +1,17 @@
1
1
  ---
2
+ title: 主要功能与配置演示
2
3
  index: false
3
- icon: creative
4
+ icon: discover
4
5
  category:
5
6
  - 使用指南
6
7
  ---
7
8
 
8
- # 主要功能与配置演示
9
-
10
- - [页面展示](page.md)
9
+ ## 目录
11
10
 
12
11
  - [Markdown 展示](markdown.md)
13
12
 
13
+ - [页面展示](page.md)
14
+
14
15
  - [禁用展示](disable.md)
15
16
 
16
17
  - [加密展示](encrypt.md)
@@ -1,7 +1,7 @@
1
1
  ---
2
- index: 3
3
- title: 组件禁用
2
+ title: 布局与功能禁用
4
3
  icon: config
4
+ order: 3
5
5
  category:
6
6
  - 使用指南
7
7
  tag:
@@ -23,11 +23,11 @@ footer: false
23
23
  backtotop: false
24
24
  ---
25
25
 
26
- 你可以通过设置页面的 Frontmatter,在页面禁用一些功能。
26
+ 你可以通过设置页面的 Frontmatter,在页面禁用功能与布局。
27
27
 
28
28
  <!-- more -->
29
29
 
30
- 本页面应当禁用了:
30
+ 本页面就是一个示例,禁用了如下功能:
31
31
 
32
32
  - 导航栏
33
33
  - 侧边栏
@@ -0,0 +1,403 @@
1
+ ---
2
+ title: Markdown 展示
3
+ icon: markdown
4
+ order: 2
5
+ category:
6
+ - 使用指南
7
+ tag:
8
+ - Markdown
9
+ ---
10
+
11
+ VuePress 主要从 Markdown 文件生成页面。因此,你可以使用它轻松生成文档或博客站点。
12
+
13
+ 你应该创建和编写 Markdown 文件,以便 VuePress 可以根据文件结构将它们转换为不同的页面。
14
+
15
+ <!-- more -->
16
+
17
+ ## Markdown 介绍
18
+
19
+ 如果你是一个新手,还不会编写 Markdown,请先阅读 [Markdown 介绍](https://theme-hope.vuejs.press/zh/cookbook/markdown/) 和 [Markdown 演示](https://theme-hope.vuejs.press/zh/cookbook/markdown/demo.html)。
20
+
21
+ ## Markdown 配置
22
+
23
+ VuePress 通过 Frontmatter 为每个 Markdown 页面引入配置。
24
+
25
+ ::: info
26
+
27
+ Frontmatter 是 VuePress 中很重要的一个概念,如果你不了解它,你需要阅读 [Frontmatter 介绍](https://theme-hope.vuejs.press/zh/cookbook/vuepress/page.html#front-matter)。
28
+
29
+ :::
30
+
31
+ ## Markdown 扩展
32
+
33
+ VuePress 会使用 [markdown-it](https://github.com/markdown-it/markdown-it) 来解析 Markdown 内容,因此可以借助于 markdown-it 插件来实现 [语法扩展](https://github.com/markdown-it/markdown-it#syntax-extensions) 。
34
+
35
+ ### VuePress 扩展
36
+
37
+ 为了丰富文档写作,VuePress 对 Markdown 语法进行了扩展。
38
+
39
+ 关于这些扩展,请阅读 [VuePress 中的 Markdown 扩展](https://theme-hope.vuejs.press/zh/cookbook/vuepress/markdown.html)。
40
+
41
+ ### 主题扩展
42
+
43
+ 通过 [`vuepress-plugin-md-enhance`][md-enhance],主题扩展了更多 Markdown 语法,提供更加丰富的写作功能。
44
+
45
+ #### 自定义容器
46
+
47
+ ::: v-pre
48
+
49
+ 安全的在 Markdown 中使用 {{ variable }}。
50
+
51
+ :::
52
+
53
+ ::: info 自定义标题
54
+
55
+ 信息容器,包含 `代码` 与 [链接](#自定义容器)。
56
+
57
+ ```js
58
+ const a = 1;
59
+ ```
60
+
61
+ :::
62
+
63
+ ::: tip 自定义标题
64
+
65
+ 提示容器
66
+
67
+ :::
68
+
69
+ ::: warning 自定义标题
70
+
71
+ 警告容器
72
+
73
+ :::
74
+
75
+ ::: danger 自定义标题
76
+
77
+ 危险容器
78
+
79
+ :::
80
+
81
+ ::: details 自定义标题
82
+
83
+ 详情容器
84
+
85
+ :::
86
+
87
+ - [查看详情](https://theme-hope.vuejs.press/zh/guide/markdown/container.html)
88
+
89
+ #### 代码块
90
+
91
+ ::: code-tabs
92
+
93
+ @tab pnpm
94
+
95
+ ```bash
96
+ pnpm add -D vuepress-theme-hope
97
+ ```
98
+
99
+ @tab yarn
100
+
101
+ ```bash
102
+ yarn add -D vuepress-theme-hope
103
+ ```
104
+
105
+ @tab:active npm
106
+
107
+ ```bash
108
+ npm i -D vuepress-theme-hope
109
+ ```
110
+
111
+ :::
112
+
113
+ - [查看详情](https://theme-hope.vuejs.press/zh/guide/markdown/code-tabs.html)
114
+
115
+ #### 上下角标
116
+
117
+ 19^th^ H~2~O
118
+
119
+ - [查看详情](https://theme-hope.vuejs.press/zh/guide/markdown/sup-sub.html)
120
+
121
+ #### 自定义对齐
122
+
123
+ ::: center
124
+
125
+ 我是居中的
126
+
127
+ :::
128
+
129
+ ::: right
130
+
131
+ 我在右对齐
132
+
133
+ :::
134
+
135
+ - [查看详情](https://theme-hope.vuejs.press/zh/guide/markdown/align.html)
136
+
137
+ #### Attrs
138
+
139
+ 一个拥有 ID 的 **单词**{#word}。
140
+
141
+ - [查看详情](https://theme-hope.vuejs.press/zh/guide/markdown/attrs.html)
142
+
143
+ #### 脚注
144
+
145
+ 此文字有脚注[^first].
146
+
147
+ [^first]: 这是脚注内容
148
+
149
+ - [查看详情](https://theme-hope.vuejs.press/zh/guide/markdown/footnote.html)
150
+
151
+ #### 标记
152
+
153
+ 你可以标记 ==重要的内容== 。
154
+
155
+ - [查看详情](https://theme-hope.vuejs.press/zh/guide/markdown/mark.html)
156
+
157
+ #### 任务列表
158
+
159
+ - [x] 计划 1
160
+ - [ ] 计划 2
161
+
162
+ - [查看详情](https://theme-hope.vuejs.press/zh/guide/markdown/tasklist.html)
163
+
164
+ ### 图片增强
165
+
166
+ 支持为图片设置颜色模式和大小
167
+
168
+ - [查看详情](https://theme-hope.vuejs.press/zh/guide/markdown/image.html)
169
+
170
+ #### 卡片
171
+
172
+ ```card
173
+ title: Mr.Hope
174
+ desc: Where there is light, there is hope
175
+ logo: https://mrhope.site/logo.svg
176
+ link: https://mrhope.site
177
+ color: rgba(253, 230, 138, 0.15)
178
+ ```
179
+
180
+ - [查看详情](https://theme-hope.vuejs.press/zh/guide/markdown/card.html)
181
+
182
+ #### 图表
183
+
184
+ ::: chart 一个散点图案例
185
+
186
+ ```json
187
+ {
188
+ "type": "scatter",
189
+ "data": {
190
+ "datasets": [
191
+ {
192
+ "label": "散点数据集",
193
+ "data": [
194
+ { "x": -10, "y": 0 },
195
+ { "x": 0, "y": 10 },
196
+ { "x": 10, "y": 5 },
197
+ { "x": 0.5, "y": 5.5 }
198
+ ],
199
+ "backgroundColor": "rgb(255, 99, 132)"
200
+ }
201
+ ]
202
+ },
203
+ "options": {
204
+ "scales": {
205
+ "x": {
206
+ "type": "linear",
207
+ "position": "bottom"
208
+ }
209
+ }
210
+ }
211
+ }
212
+ ```
213
+
214
+ :::
215
+
216
+ - [查看详情](https://theme-hope.vuejs.press/zh/guide/markdown/chart.html)
217
+
218
+ #### Echarts
219
+
220
+ ::: echarts 一个折线图案例
221
+
222
+ ```json
223
+ {
224
+ "xAxis": {
225
+ "type": "category",
226
+ "data": ["Mon", "Tue", "Wed", "Thu", "Fri", "Sat", "Sun"]
227
+ },
228
+ "yAxis": {
229
+ "type": "value"
230
+ },
231
+ "series": [
232
+ {
233
+ "data": [150, 230, 224, 218, 135, 147, 260],
234
+ "type": "line"
235
+ }
236
+ ]
237
+ }
238
+ ```
239
+
240
+ :::
241
+
242
+ - [查看详情](https://theme-hope.vuejs.press/zh/guide/markdown/echarts.html)
243
+
244
+ #### 流程图
245
+
246
+ ```flow
247
+ cond=>condition: 是否执行操作?
248
+ process=>operation: 操作
249
+ e=>end: 结束
250
+
251
+ cond(yes)->process->e
252
+ cond(no)->e
253
+ ```
254
+
255
+ - [查看详情](https://theme-hope.vuejs.press/zh/guide/markdown/flowchart.html)
256
+
257
+ #### Mermaid
258
+
259
+ ```mermaid
260
+ ---
261
+ title: Flowchart
262
+ ---
263
+ flowchart TB
264
+ c1-->a2
265
+ subgraph one
266
+ a1-->a2
267
+ end
268
+ subgraph two
269
+ b1-->b2
270
+ end
271
+ subgraph three
272
+ c1-->c2
273
+ end
274
+ one --> two
275
+ three --> two
276
+ two --> c2
277
+ ```
278
+
279
+ - [查看详情](https://theme-hope.vuejs.press/zh/guide/markdown/mermaid.html)
280
+
281
+ #### Tex 语法
282
+
283
+ $$
284
+ \frac {\partial^r} {\partial \omega^r} \left(\frac {y^{\omega}} {\omega}\right)
285
+ = \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\}
286
+ $$
287
+
288
+ - [查看详情](https://theme-hope.vuejs.press/zh/guide/markdown/tex.html)
289
+
290
+ #### 导入文件
291
+
292
+ <!-- @include: ./README.md{11-17} -->
293
+
294
+ - [查看详情](https://theme-hope.vuejs.press/zh/guide/markdown/include.html)
295
+
296
+ #### 代码演示
297
+
298
+ ::: normal-demo 一个普通 Demo
299
+
300
+ ```html
301
+ <h1>VuePress Theme Hope</h1>
302
+ <p><span id="very">非常</span>强大!</p>
303
+ ```
304
+
305
+ ```js
306
+ document.querySelector("#very").addEventListener("click", () => {
307
+ alert("非常强大");
308
+ });
309
+ ```
310
+
311
+ ```css
312
+ span {
313
+ color: red;
314
+ }
315
+ ```
316
+
317
+ :::
318
+
319
+ - [查看详情](https://theme-hope.vuejs.press/zh/guide/markdown/demo.html)
320
+
321
+ #### 样式化
322
+
323
+ 向 Mr.Hope 捐赠一杯咖啡。 _Recommended_
324
+
325
+ - [查看详情](https://theme-hope.vuejs.press/zh/guide/markdown/stylize.html)
326
+
327
+ #### 交互演示
328
+
329
+ ::: playground#ts TS 案例
330
+
331
+ @file index.ts
332
+
333
+ ```ts
334
+ const msg = "hello world";
335
+
336
+ const speak = (msg: string) => console.log(msg);
337
+
338
+ speak(msg);
339
+ ```
340
+
341
+ :::
342
+
343
+ - [查看详情](https://theme-hope.vuejs.press/zh/guide/markdown/playground.html)
344
+
345
+ #### Vue 交互演示
346
+
347
+ ::: vue-playground Vue 交互演示
348
+
349
+ @file App.vue
350
+
351
+ ```vue
352
+ <script setup>
353
+ import { ref } from "vue";
354
+
355
+ const msg = ref("Hello World!");
356
+ </script>
357
+
358
+ <template>
359
+ <h1>{{ msg }}</h1>
360
+ <input v-model="msg" />
361
+ </template>
362
+ ```
363
+
364
+ :::
365
+
366
+ - [查看详情](https://theme-hope.vuejs.press/zh/guide/markdown/vue-playground.html)
367
+
368
+ #### 幻灯片
369
+
370
+ @slidestart
371
+
372
+ ## 幻灯片 1
373
+
374
+ 一个有文字和 [链接](https://mrhope.site) 的段落
375
+
376
+ ---
377
+
378
+ ## 幻灯片 2
379
+
380
+ - 项目 1
381
+ - 项目 2
382
+
383
+ ---
384
+
385
+ ## 幻灯片 3.1
386
+
387
+ ```js
388
+ const a = 1;
389
+ ```
390
+
391
+ --
392
+
393
+ ## 幻灯片 3.2
394
+
395
+ $$
396
+ J(\theta_0,\theta_1) = \sum_{i=0}
397
+ $$
398
+
399
+ @slideend
400
+
401
+ - [查看详情](https://theme-hope.vuejs.press/zh/guide/markdown/presentation.html)
402
+
403
+ [md-enhance]: https://theme-hope.vuejs.press/md-enhance/zh/