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.
- package/LICENSE +1 -1
- package/README.md +35 -0
- package/lib/index.js +65 -0
- package/package.json +25 -14
- package/template/blog/.vuepress/config.ts +24 -0
- package/template/blog/.vuepress/navbar/en.ts +52 -0
- package/template/blog/.vuepress/navbar/index.ts +2 -0
- package/template/blog/.vuepress/navbar/zh.ts +52 -0
- package/template/blog/.vuepress/public/assets/images/cover1.jpg +0 -0
- package/template/blog/.vuepress/public/assets/images/cover2.jpg +0 -0
- package/template/blog/.vuepress/public/assets/images/cover3.jpg +0 -0
- package/template/blog/.vuepress/sidebar/en.ts +22 -0
- package/template/blog/.vuepress/sidebar/index.ts +2 -0
- package/template/blog/.vuepress/sidebar/zh.ts +22 -0
- package/template/blog/.vuepress/styles/config.scss +3 -0
- package/template/blog/.vuepress/styles/index.scss +1 -0
- package/template/blog/.vuepress/styles/palette.scss +2 -0
- package/template/blog/.vuepress/theme.ts +224 -0
- package/template/{i18n → blog}/README.md +5 -5
- package/template/{i18n/guide → blog/demo}/README.md +5 -4
- package/template/{i18n/guide → blog/demo}/disable.md +4 -4
- package/template/{i18n/guide → blog/demo}/encrypt.md +1 -1
- package/template/blog/demo/markdown.md +423 -0
- package/template/blog/demo/page.md +74 -0
- package/template/blog/intro.md +8 -0
- package/template/{i18n/posts/article/article1.md → blog/posts/apple/1.md} +5 -4
- package/template/{en-US/posts/article/article2.md → blog/posts/apple/2.md} +9 -4
- package/template/{i18n/posts/article/article3.md → blog/posts/apple/3.md} +6 -5
- package/template/{i18n/posts/article/article4.md → blog/posts/apple/4.md} +6 -5
- package/template/{en-US/posts/article/article5.md → blog/posts/banana/1.md} +6 -5
- package/template/{en-US/posts/article/article6.md → blog/posts/banana/2.md} +10 -5
- package/template/{i18n/posts/article/article7.md → blog/posts/banana/3.md} +5 -5
- package/template/{i18n/posts/article/article8.md → blog/posts/banana/4.md} +5 -5
- package/template/{i18n/posts/article9.md → blog/posts/cherry.md} +5 -5
- package/template/{i18n/posts/article10.md → blog/posts/dragonfruit.md} +5 -5
- package/template/{i18n/posts/article11.md → blog/posts/strawberry.md} +5 -5
- package/template/{en-US/posts/article12.md → blog/posts/tomato.md} +6 -5
- package/template/{i18n/slide.md → blog/slides.md} +8 -8
- package/template/{i18n → blog}/zh/README.md +4 -4
- package/template/{i18n/zh/guide → blog/zh/demo}/README.md +5 -4
- package/template/{i18n/zh/guide → blog/zh/demo}/disable.md +4 -4
- package/template/blog/zh/demo/markdown.md +403 -0
- package/template/blog/zh/demo/page.md +74 -0
- package/template/blog/zh/intro.md +8 -0
- package/template/{i18n/zh/posts/article/article1.md → blog/zh/posts/apple/1.md} +5 -4
- package/template/{zh-CN/posts/article/article2.md → blog/zh/posts/apple/2.md} +9 -4
- package/template/{i18n/zh/posts/article/article3.md → blog/zh/posts/apple/3.md} +6 -5
- package/template/{zh-CN/posts/article/article4.md → blog/zh/posts/apple/4.md} +6 -5
- package/template/{i18n/zh/posts/article/article5.md → blog/zh/posts/banana/1.md} +6 -5
- package/template/{i18n/zh/posts/article/article6.md → blog/zh/posts/banana/2.md} +10 -5
- package/template/{i18n/zh/posts/article/article7.md → blog/zh/posts/banana/3.md} +5 -5
- package/template/{i18n/zh/posts/article/article8.md → blog/zh/posts/banana/4.md} +5 -5
- package/template/{i18n/zh/posts/article9.md → blog/zh/posts/cherry.md} +5 -5
- package/template/{i18n/zh/posts/article10.md → blog/zh/posts/dragonfruit.md} +5 -5
- package/template/{i18n/zh/posts/article11.md → blog/zh/posts/strawberry.md} +5 -5
- package/template/{i18n/zh/posts/article12.md → blog/zh/posts/tomato.md} +6 -5
- package/template/{i18n/zh/slide.md → blog/zh/slides.md} +1 -1
- package/template/docs/.vuepress/config.ts +24 -0
- package/template/docs/.vuepress/navbar/en.ts +30 -0
- package/template/docs/.vuepress/navbar/index.ts +2 -0
- package/template/docs/.vuepress/navbar/zh.ts +30 -0
- package/template/docs/.vuepress/sidebar/en.ts +21 -0
- package/template/docs/.vuepress/sidebar/index.ts +2 -0
- package/template/docs/.vuepress/sidebar/zh.ts +21 -0
- package/template/docs/.vuepress/styles/config.scss +3 -0
- package/template/docs/.vuepress/styles/index.scss +1 -0
- package/template/docs/.vuepress/styles/palette.scss +2 -0
- package/template/docs/.vuepress/theme.ts +172 -0
- package/template/{en-US/home.md → docs/README.md} +28 -28
- package/template/{en-US/guide → docs/demo}/README.md +5 -4
- package/template/{en-US/guide → docs/demo}/disable.md +4 -4
- package/template/{en-US/guide → docs/demo}/encrypt.md +1 -1
- package/template/docs/demo/markdown.md +423 -0
- package/template/docs/demo/page.md +72 -0
- package/template/docs/guide/README.md +16 -0
- package/template/docs/guide/bar/README.md +13 -0
- package/template/docs/guide/bar/baz.md +6 -0
- package/template/docs/guide/foo/README.md +13 -0
- package/template/docs/guide/foo/ray.md +6 -0
- package/template/{en-US/slide.md → docs/slides.md} +8 -8
- package/template/{i18n/zh/home.md → docs/zh/README.md} +24 -24
- package/template/{zh-CN/guide → docs/zh/demo}/README.md +5 -4
- package/template/{zh-CN/guide → docs/zh/demo}/disable.md +4 -4
- package/template/docs/zh/demo/markdown.md +403 -0
- package/template/docs/zh/demo/page.md +72 -0
- package/template/docs/zh/guide/README.md +16 -0
- package/template/docs/zh/guide/bar/README.md +13 -0
- package/template/docs/zh/guide/bar/baz.md +6 -0
- package/template/docs/zh/guide/foo/README.md +13 -0
- package/template/docs/zh/guide/foo/ray.md +6 -0
- package/template/{zh-CN/slide.md → docs/zh/slides.md} +1 -1
- package/template/public/assets/icon/apple-icon-152.png +0 -0
- package/template/public/assets/icon/chrome-192.png +0 -0
- package/template/public/assets/icon/chrome-512.png +0 -0
- package/template/public/assets/icon/chrome-mask-192.png +0 -0
- package/template/public/assets/icon/chrome-mask-512.png +0 -0
- package/template/public/assets/icon/guide-maskable.png +0 -0
- package/template/public/assets/icon/ms-icon-144.png +0 -0
- package/CHANGELOG.md +0 -184
- package/lib/node/index.d.ts +0 -1
- package/lib/node/index.js +0 -3
- package/lib/node/index.js.map +0 -1
- package/readme.md +0 -33
- package/rollup.config.js +0 -14
- package/src/node/checkVersion.ts +0 -31
- package/src/node/copy.ts +0 -45
- package/src/node/deepAssign.ts +0 -42
- package/src/node/hasYarn.ts +0 -10
- package/src/node/i18n.ts +0 -91
- package/src/node/index.ts +0 -177
- package/src/node/registry.ts +0 -31
- package/template/en-US/.vuepress/config.ts +0 -28
- package/template/en-US/.vuepress/navbar.ts +0 -52
- package/template/en-US/.vuepress/sidebar.ts +0 -46
- package/template/en-US/.vuepress/styles/index.scss +0 -0
- package/template/en-US/.vuepress/styles/palette.scss +0 -0
- package/template/en-US/.vuepress/themeConfig.ts +0 -96
- package/template/en-US/README.md +0 -48
- package/template/en-US/guide/markdown.md +0 -341
- package/template/en-US/guide/page.md +0 -66
- package/template/en-US/intro.md +0 -7
- package/template/en-US/posts/article/article1.md +0 -19
- package/template/en-US/posts/article/article3.md +0 -20
- package/template/en-US/posts/article/article4.md +0 -20
- package/template/en-US/posts/article/article7.md +0 -20
- package/template/en-US/posts/article/article8.md +0 -20
- package/template/en-US/posts/article10.md +0 -20
- package/template/en-US/posts/article11.md +0 -20
- package/template/en-US/posts/article9.md +0 -20
- package/template/i18n/.vuepress/config.ts +0 -33
- package/template/i18n/.vuepress/navbar/en.ts +0 -52
- package/template/i18n/.vuepress/navbar/index.ts +0 -2
- package/template/i18n/.vuepress/navbar/zh.ts +0 -52
- package/template/i18n/.vuepress/public/favicon.ico +0 -0
- package/template/i18n/.vuepress/public/logo.png +0 -0
- package/template/i18n/.vuepress/public/logo.svg +0 -1
- package/template/i18n/.vuepress/sidebar/en.ts +0 -48
- package/template/i18n/.vuepress/sidebar/index.ts +0 -2
- package/template/i18n/.vuepress/sidebar/zh.ts +0 -48
- package/template/i18n/.vuepress/styles/index.scss +0 -0
- package/template/i18n/.vuepress/styles/palette.scss +0 -0
- package/template/i18n/.vuepress/themeConfig.ts +0 -124
- package/template/i18n/guide/markdown.md +0 -341
- package/template/i18n/guide/page.md +0 -66
- package/template/i18n/home.md +0 -110
- package/template/i18n/intro.md +0 -7
- package/template/i18n/posts/article/article2.md +0 -20
- package/template/i18n/posts/article/article5.md +0 -20
- package/template/i18n/posts/article/article6.md +0 -21
- package/template/i18n/posts/article12.md +0 -21
- package/template/i18n/zh/guide/markdown.md +0 -339
- package/template/i18n/zh/guide/page.md +0 -66
- package/template/i18n/zh/posts/article/article2.md +0 -20
- package/template/i18n/zh/posts/article/article4.md +0 -20
- package/template/zh-CN/.vuepress/config.ts +0 -28
- package/template/zh-CN/.vuepress/navbar.ts +0 -52
- package/template/zh-CN/.vuepress/public/favicon.ico +0 -0
- package/template/zh-CN/.vuepress/public/logo.png +0 -0
- package/template/zh-CN/.vuepress/public/logo.svg +0 -1
- package/template/zh-CN/.vuepress/sidebar.ts +0 -46
- package/template/zh-CN/.vuepress/styles/index.scss +0 -0
- package/template/zh-CN/.vuepress/styles/palette.scss +0 -0
- package/template/zh-CN/.vuepress/themeConfig.ts +0 -96
- package/template/zh-CN/README.md +0 -48
- package/template/zh-CN/guide/markdown.md +0 -339
- package/template/zh-CN/guide/page.md +0 -66
- package/template/zh-CN/home.md +0 -109
- package/template/zh-CN/posts/article/article1.md +0 -19
- package/template/zh-CN/posts/article/article3.md +0 -20
- package/template/zh-CN/posts/article/article5.md +0 -20
- package/template/zh-CN/posts/article/article6.md +0 -21
- package/template/zh-CN/posts/article/article7.md +0 -20
- package/template/zh-CN/posts/article/article8.md +0 -20
- package/template/zh-CN/posts/article10.md +0 -20
- package/template/zh-CN/posts/article11.md +0 -20
- package/template/zh-CN/posts/article12.md +0 -21
- package/template/zh-CN/posts/article9.md +0 -20
- package/tsconfig.build.json +0 -10
- package/tsconfig.json +0 -8
- /package/template/{i18n/zh/guide → blog/zh/demo}/encrypt.md +0 -0
- /package/template/{zh-CN/guide → docs/zh/demo}/encrypt.md +0 -0
- /package/template/{en-US/.vuepress/public → public}/favicon.ico +0 -0
- /package/template/{en-US/.vuepress/public → public}/logo.png +0 -0
- /package/template/{en-US/.vuepress/public → public}/logo.svg +0 -0
|
@@ -7,104 +7,104 @@ heroText: Project name
|
|
|
7
7
|
tagline: You can place the description of the project here.
|
|
8
8
|
actions:
|
|
9
9
|
- text: How to Use 💡
|
|
10
|
-
link: /
|
|
10
|
+
link: /demo/
|
|
11
|
+
type: primary
|
|
11
12
|
|
|
12
|
-
- text:
|
|
13
|
-
link: /
|
|
14
|
-
type: secondary
|
|
13
|
+
- text: Docs
|
|
14
|
+
link: /guide/
|
|
15
15
|
|
|
16
16
|
features:
|
|
17
17
|
- title: Markdown Enhance
|
|
18
18
|
icon: markdown
|
|
19
19
|
details: Add align, sup/sub script, footnote, tasklist, tex, flowchart, diagram, mark and presentation support in markdown
|
|
20
|
-
link: https://
|
|
20
|
+
link: https://theme-hope.vuejs.press/guide/markdown/
|
|
21
21
|
|
|
22
22
|
- title: Slide page
|
|
23
23
|
icon: slides
|
|
24
24
|
details: Adding slide pages to display things you like
|
|
25
|
-
link: https://
|
|
25
|
+
link: https://theme-hope.vuejs.press/guide/layout/slides.html
|
|
26
26
|
|
|
27
27
|
- title: Layout enhancement
|
|
28
28
|
icon: layout
|
|
29
29
|
details: Adding breadcrumb, footer, improved navbar, improved page nav and etc.
|
|
30
|
-
link: https://
|
|
30
|
+
link: https://theme-hope.vuejs.press/guide/layout/
|
|
31
31
|
|
|
32
32
|
- title: Pageviews and comments
|
|
33
33
|
icon: comment
|
|
34
34
|
details: Start pageview statistics and comment support with Waline
|
|
35
|
-
link: https://
|
|
35
|
+
link: https://theme-hope.vuejs.press/guide/feature/comment.html
|
|
36
36
|
|
|
37
37
|
- title: Article information
|
|
38
38
|
icon: info
|
|
39
39
|
details: Add author, writing date, reading time, word count and other information to your article
|
|
40
|
-
link: https://
|
|
40
|
+
link: https://theme-hope.vuejs.press/guide/feature/page-info.html
|
|
41
41
|
|
|
42
42
|
- title: Blog support
|
|
43
43
|
icon: blog
|
|
44
44
|
details: Listing your articles with their dates, tags and categories with some awesome layouts
|
|
45
|
-
link: https://
|
|
45
|
+
link: https://theme-hope.vuejs.press/guide/blog/
|
|
46
46
|
|
|
47
47
|
- title: Custom theme color
|
|
48
48
|
icon: palette
|
|
49
49
|
details: Supports custom theme colors and allows users to switch between preset theme colors
|
|
50
|
-
link: https://
|
|
50
|
+
link: https://theme-hope.vuejs.press/guide/interface/theme-color.html
|
|
51
51
|
|
|
52
52
|
- title: Dark Mode
|
|
53
53
|
icon: contrast
|
|
54
54
|
details: Switch between light and dark modes freely
|
|
55
|
-
link: https://
|
|
55
|
+
link: https://theme-hope.vuejs.press/guide/interface/darkmode.html
|
|
56
56
|
|
|
57
57
|
- title: Full A11y support
|
|
58
58
|
icon: support
|
|
59
59
|
details: Full support of accessibility in your site
|
|
60
|
-
link: https://
|
|
60
|
+
link: https://theme-hope.vuejs.press/guide/interface/accessibility.html
|
|
61
61
|
|
|
62
62
|
- title: Article Encryption
|
|
63
63
|
icon: lock
|
|
64
|
-
details: Encrypt you
|
|
65
|
-
link: https://
|
|
64
|
+
details: Encrypt you articles based on page links, so that only the one you want could see them
|
|
65
|
+
link: https://theme-hope.vuejs.press/guide/feature/encrypt.html
|
|
66
66
|
|
|
67
67
|
- title: Copy button
|
|
68
68
|
icon: copy
|
|
69
69
|
details: Copy codes with one click in code blocks
|
|
70
|
-
link: https://
|
|
70
|
+
link: https://theme-hope.vuejs.press/guide/feature/copy-code.html
|
|
71
71
|
|
|
72
72
|
- title: Image preview
|
|
73
73
|
icon: pic
|
|
74
74
|
details: Support viewing, zooming, sharing your page images like a gallery
|
|
75
|
-
link: https://
|
|
75
|
+
link: https://theme-hope.vuejs.press/guide/feature/photo-swipe.html
|
|
76
76
|
|
|
77
77
|
- title: SEO enhancement
|
|
78
78
|
icon: config
|
|
79
79
|
details: Optimize pages for search engines
|
|
80
|
-
link: https://
|
|
80
|
+
link: https://theme-hope.vuejs.press/guide/advanced/seo.html
|
|
81
81
|
|
|
82
82
|
- title: Sitemap
|
|
83
83
|
icon: sitemap
|
|
84
|
-
details: Generate a Sitemap for your
|
|
85
|
-
link: https://
|
|
84
|
+
details: Generate a Sitemap for your site
|
|
85
|
+
link: https://theme-hope.vuejs.press/guide/advanced/sitemap.html
|
|
86
86
|
|
|
87
87
|
- title: Feed support
|
|
88
88
|
icon: rss
|
|
89
|
-
details: Generate feed to allow users to
|
|
90
|
-
link: https://
|
|
89
|
+
details: Generate feed to allow users to subscribe it
|
|
90
|
+
link: https://theme-hope.vuejs.press/guide/advanced/feed.html
|
|
91
91
|
|
|
92
92
|
- title: PWA support
|
|
93
93
|
icon: mobile
|
|
94
|
-
details: Make your
|
|
95
|
-
link: https://
|
|
94
|
+
details: Make your site more like an APP
|
|
95
|
+
link: https://theme-hope.vuejs.press/guide/advanced/pwa.html
|
|
96
96
|
|
|
97
97
|
- title: More new features
|
|
98
98
|
icon: more
|
|
99
99
|
details: Including icon support, fullscreen button, etc.
|
|
100
|
-
link: https://
|
|
100
|
+
link: https://theme-hope.vuejs.press/guide/feature/
|
|
101
101
|
|
|
102
102
|
copyright: false
|
|
103
|
-
footer: MIT Licensed
|
|
103
|
+
footer: Theme by <a href="https://theme-hope.vuejs.press/" target="_blank">VuePress Theme Hope</a> | MIT Licensed, Copyright © 2019-present Mr.Hope
|
|
104
104
|
---
|
|
105
105
|
|
|
106
|
-
This is an example of a
|
|
106
|
+
This is an example of a project homepage. You can place your main content here.
|
|
107
107
|
|
|
108
108
|
To use this layout, you need to set `home: true` in the page front matter.
|
|
109
109
|
|
|
110
|
-
For related descriptions of configuration items, please see [Project HomePage Layout Config](https://
|
|
110
|
+
For related descriptions of configuration items, please see [Project HomePage Layout Config](https://theme-hope.vuejs.press/guide/layout/home/).
|
|
@@ -1,16 +1,17 @@
|
|
|
1
1
|
---
|
|
2
|
+
title: Features Demo
|
|
2
3
|
index: false
|
|
3
|
-
icon:
|
|
4
|
+
icon: discover
|
|
4
5
|
category:
|
|
5
6
|
- Guide
|
|
6
7
|
---
|
|
7
8
|
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
- [Page Config](page.md)
|
|
9
|
+
## Catalog
|
|
11
10
|
|
|
12
11
|
- [Markdown Enhance](markdown.md)
|
|
13
12
|
|
|
13
|
+
- [Page Config](page.md)
|
|
14
|
+
|
|
14
15
|
- [Function Disable](disable.md)
|
|
15
16
|
|
|
16
17
|
- [Encryption Demo](encrypt.md)
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
|
-
|
|
3
|
-
title: Component disabled
|
|
2
|
+
title: Disabling layout and features
|
|
4
3
|
icon: config
|
|
4
|
+
order: 3
|
|
5
5
|
category:
|
|
6
6
|
- Guide
|
|
7
7
|
tag:
|
|
@@ -23,11 +23,11 @@ footer: false
|
|
|
23
23
|
backtotop: false
|
|
24
24
|
---
|
|
25
25
|
|
|
26
|
-
You can disable some
|
|
26
|
+
You can disable some function and layout on the page by setting the Frontmatter of the page.
|
|
27
27
|
|
|
28
28
|
<!-- more -->
|
|
29
29
|
|
|
30
|
-
|
|
30
|
+
This page is an demo that disables the following features:
|
|
31
31
|
|
|
32
32
|
- Navbar
|
|
33
33
|
- Sidebar
|
|
@@ -0,0 +1,423 @@
|
|
|
1
|
+
---
|
|
2
|
+
title: Markdown Enhance
|
|
3
|
+
icon: markdown
|
|
4
|
+
order: 2
|
|
5
|
+
category:
|
|
6
|
+
- Guide
|
|
7
|
+
tag:
|
|
8
|
+
- Markdown
|
|
9
|
+
---
|
|
10
|
+
|
|
11
|
+
VuePress basically generate pages from Markdown files. So you can use it to generate documentation or blog sites easily.
|
|
12
|
+
|
|
13
|
+
You should create and write Markdown files, so that VuePress can convert them to different pages according to file structure.
|
|
14
|
+
|
|
15
|
+
<!-- more -->
|
|
16
|
+
|
|
17
|
+
## Markdown Introduction
|
|
18
|
+
|
|
19
|
+
If you are a new learner and don't know how to write Markdown, please read [Markdown Intro](https://theme-hope.vuejs.press/cookbook/markdown/) and [Markdown Demo](https://theme-hope.vuejs.press/cookbook/markdown/demo.html).
|
|
20
|
+
|
|
21
|
+
## Markdown Config
|
|
22
|
+
|
|
23
|
+
VuePress introduce configuration for each Markdown page using Frontmatter.
|
|
24
|
+
|
|
25
|
+
::: info
|
|
26
|
+
|
|
27
|
+
Frontmatter is a important concept in VuePress. If you don't know it, you need to read [Frontmatter Introduction](https://theme-hope.vuejs.press/cookbook/vuepress/page.html#front-matter).
|
|
28
|
+
|
|
29
|
+
:::
|
|
30
|
+
|
|
31
|
+
## Markdown Extension
|
|
32
|
+
|
|
33
|
+
The Markdown content in VuePress will be parsed by [markdown-it](https://github.com/markdown-it/markdown-it), which supports [syntax extensions](https://github.com/markdown-it/markdown-it#syntax-extensions) via markdown-it plugins.
|
|
34
|
+
|
|
35
|
+
### VuePress Enhancement
|
|
36
|
+
|
|
37
|
+
To enrich document writing, VuePress has extended Markdown syntax.
|
|
38
|
+
|
|
39
|
+
For these extensions, please read [Markdown extensions in VuePress](https://theme-hope.vuejs.press/basic/vuepress/markdown.html).
|
|
40
|
+
|
|
41
|
+
### Theme Enhancement
|
|
42
|
+
|
|
43
|
+
By using [`vuepress-plugin-md-enhance`][md-enhance], the theme extends more Markdown syntax and provides richer writing functions.
|
|
44
|
+
|
|
45
|
+
#### Custom Container
|
|
46
|
+
|
|
47
|
+
::: v-pre
|
|
48
|
+
|
|
49
|
+
Safely use {{ variable }} in Markdown.
|
|
50
|
+
|
|
51
|
+
:::
|
|
52
|
+
|
|
53
|
+
::: info Custom Title
|
|
54
|
+
|
|
55
|
+
A custom information container with `code`, [link](#custom-container).
|
|
56
|
+
|
|
57
|
+
```js
|
|
58
|
+
const a = 1;
|
|
59
|
+
```
|
|
60
|
+
|
|
61
|
+
:::
|
|
62
|
+
|
|
63
|
+
::: tip Custom Title
|
|
64
|
+
|
|
65
|
+
A custom tip container
|
|
66
|
+
|
|
67
|
+
:::
|
|
68
|
+
|
|
69
|
+
::: warning Custom Title
|
|
70
|
+
|
|
71
|
+
A custom warning container
|
|
72
|
+
|
|
73
|
+
:::
|
|
74
|
+
|
|
75
|
+
::: danger Custom Title
|
|
76
|
+
|
|
77
|
+
A custom danger container
|
|
78
|
+
|
|
79
|
+
:::
|
|
80
|
+
|
|
81
|
+
::: details Custom Title
|
|
82
|
+
|
|
83
|
+
A custom details container
|
|
84
|
+
|
|
85
|
+
:::
|
|
86
|
+
|
|
87
|
+
- [View Detail](https://theme-hope.vuejs.press/guide/markdown/container.html)
|
|
88
|
+
|
|
89
|
+
#### Tabs
|
|
90
|
+
|
|
91
|
+
::: tabs#fruit
|
|
92
|
+
|
|
93
|
+
@tab apple
|
|
94
|
+
|
|
95
|
+
Apple
|
|
96
|
+
|
|
97
|
+
@tab banana
|
|
98
|
+
|
|
99
|
+
Banana
|
|
100
|
+
|
|
101
|
+
@tab orange
|
|
102
|
+
|
|
103
|
+
Orange
|
|
104
|
+
|
|
105
|
+
:::
|
|
106
|
+
|
|
107
|
+
- [View Detail](https://theme-hope.vuejs.press/guide/markdown/tabs.html)
|
|
108
|
+
|
|
109
|
+
#### Code Tabs
|
|
110
|
+
|
|
111
|
+
::: code-tabs#shell
|
|
112
|
+
|
|
113
|
+
@tab pnpm
|
|
114
|
+
|
|
115
|
+
```bash
|
|
116
|
+
pnpm add -D vuepress-theme-hope
|
|
117
|
+
```
|
|
118
|
+
|
|
119
|
+
@tab yarn
|
|
120
|
+
|
|
121
|
+
```bash
|
|
122
|
+
yarn add -D vuepress-theme-hope
|
|
123
|
+
```
|
|
124
|
+
|
|
125
|
+
@tab:active npm
|
|
126
|
+
|
|
127
|
+
```bash
|
|
128
|
+
npm i -D vuepress-theme-hope
|
|
129
|
+
```
|
|
130
|
+
|
|
131
|
+
:::
|
|
132
|
+
|
|
133
|
+
- [View Detail](https://theme-hope.vuejs.press/guide/markdown/code-tabs.html)
|
|
134
|
+
|
|
135
|
+
#### Superscript and Subscript
|
|
136
|
+
|
|
137
|
+
19^th^ H~2~O
|
|
138
|
+
|
|
139
|
+
- [View Detail](https://theme-hope.vuejs.press/guide/markdown/sup-sub.html)
|
|
140
|
+
|
|
141
|
+
#### Align
|
|
142
|
+
|
|
143
|
+
::: center
|
|
144
|
+
|
|
145
|
+
I am center
|
|
146
|
+
|
|
147
|
+
:::
|
|
148
|
+
|
|
149
|
+
::: right
|
|
150
|
+
|
|
151
|
+
I am right align
|
|
152
|
+
|
|
153
|
+
:::
|
|
154
|
+
|
|
155
|
+
- [View Detail](https://theme-hope.vuejs.press/guide/markdown/align.html)
|
|
156
|
+
|
|
157
|
+
#### Attrs
|
|
158
|
+
|
|
159
|
+
A **word**{#word} having id.
|
|
160
|
+
|
|
161
|
+
- [View Detail](https://theme-hope.vuejs.press/guide/markdown/attrs.html)
|
|
162
|
+
|
|
163
|
+
#### Footnote
|
|
164
|
+
|
|
165
|
+
This text has footnote[^first].
|
|
166
|
+
|
|
167
|
+
[^first]: This is footnote content
|
|
168
|
+
|
|
169
|
+
- [View Detail](https://theme-hope.vuejs.press/guide/markdown/footnote.html)
|
|
170
|
+
|
|
171
|
+
#### Mark
|
|
172
|
+
|
|
173
|
+
You can mark ==important words== .
|
|
174
|
+
|
|
175
|
+
- [View Detail](https://theme-hope.vuejs.press/guide/markdown/mark.html)
|
|
176
|
+
|
|
177
|
+
#### Tasklist
|
|
178
|
+
|
|
179
|
+
- [x] Plan A
|
|
180
|
+
- [ ] Plan B
|
|
181
|
+
|
|
182
|
+
- [View Detail](https://theme-hope.vuejs.press/guide/markdown/tasklist.html)
|
|
183
|
+
|
|
184
|
+
#### Image Enhancement
|
|
185
|
+
|
|
186
|
+
Support setting color scheme and size
|
|
187
|
+
|
|
188
|
+
- [View Detail](https://theme-hope.vuejs.press/guide/markdown/image.html)
|
|
189
|
+
|
|
190
|
+
#### Card
|
|
191
|
+
|
|
192
|
+
```card
|
|
193
|
+
title: Mr.Hope
|
|
194
|
+
desc: Where there is light, there is hope
|
|
195
|
+
logo: https://mrhope.site/logo.svg
|
|
196
|
+
link: https://mrhope.site
|
|
197
|
+
color: rgba(253, 230, 138, 0.15)
|
|
198
|
+
```
|
|
199
|
+
|
|
200
|
+
- [View Detail](https://theme-hope.vuejs.press/guide/markdown/card.html)
|
|
201
|
+
|
|
202
|
+
#### Chart
|
|
203
|
+
|
|
204
|
+
::: chart A Scatter Chart
|
|
205
|
+
|
|
206
|
+
```json
|
|
207
|
+
{
|
|
208
|
+
"type": "scatter",
|
|
209
|
+
"data": {
|
|
210
|
+
"datasets": [
|
|
211
|
+
{
|
|
212
|
+
"label": "Scatter Dataset",
|
|
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
|
+
- [View Detail](https://theme-hope.vuejs.press/guide/markdown/chart.html)
|
|
237
|
+
|
|
238
|
+
#### Echarts
|
|
239
|
+
|
|
240
|
+
::: echarts A line chart
|
|
241
|
+
|
|
242
|
+
```json
|
|
243
|
+
{
|
|
244
|
+
"xAxis": {
|
|
245
|
+
"type": "category",
|
|
246
|
+
"data": ["Mon", "Tue", "Wed", "Thu", "Fri", "Sat", "Sun"]
|
|
247
|
+
},
|
|
248
|
+
"yAxis": {
|
|
249
|
+
"type": "value"
|
|
250
|
+
},
|
|
251
|
+
"series": [
|
|
252
|
+
{
|
|
253
|
+
"data": [150, 230, 224, 218, 135, 147, 260],
|
|
254
|
+
"type": "line"
|
|
255
|
+
}
|
|
256
|
+
]
|
|
257
|
+
}
|
|
258
|
+
```
|
|
259
|
+
|
|
260
|
+
:::
|
|
261
|
+
|
|
262
|
+
- [View Detail](https://theme-hope.vuejs.press/guide/markdown/echarts.html)
|
|
263
|
+
|
|
264
|
+
#### Flowchart
|
|
265
|
+
|
|
266
|
+
```flow
|
|
267
|
+
cond=>condition: Process?
|
|
268
|
+
process=>operation: Process
|
|
269
|
+
e=>end: End
|
|
270
|
+
|
|
271
|
+
cond(yes)->process->e
|
|
272
|
+
cond(no)->e
|
|
273
|
+
```
|
|
274
|
+
|
|
275
|
+
- [View Detail](https://theme-hope.vuejs.press/guide/markdown/flowchart.html)
|
|
276
|
+
|
|
277
|
+
#### Mermaid
|
|
278
|
+
|
|
279
|
+
```mermaid
|
|
280
|
+
---
|
|
281
|
+
title: Flowchart
|
|
282
|
+
---
|
|
283
|
+
flowchart TB
|
|
284
|
+
c1-->a2
|
|
285
|
+
subgraph one
|
|
286
|
+
a1-->a2
|
|
287
|
+
end
|
|
288
|
+
subgraph two
|
|
289
|
+
b1-->b2
|
|
290
|
+
end
|
|
291
|
+
subgraph three
|
|
292
|
+
c1-->c2
|
|
293
|
+
end
|
|
294
|
+
one --> two
|
|
295
|
+
three --> two
|
|
296
|
+
two --> c2
|
|
297
|
+
```
|
|
298
|
+
|
|
299
|
+
- [View Detail](https://theme-hope.vuejs.press/guide/markdown/mermaid.html)
|
|
300
|
+
|
|
301
|
+
#### Tex
|
|
302
|
+
|
|
303
|
+
$$
|
|
304
|
+
\frac {\partial^r} {\partial \omega^r} \left(\frac {y^{\omega}} {\omega}\right)
|
|
305
|
+
= \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\}
|
|
306
|
+
$$
|
|
307
|
+
|
|
308
|
+
- [View Detail](https://theme-hope.vuejs.press/guide/markdown/tex.html)
|
|
309
|
+
|
|
310
|
+
#### Include files
|
|
311
|
+
|
|
312
|
+
<!-- @include: ./README.md{11-17} -->
|
|
313
|
+
|
|
314
|
+
- [View Detail](https://theme-hope.vuejs.press/guide/markdown/include.html)
|
|
315
|
+
|
|
316
|
+
#### Code Demo
|
|
317
|
+
|
|
318
|
+
::: normal-demo A normal demo
|
|
319
|
+
|
|
320
|
+
```html
|
|
321
|
+
<h1>VuePress Theme Hope</h1>
|
|
322
|
+
<p>Is <span id="very">very</span> powerful!</p>
|
|
323
|
+
```
|
|
324
|
+
|
|
325
|
+
```js
|
|
326
|
+
document.querySelector("#very").addEventListener("click", () => {
|
|
327
|
+
alert("Very powerful!");
|
|
328
|
+
});
|
|
329
|
+
```
|
|
330
|
+
|
|
331
|
+
```css
|
|
332
|
+
span {
|
|
333
|
+
color: red;
|
|
334
|
+
}
|
|
335
|
+
```
|
|
336
|
+
|
|
337
|
+
:::
|
|
338
|
+
|
|
339
|
+
- [View Detail](https://theme-hope.vuejs.press/guide/markdown/demo.html)
|
|
340
|
+
|
|
341
|
+
#### Stylize
|
|
342
|
+
|
|
343
|
+
Donate Mr.Hope a cup of coffee. _Recommended_
|
|
344
|
+
|
|
345
|
+
- [View Detail](https://theme-hope.vuejs.press/guide/markdown/stylize.html)
|
|
346
|
+
|
|
347
|
+
#### Playground
|
|
348
|
+
|
|
349
|
+
::: playground#ts TS demo
|
|
350
|
+
|
|
351
|
+
@file index.ts
|
|
352
|
+
|
|
353
|
+
```ts
|
|
354
|
+
const msg = "hello world";
|
|
355
|
+
|
|
356
|
+
const speak = (msg: string) => console.log(msg);
|
|
357
|
+
|
|
358
|
+
speak(msg);
|
|
359
|
+
```
|
|
360
|
+
|
|
361
|
+
:::
|
|
362
|
+
|
|
363
|
+
- [View Detail](https://theme-hope.vuejs.press/guide/markdown/playground.html)
|
|
364
|
+
|
|
365
|
+
#### Vue Playground
|
|
366
|
+
|
|
367
|
+
::: vue-playground Vue Playground
|
|
368
|
+
|
|
369
|
+
@file App.vue
|
|
370
|
+
|
|
371
|
+
```vue
|
|
372
|
+
<script setup>
|
|
373
|
+
import { ref } from "vue";
|
|
374
|
+
|
|
375
|
+
const msg = ref("Hello World!");
|
|
376
|
+
</script>
|
|
377
|
+
|
|
378
|
+
<template>
|
|
379
|
+
<h1>{{ msg }}</h1>
|
|
380
|
+
<input v-model="msg" />
|
|
381
|
+
</template>
|
|
382
|
+
```
|
|
383
|
+
|
|
384
|
+
:::
|
|
385
|
+
|
|
386
|
+
- [View Detail](https://theme-hope.vuejs.press/guide/markdown/vue-playground.html)
|
|
387
|
+
|
|
388
|
+
#### Presentation
|
|
389
|
+
|
|
390
|
+
@slidestart
|
|
391
|
+
|
|
392
|
+
## Slide 1
|
|
393
|
+
|
|
394
|
+
A paragraph with some text and a [link](https://mrhope.site)
|
|
395
|
+
|
|
396
|
+
---
|
|
397
|
+
|
|
398
|
+
## Slide 2
|
|
399
|
+
|
|
400
|
+
- Item 1
|
|
401
|
+
- Item 2
|
|
402
|
+
|
|
403
|
+
---
|
|
404
|
+
|
|
405
|
+
## Slide 3.1
|
|
406
|
+
|
|
407
|
+
```js
|
|
408
|
+
const a = 1;
|
|
409
|
+
```
|
|
410
|
+
|
|
411
|
+
--
|
|
412
|
+
|
|
413
|
+
## Slide 3.2
|
|
414
|
+
|
|
415
|
+
$$
|
|
416
|
+
J(\theta_0,\theta_1) = \sum_{i=0}
|
|
417
|
+
$$
|
|
418
|
+
|
|
419
|
+
@slideend
|
|
420
|
+
|
|
421
|
+
- [View Detail](https://theme-hope.vuejs.press/guide/markdown/presentation.html)
|
|
422
|
+
|
|
423
|
+
[md-enhance]: https://theme-hope.vuejs.press/md-enhance/
|
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
---
|
|
2
|
+
# This is the title of the article
|
|
3
|
+
title: Page Config
|
|
4
|
+
# This is the icon of the page
|
|
5
|
+
icon: page
|
|
6
|
+
# This control sidebar order
|
|
7
|
+
order: 1
|
|
8
|
+
# Set author
|
|
9
|
+
author: Ms.Hope
|
|
10
|
+
# Set writing time
|
|
11
|
+
date: 2020-01-01
|
|
12
|
+
# A page can have multiple categories
|
|
13
|
+
category:
|
|
14
|
+
- Guide
|
|
15
|
+
# A page can have multiple tags
|
|
16
|
+
tag:
|
|
17
|
+
- Page config
|
|
18
|
+
- Guide
|
|
19
|
+
# this page is sticky in article list
|
|
20
|
+
sticky: true
|
|
21
|
+
# this page will appear in starred articles
|
|
22
|
+
star: true
|
|
23
|
+
# You can customize footer content
|
|
24
|
+
footer: Footer content for test
|
|
25
|
+
# You can customize copyright content
|
|
26
|
+
copyright: No Copyright
|
|
27
|
+
---
|
|
28
|
+
|
|
29
|
+
Content before `more` comment is regarded as page excerpt.
|
|
30
|
+
|
|
31
|
+
<!-- more -->
|
|
32
|
+
|
|
33
|
+
## Page Information
|
|
34
|
+
|
|
35
|
+
You can set page information in Markdown's Frontmatter.
|
|
36
|
+
|
|
37
|
+
- The author is Ms.Hope.
|
|
38
|
+
- The writing date is January 1, 2020
|
|
39
|
+
- Category is "Guide"
|
|
40
|
+
- Tags are "Page Config" and "Guide"
|
|
41
|
+
|
|
42
|
+
## Page Content
|
|
43
|
+
|
|
44
|
+
You are free to write your Markdown here.
|
|
45
|
+
|
|
46
|
+
::: tip Assets
|
|
47
|
+
|
|
48
|
+
- You can place images besides your Markdown files, but you should use **relative links** (i.e.: starting with `./`) for them.
|
|
49
|
+
|
|
50
|
+
- For images in `.vuepress/public` directory, please use absolute links (i.e.: starting with `/`) for them.
|
|
51
|
+
|
|
52
|
+
:::
|
|
53
|
+
|
|
54
|
+
The theme contains a custom badge:
|
|
55
|
+
|
|
56
|
+
> A dark blue badge text badge at the end of line. <Badge text="Badge text" color="#242378" />
|
|
57
|
+
|
|
58
|
+
## Page Structure
|
|
59
|
+
|
|
60
|
+
This page should contain:
|
|
61
|
+
|
|
62
|
+
- [BreadCrumb](https://theme-hope.vuejs.press/guide/layout/breadcrumb.html)
|
|
63
|
+
- [Title and information](https://theme-hope.vuejs.press/guide/feature/page-info.html)
|
|
64
|
+
- [TOC (Table of Contents)](https://theme-hope.vuejs.press/guide/layout/page.html#header-list)
|
|
65
|
+
- [Meta information including update time and contributors](https://theme-hope.vuejs.press/guide/feature/meta.html)
|
|
66
|
+
- [Comments](https://theme-hope.vuejs.press/guide/feature/comment.html)
|
|
67
|
+
- [Navbar](https://theme-hope.vuejs.press/guide/layout/navbar.html)
|
|
68
|
+
- [Sidebar](https://theme-hope.vuejs.press/guide/layout/sidebar.html)
|
|
69
|
+
- [Footer](https://theme-hope.vuejs.press/guide/layout/footer.html)
|
|
70
|
+
- Back to top button
|
|
71
|
+
|
|
72
|
+
You can customize them in theme options and page frontmatter.
|