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
|
@@ -1,52 +0,0 @@
|
|
|
1
|
-
import { defineNavbarConfig } from "vuepress-theme-hope";
|
|
2
|
-
|
|
3
|
-
export default defineNavbarConfig([
|
|
4
|
-
"/",
|
|
5
|
-
"/home",
|
|
6
|
-
{ text: "使用指南", icon: "creative", link: "/guide/" },
|
|
7
|
-
{
|
|
8
|
-
text: "博文",
|
|
9
|
-
icon: "edit",
|
|
10
|
-
prefix: "/posts/",
|
|
11
|
-
children: [
|
|
12
|
-
{
|
|
13
|
-
text: "文章 1-4",
|
|
14
|
-
icon: "edit",
|
|
15
|
-
prefix: "article/",
|
|
16
|
-
children: [
|
|
17
|
-
{ text: "文章 1", icon: "edit", link: "article1" },
|
|
18
|
-
{ text: "文章 2", icon: "edit", link: "article2" },
|
|
19
|
-
"article3",
|
|
20
|
-
"article4",
|
|
21
|
-
],
|
|
22
|
-
},
|
|
23
|
-
{
|
|
24
|
-
text: "文章 5-12",
|
|
25
|
-
icon: "edit",
|
|
26
|
-
children: [
|
|
27
|
-
{
|
|
28
|
-
text: "文章 5",
|
|
29
|
-
icon: "edit",
|
|
30
|
-
link: "article/article5",
|
|
31
|
-
},
|
|
32
|
-
{
|
|
33
|
-
text: "文章 6",
|
|
34
|
-
icon: "edit",
|
|
35
|
-
link: "article/article6",
|
|
36
|
-
},
|
|
37
|
-
"article/article7",
|
|
38
|
-
"article/article8",
|
|
39
|
-
],
|
|
40
|
-
},
|
|
41
|
-
{ text: "文章 9", icon: "edit", link: "article9" },
|
|
42
|
-
{ text: "文章 10", icon: "edit", link: "article10" },
|
|
43
|
-
"article11",
|
|
44
|
-
"article12",
|
|
45
|
-
],
|
|
46
|
-
},
|
|
47
|
-
{
|
|
48
|
-
text: "主题文档",
|
|
49
|
-
icon: "note",
|
|
50
|
-
link: "https://vuepress-theme-hope.github.io/v2/zh/",
|
|
51
|
-
},
|
|
52
|
-
]);
|
|
Binary file
|
|
Binary file
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
<svg xmlns="http://www.w3.org/2000/svg" width="1200" height="1200" class="icon" viewBox="0 0 3280.944 2800"><path fill="#41b883" d="M1645.332 601.004h375.675L1081.82 2238.478 142.636 601.004h718.477l220.708 379.704 216.013-379.704z"/><path fill="#41b883" d="M142.636 601.004l939.185 1637.474 939.186-1637.474h-375.675l-563.51 982.484-568.208-982.484z"/><path fill="#35495e" d="M513.188 601.004l568.207 987.23 563.511-987.23h-347.498l-216.013 379.704-220.708-379.704zM1607.792 1311.83l594.678 2.293 187.353-316.325-598.662 2.292zM2198.506 1909.57C2867.436 732.7 2939.502 605.426 2937.874 603.78c-.715-.723 45.303-1.314 102.262-1.314s103.562.428 103.562.951c0 .523-208.57 367.978-463.491 816.567L2216.715 2235.6l-102.1.596-102.102.596z"/><path fill="#41b883" d="M1680.563 2233.328c0-1.34 168.208-298.145 440.375-777.048a4135645.775 4135645.775 0 00337.619-594.19l146.13-257.25 170.746-.04 170.747-.04-5.536 9.741c-3.044 5.358-43.727 77.302-90.407 159.875-85.356 150.992-337.562 595.163-656.602 1156.373l-172 302.559-170.536.588c-93.795.322-170.536.069-170.536-.567z"/><path fill="#35495e" d="M1429.783 1625.351l594.679 2.292 187.353-316.324-598.662 2.292z"/><path fill="#41b883" d="M1524.207 1464.903l608.285 6.877 173.746-320.909h-619.072z"/></svg>
|
|
@@ -1,46 +0,0 @@
|
|
|
1
|
-
import { defineSidebarConfig } from "vuepress-theme-hope";
|
|
2
|
-
|
|
3
|
-
export default defineSidebarConfig([
|
|
4
|
-
"",
|
|
5
|
-
"home",
|
|
6
|
-
"slide",
|
|
7
|
-
{
|
|
8
|
-
text: "如何使用",
|
|
9
|
-
icon: "creative",
|
|
10
|
-
prefix: "guide/",
|
|
11
|
-
link: "guide/",
|
|
12
|
-
children: "structure",
|
|
13
|
-
},
|
|
14
|
-
{
|
|
15
|
-
text: "文章",
|
|
16
|
-
icon: "note",
|
|
17
|
-
prefix: "posts/",
|
|
18
|
-
children: [
|
|
19
|
-
{
|
|
20
|
-
text: "文章 1-4",
|
|
21
|
-
icon: "note",
|
|
22
|
-
collapsable: true,
|
|
23
|
-
prefix: "article/",
|
|
24
|
-
children: ["article1", "article2", "article3", "article4"],
|
|
25
|
-
},
|
|
26
|
-
{
|
|
27
|
-
text: "文章 5-12",
|
|
28
|
-
icon: "note",
|
|
29
|
-
children: [
|
|
30
|
-
{
|
|
31
|
-
text: "文章 5-8",
|
|
32
|
-
icon: "note",
|
|
33
|
-
collapsable: true,
|
|
34
|
-
prefix: "article/",
|
|
35
|
-
children: ["article5", "article6", "article7", "article8"],
|
|
36
|
-
},
|
|
37
|
-
{
|
|
38
|
-
text: "文章 9-12",
|
|
39
|
-
icon: "note",
|
|
40
|
-
children: ["article9", "article10", "article11", "article12"],
|
|
41
|
-
},
|
|
42
|
-
],
|
|
43
|
-
},
|
|
44
|
-
],
|
|
45
|
-
},
|
|
46
|
-
]);
|
|
File without changes
|
|
File without changes
|
|
@@ -1,96 +0,0 @@
|
|
|
1
|
-
import { defineThemeConfig } from "vuepress-theme-hope";
|
|
2
|
-
import navbar from "./navbar";
|
|
3
|
-
import sidebar from "./sidebar";
|
|
4
|
-
|
|
5
|
-
export default defineThemeConfig({
|
|
6
|
-
hostname: "https://vuepress-theme-hope-v2-demo.mrhope.site",
|
|
7
|
-
|
|
8
|
-
author: {
|
|
9
|
-
name: "Mr.Hope",
|
|
10
|
-
url: "https://mrhope.site",
|
|
11
|
-
},
|
|
12
|
-
|
|
13
|
-
iconPrefix: "iconfont icon-",
|
|
14
|
-
|
|
15
|
-
logo: "/logo.svg",
|
|
16
|
-
|
|
17
|
-
repo: "https://github.com/vuepress-theme-hope/vuepress-theme-hope",
|
|
18
|
-
|
|
19
|
-
docsDir: "demo/src",
|
|
20
|
-
|
|
21
|
-
// navbar
|
|
22
|
-
navbar: navbar,
|
|
23
|
-
|
|
24
|
-
// sidebar
|
|
25
|
-
sidebar: sidebar,
|
|
26
|
-
|
|
27
|
-
footer: "默认页脚",
|
|
28
|
-
|
|
29
|
-
displayFooter: true,
|
|
30
|
-
|
|
31
|
-
pageInfo: ["Author", "Original", "Date", "Category", "Tag", "ReadingTime"],
|
|
32
|
-
|
|
33
|
-
blog: {
|
|
34
|
-
description: "一个前端开发者",
|
|
35
|
-
intro: "/intro.html",
|
|
36
|
-
medias: {
|
|
37
|
-
Baidu: "https://example.com",
|
|
38
|
-
Bitbucket: "https://example.com",
|
|
39
|
-
Dingding: "https://example.com",
|
|
40
|
-
Discord: "https://example.com",
|
|
41
|
-
Dribbble: "https://example.com",
|
|
42
|
-
Email: "https://example.com",
|
|
43
|
-
Evernote: "https://example.com",
|
|
44
|
-
Facebook: "https://example.com",
|
|
45
|
-
Flipboard: "https://example.com",
|
|
46
|
-
Gitee: "https://example.com",
|
|
47
|
-
GitHub: "https://example.com",
|
|
48
|
-
Gitlab: "https://example.com",
|
|
49
|
-
Gmail: "https://example.com",
|
|
50
|
-
Instagram: "https://example.com",
|
|
51
|
-
Lines: "https://example.com",
|
|
52
|
-
Linkedin: "https://example.com",
|
|
53
|
-
Pinterest: "https://example.com",
|
|
54
|
-
Pocket: "https://example.com",
|
|
55
|
-
QQ: "https://example.com",
|
|
56
|
-
Qzone: "https://example.com",
|
|
57
|
-
Reddit: "https://example.com",
|
|
58
|
-
Rss: "https://example.com",
|
|
59
|
-
Steam: "https://example.com",
|
|
60
|
-
Twitter: "https://example.com",
|
|
61
|
-
Wechat: "https://example.com",
|
|
62
|
-
Weibo: "https://example.com",
|
|
63
|
-
Whatsapp: "https://example.com",
|
|
64
|
-
Youtube: "https://example.com",
|
|
65
|
-
Zhihu: "https://example.com",
|
|
66
|
-
},
|
|
67
|
-
},
|
|
68
|
-
|
|
69
|
-
encrypt: {
|
|
70
|
-
config: {
|
|
71
|
-
"/guide/encrypt.html": ["1234"],
|
|
72
|
-
},
|
|
73
|
-
},
|
|
74
|
-
|
|
75
|
-
plugins: {
|
|
76
|
-
blog: {
|
|
77
|
-
autoExcerpt: true,
|
|
78
|
-
},
|
|
79
|
-
|
|
80
|
-
// 你也可以使用 Waline
|
|
81
|
-
comment: {
|
|
82
|
-
type: "giscus",
|
|
83
|
-
repo: "vuepress-theme-hope/giscus-discussions",
|
|
84
|
-
repoId: "R_kgDOG_Pt2A",
|
|
85
|
-
category: "Announcements",
|
|
86
|
-
categoryId: "DIC_kwDOG_Pt2M4COD69",
|
|
87
|
-
},
|
|
88
|
-
|
|
89
|
-
mdEnhance: {
|
|
90
|
-
enableAll: true,
|
|
91
|
-
presentation: {
|
|
92
|
-
plugins: ["highlight", "math", "search", "notes", "zoom"],
|
|
93
|
-
},
|
|
94
|
-
},
|
|
95
|
-
},
|
|
96
|
-
});
|
package/template/zh-CN/README.md
DELETED
|
@@ -1,48 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
home: true
|
|
3
|
-
layout: Blog
|
|
4
|
-
icon: home
|
|
5
|
-
title: 博客主页
|
|
6
|
-
heroImage: /logo.svg
|
|
7
|
-
heroText: 你博客的名称
|
|
8
|
-
heroFullScreen: true
|
|
9
|
-
tagline: 你可以在这里放置你的口号与标语
|
|
10
|
-
projects:
|
|
11
|
-
- icon: project
|
|
12
|
-
name: 项目名称
|
|
13
|
-
desc: 项目详细描述
|
|
14
|
-
link: https://你的项目链接
|
|
15
|
-
|
|
16
|
-
- icon: link
|
|
17
|
-
name: 链接名称
|
|
18
|
-
desc: 链接详细描述
|
|
19
|
-
link: https://链接地址
|
|
20
|
-
|
|
21
|
-
- icon: book
|
|
22
|
-
name: 书籍名称
|
|
23
|
-
desc: 书籍详细描述
|
|
24
|
-
link: https://你的书籍链接
|
|
25
|
-
|
|
26
|
-
- icon: article
|
|
27
|
-
name: 文章名称
|
|
28
|
-
desc: 文章详细描述
|
|
29
|
-
link: https://你的文章链接
|
|
30
|
-
|
|
31
|
-
- icon: friend
|
|
32
|
-
name: 伙伴名称
|
|
33
|
-
desc: 伙伴详细介绍
|
|
34
|
-
link: https://你的伙伴链接
|
|
35
|
-
|
|
36
|
-
- icon: /logo.svg
|
|
37
|
-
name: 自定义项目
|
|
38
|
-
desc: 自定义详细介绍
|
|
39
|
-
link: https://你的自定义链接
|
|
40
|
-
|
|
41
|
-
footer: 自定义你的页脚文字
|
|
42
|
-
---
|
|
43
|
-
|
|
44
|
-
这是一个博客主页。
|
|
45
|
-
|
|
46
|
-
要使用此布局,你应该在页面前端设置 `layout: Blog` 和 `home: true`。
|
|
47
|
-
|
|
48
|
-
相关配置文档请见 [博客主页](https://vuepress-theme-hope.github.io/v2/zh/guide/blog/home/)。
|
|
@@ -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
|
-
- 页脚
|