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,110 +0,0 @@
1
- ---
2
- home: true
3
- icon: home
4
- title: Project home
5
- heroImage: /logo.svg
6
- heroText: Project name
7
- tagline: You can place the description of the project here.
8
- actions:
9
- - text: How to Use 💡
10
- link: /guide/
11
-
12
- - text: Blog homepage 🏠
13
- link: /
14
- type: secondary
15
-
16
- features:
17
- - title: Markdown Enhance
18
- icon: markdown
19
- details: Add align, sup/sub script, footnote, tasklist, tex, flowchart, diagram, mark and presentation support in markdown
20
- link: https://vuepress-theme-hope.github.io/v2/guide/markdown/
21
-
22
- - title: Slide page
23
- icon: slides
24
- details: Adding slide pages to display things you like
25
- link: https://vuepress-theme-hope.github.io/v2/guide/layout/slides
26
-
27
- - title: Layout enhancement
28
- icon: layout
29
- details: Adding breadcrumb, footer, improved navbar, improved page nav and etc.
30
- link: https://vuepress-theme-hope.github.io/v2/guide/layout/
31
-
32
- - title: Pageviews and comments
33
- icon: comment
34
- details: Start pageview statistics and comment support with Waline
35
- link: https://vuepress-theme-hope.github.io/v2/guide/feature/comment.html
36
-
37
- - title: Article information
38
- icon: info
39
- details: Add author, writing date, reading time, word count and other information to your article
40
- link: https://vuepress-theme-hope.github.io/v2/guide/feature/page-info.html
41
-
42
- - title: Blog support
43
- icon: blog
44
- details: Listing your articles with their dates, tags and categories with some awesome layouts
45
- link: https://vuepress-theme-hope.github.io/v2/guide/blog/
46
-
47
- - title: Custom theme color
48
- icon: palette
49
- details: Supports custom theme colors and allows users to switch between preset theme colors
50
- link: https://vuepress-theme-hope.github.io/v2/guide/interface/theme-color.html
51
-
52
- - title: Dark Mode
53
- icon: contrast
54
- details: Switch between light and dark modes freely
55
- link: https://vuepress-theme-hope.github.io/v2/guide/interface/darkmode.html
56
-
57
- - title: Full A11y support
58
- icon: support
59
- details: Full support of accessibility in your site
60
- link: https://vuepress-theme-hope.github.io/v2/guide/interface/accessibility.html
61
-
62
- - title: Article Encryption
63
- icon: lock
64
- details: Encrypt you article based on path and folders, so that only the one you want could see them
65
- link: https://vuepress-theme-hope.github.io/v2/guide/feature/encrypt.html
66
-
67
- - title: Copy button
68
- icon: copy
69
- details: Copy codes with one click in code blocks
70
- link: https://vuepress-theme-hope.github.io/v2/guide/feature/copy-code.html
71
-
72
- - title: Image preview
73
- icon: pic
74
- details: Support viewing, zooming, sharing your page images like a gallery
75
- link: https://vuepress-theme-hope.github.io/v2/guide/feature/photo-swipe.html
76
-
77
- - title: SEO enhancement
78
- icon: config
79
- details: Optimize pages for search engines
80
- link: https://vuepress-theme-hope.github.io/v2/guide/advanced/seo.html
81
-
82
- - title: Sitemap
83
- icon: sitemap
84
- details: Generate a Sitemap for your website
85
- link: https://vuepress-theme-hope.github.io/v2/guide/advanced/sitemap.html
86
-
87
- - title: Feed support
88
- icon: rss
89
- details: Generate feed to allow users to subcribe it
90
- link: https://vuepress-theme-hope.github.io/v2/guide/advanced/feed.html
91
-
92
- - title: PWA support
93
- icon: mobile
94
- details: Make your website more like an APP
95
- link: https://vuepress-theme-hope.github.io/v2/guide/advanced/pwa.html
96
-
97
- - title: More new features
98
- icon: more
99
- details: Including icon support, fullscreen button, etc.
100
- link: https://vuepress-theme-hope.github.io/v2/guide/feature/
101
-
102
- copyright: false
103
- footer: MIT Licensed | Copyright © 2019-present Mr.Hope
104
- ---
105
-
106
- This is an example of a normal homepage. You can place your main content here.
107
-
108
- To use this layout, you need to set `home: true` in the page front matter.
109
-
110
- For related descriptions of configuration items, please see [Project HomePage Layout Config](https://vuepress-theme-hope.github.io/v2/guide/layout/home/).
@@ -1,7 +0,0 @@
1
- ---
2
- icon: info
3
- ---
4
-
5
- # Intro Page
6
-
7
- Place your introducation and profile here.
@@ -1,20 +0,0 @@
1
- ---
2
- icon: edit
3
- date: 2022-01-02
4
- category:
5
- - CategoryA
6
- tag:
7
- - tag A
8
- - tag B
9
- star: true
10
- ---
11
-
12
- # Article 2
13
-
14
- ## Heading 2
15
-
16
- Here is the content.
17
-
18
- ### Heading 3
19
-
20
- Here is the content.
@@ -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
- # Article 5
13
-
14
- ## Heading 2
15
-
16
- Here is the content.
17
-
18
- ### Heading 3
19
-
20
- Here is the content.
@@ -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
- # Article 6
14
-
15
- ## Heading 2
16
-
17
- Here is the content.
18
-
19
- ### Heading 3
20
-
21
- Here is the content.
@@ -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
- # Article 12
14
-
15
- ## Heading 2
16
-
17
- Here is the content.
18
-
19
- ### Heading 3
20
-
21
- Here is the content.
@@ -1,339 +0,0 @@
1
- ---
2
- index: 2
3
- icon: markdown
4
- title: Markdown 增强
5
- category:
6
- - 使用指南
7
- tag:
8
- - markdown
9
- ---
10
-
11
- VuePress 的每个文档页面都是由 Markdown 渲染而成。所以你需要通过在相应路径创建编写 Markdown 建立你的文档或博客页面。
12
-
13
- <!-- more -->
14
-
15
- ## Markdown 介绍
16
-
17
- 如果你是一个新手,还不会编写 Markdown,请先阅读 [Markdown 介绍](https://vuepress-theme-hope.github.io/v2/zh/basic/markdown/README.html) 和 [Markdown 演示](https://vuepress-theme-hope.github.io/v2/zh/basic/markdown/demo.html)。
18
-
19
- ::: info Frontmatter
20
-
21
- Frontmatter 是 VuePress 中很重要的一个概念,如果你不了解它,你需要阅读 [Frontmatter 介绍](https://vuepress-theme-hope.github.io/v2/zh/basic/vuepress/page.html#front-matter)。
22
-
23
- :::
24
-
25
- ## VuePress 扩展
26
-
27
- 为了丰富文档写作,VuePress 对 Markdown 语法进行了扩展。
28
-
29
- 关于这些扩展,请阅读 [VuePress 中的 Markdown 扩展](https://vuepress-theme-hope.github.io/v2/zh/basic/vuepress/markdown.html)。
30
-
31
- ## 主题扩展
32
-
33
- ### 一键启用
34
-
35
- 你可以设置 `themeconfig.plugins.htmlEnhance.enableAll` 启用 [md-enhance](https://vuepress-theme-hope.github.io/v2/md-enhance) 插件的所有功能。
36
-
37
- ```js {3-5}
38
- module.exports = {
39
- themeConfig: {
40
- plugins: {
41
- mdEnhance: {
42
- enableAll: true,
43
- },
44
- },
45
- },
46
- };
47
- ```
48
-
49
- ### 自定义容器
50
-
51
- ::: v-pre
52
-
53
- 安全的在 Markdown 中使用 {{ variable }}。
54
-
55
- :::
56
-
57
- ::: info 自定义标题
58
-
59
- 信息容器,包含 `代码` 与 [链接](#markdown)。
60
-
61
- ```js
62
- const a = 1;
63
- ```
64
-
65
- :::
66
-
67
- ::: tip 自定义标题
68
-
69
- 提示容器
70
-
71
- :::
72
-
73
- ::: warning 自定义标题
74
-
75
- 警告容器
76
-
77
- :::
78
-
79
- ::: danger 自定义标题
80
-
81
- 危险容器
82
-
83
- :::
84
-
85
- ::: details 自定义标题
86
-
87
- 详情容器
88
-
89
- :::
90
-
91
- :::: details 代码
92
-
93
- ```md
94
- ::: v-pre
95
-
96
- 安全的在 Markdown 中使用 {{ variable }}。
97
-
98
- :::
99
-
100
- ::: info 自定义标题
101
-
102
- 信息容器
103
-
104
- :::
105
-
106
- ::: tip 自定义标题
107
-
108
- 提示容器
109
-
110
- :::
111
-
112
- ::: warning 自定义标题
113
-
114
- 警告容器
115
-
116
- :::
117
-
118
- ::: danger 自定义标题
119
-
120
- 危险容器
121
-
122
- :::
123
-
124
- ::: details 自定义标题
125
-
126
- 详情容器
127
-
128
- :::
129
- ```
130
-
131
- ::::
132
-
133
- - [查看详情](https://vuepress-theme-hope.github.io/v2/zh/guide/markdown/container.html)
134
-
135
- ### 代码块
136
-
137
- :::: code-group
138
-
139
- ::: code-group-item yarn
140
-
141
- ```bash
142
- yarn add -D vuepress-theme-hope
143
- ```
144
-
145
- :::
146
-
147
- ::: code-group-item npm:active
148
-
149
- ```bash
150
- npm i -D vuepress-theme-hope
151
- ```
152
-
153
- :::
154
-
155
- ::::
156
-
157
- - [查看详情](https://vuepress-theme-hope.github.io/v2/zh/guide/markdown/code-group.html)
158
-
159
- ### 自定义对齐
160
-
161
- ::: center
162
-
163
- 我是居中的
164
-
165
- :::
166
-
167
- ::: right
168
-
169
- 我在右对齐
170
-
171
- :::
172
-
173
- - [查看详情](https://vuepress-theme-hope.github.io/v2/zh/guide/markdown/align.html)
174
-
175
- ### 上下角标
176
-
177
- 19^th^ H~2~O
178
-
179
- - [查看详情](https://vuepress-theme-hope.github.io/v2/zh/guide/markdown/sup-sub.html)
180
-
181
- ### 脚注
182
-
183
- 此文字有脚注[^first].
184
-
185
- [^first]: 这是脚注内容
186
-
187
- - [查看详情](https://vuepress-theme-hope.github.io/v2/zh/guide/markdown/footnote.html)
188
-
189
- ### 标记
190
-
191
- 你可以标记 ==重要的内容== 。
192
-
193
- - [查看详情](https://vuepress-theme-hope.github.io/v2/zh/guide/markdown/mark.html)
194
-
195
- ### 任务列表
196
-
197
- - [x] 计划 1
198
- - [ ] 计划 2
199
-
200
- - [查看详情](https://vuepress-theme-hope.github.io/v2/zh/guide/markdown/tasklist.html)
201
-
202
- ### 图表
203
-
204
- ::: chart 一个散点图案例
205
-
206
- ```json
207
- {
208
- "type": "scatter",
209
- "data": {
210
- "datasets": [
211
- {
212
- "label": "散点数据集",
213
- "data": [
214
- { "x": -10, "y": 0 },
215
- { "x": 0, "y": 10 },
216
- { "x": 10, "y": 5 },
217
- { "x": 0.5, "y": 5.5 }
218
- ],
219
- "backgroundColor": "rgb(255, 99, 132)"
220
- }
221
- ]
222
- },
223
- "options": {
224
- "scales": {
225
- "x": {
226
- "type": "linear",
227
- "position": "bottom"
228
- }
229
- }
230
- }
231
- }
232
- ```
233
-
234
- :::
235
-
236
- - [查看详情](https://vuepress-theme-hope.github.io/v2/zh/guide/markdown/chart.html)
237
-
238
- ### 流程图
239
-
240
- ```flow
241
- cond=>condition: 是否执行操作?
242
- process=>operation: 操作
243
- e=>end: 结束
244
-
245
- cond(yes)->process->e
246
- cond(no)->e
247
- ```
248
-
249
- - [查看详情](https://vuepress-theme-hope.github.io/v2/zh/guide/markdown/flowchart.html)
250
-
251
- ## Mermaid
252
-
253
- ```mermaid
254
- flowchart TB
255
- c1-->a2
256
- subgraph one
257
- a1-->a2
258
- end
259
- subgraph two
260
- b1-->b2
261
- end
262
- subgraph three
263
- c1-->c2
264
- end
265
- one --> two
266
- three --> two
267
- two --> c2
268
- ```
269
-
270
- - [查看详情](https://vuepress-theme-hope.github.io/v2/zh/guide/markdown/mermaid.html)
271
-
272
- ### Tex 语法
273
-
274
- $$
275
- \frac {\partial^r} {\partial \omega^r} \left(\frac {y^{\omega}} {\omega}\right)
276
- = \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\}
277
- $$
278
-
279
- - [查看详情](https://vuepress-theme-hope.github.io/v2/zh/guide/markdown/tex.html)
280
-
281
- ### 代码演示
282
-
283
- ::: demo 一个普通 Demo
284
-
285
- ```html
286
- <h1>VuePress Theme Hope</h1>
287
- <p><span id="very">非常</span>强大!</p>
288
- ```
289
-
290
- ```js
291
- document.querySelector("#very").addEventListener("click", () => {
292
- alert("非常强大");
293
- });
294
- ```
295
-
296
- ```css
297
- span {
298
- color: red;
299
- }
300
- ```
301
-
302
- :::
303
-
304
- - [查看详情](https://vuepress-theme-hope.github.io/v2/zh/guide/markdown/demo.html)
305
-
306
- ### 幻灯片
307
-
308
- @slidestart
309
-
310
- ## 幻灯片 1
311
-
312
- 一个有文字和 [链接](https://mrhope.site) 的段落
313
-
314
- ---
315
-
316
- ## 幻灯片 2
317
-
318
- - 项目 1
319
- - 项目 2
320
-
321
- ---
322
-
323
- ## 幻灯片 3.1
324
-
325
- ```js
326
- const a = 1;
327
- ```
328
-
329
- --
330
-
331
- ## 幻灯片 3.2
332
-
333
- $$
334
- J(\theta_0,\theta_1) = \sum_{i=0}
335
- $$
336
-
337
- @slideend
338
-
339
- - [查看详情](https://vuepress-theme-hope.github.io/v2/zh/guide/markdown/presentation.html)
@@ -1,66 +0,0 @@
1
- ---
2
- # 这是侧边栏索引
3
- index: 1
4
- # 这是页面的图标
5
- icon: page
6
- # 这是文章的标题
7
- title: 页面配置
8
- # 设置作者
9
- author: Ms.Hope
10
- # 设置写作时间
11
- date: 2020-01-01
12
- # 一个页面可以有多个分类
13
- category:
14
- - 使用指南
15
- # 一个页面可以有多个标签
16
- tag:
17
- - 页面配置
18
- - 使用指南
19
- # 此页面会在文章列表置顶
20
- sticky: true
21
- # 此页面会出现在首页的文章板块中
22
- star: true
23
- # 你可以自定义页脚
24
- footer: 这是测试显示的页脚
25
- ---
26
-
27
- `more` 注释之前的内容被视为文章摘要。
28
-
29
- <!-- more -->
30
-
31
- ## 页面信息
32
-
33
- 你可以在 Markdown 的 Frontmatter 中设置页面信息。
34
-
35
- - 作者设置为 Ms.Hope。
36
-
37
- - 写作时间应为 2020 年 1 月 1 日
38
-
39
- - 分类为 “使用指南”
40
-
41
- - 标签为 “页面配置” 和 “使用指南”
42
-
43
- ## 页面内容
44
-
45
- 你可以自由在这里书写你的 Markdown。
46
-
47
- ::: tip
48
-
49
- - Markdown 文件夹的图片请使用相对链接 `./` 进行引用。
50
-
51
- - `.vuepress/public` 文件夹的图片,请使用绝对链接 `/` 进行引用
52
-
53
- :::
54
-
55
- 主题包含了一个自定义徽章章可以使用:
56
-
57
- > 文字结尾应该有深蓝色的 徽章文字 徽章。 <Badge text="徽章文字" color="#242378" />
58
-
59
- ## 页面结构
60
-
61
- 此页面应当包含:
62
-
63
- - 返回顶部按钮
64
- - 路径导航
65
- - 评论
66
- - 页脚
@@ -1,20 +0,0 @@
1
- ---
2
- icon: edit
3
- date: 2022-01-02
4
- category:
5
- - CategoryA
6
- tag:
7
- - tag A
8
- - tag B
9
- star: true
10
- ---
11
-
12
- # 文章 2
13
-
14
- ## 标题 2
15
-
16
- 这里是内容。
17
-
18
- ### 标题 3
19
-
20
- 这里是内容。
@@ -1,20 +0,0 @@
1
- ---
2
- icon: edit
3
- date: 2022-01-04
4
- category:
5
- - CategoryA
6
- - CategoryB
7
- tag:
8
- - tag A
9
- - tag B
10
- ---
11
-
12
- # 文章 4
13
-
14
- ## 标题 2
15
-
16
- 这里是内容。
17
-
18
- ### 标题 3
19
-
20
- 这里是内容。
@@ -1,28 +0,0 @@
1
- import { defineHopeConfig } from "vuepress-theme-hope";
2
- import themeConfig from "./themeConfig";
3
-
4
- export default defineHopeConfig({
5
- base: "/",
6
-
7
- dest: "./dist",
8
-
9
- head: [
10
- [
11
- "link",
12
- {
13
- rel: "stylesheet",
14
- href: "//at.alicdn.com/t/font_2410206_mfj6e1vbwo.css",
15
- },
16
- ],
17
- ],
18
-
19
- locales: {
20
- "/": {
21
- lang: "zh-CN",
22
- title: "主题演示",
23
- description: "vuepress-theme-hope 的演示",
24
- },
25
- },
26
-
27
- themeConfig,
28
- });