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 const zh = defineNavbarConfig([
|
|
4
|
-
"/zh/",
|
|
5
|
-
"/zh/home",
|
|
6
|
-
{ text: "使用指南", icon: "creative", link: "/zh/guide/" },
|
|
7
|
-
{
|
|
8
|
-
text: "博文",
|
|
9
|
-
icon: "edit",
|
|
10
|
-
prefix: "/zh/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,48 +0,0 @@
|
|
|
1
|
-
import { defineSidebarConfig } from "vuepress-theme-hope";
|
|
2
|
-
|
|
3
|
-
export const en = defineSidebarConfig({
|
|
4
|
-
"/": [
|
|
5
|
-
"",
|
|
6
|
-
"home",
|
|
7
|
-
"slide",
|
|
8
|
-
{
|
|
9
|
-
icon: "creative",
|
|
10
|
-
text: "Guide",
|
|
11
|
-
prefix: "guide/",
|
|
12
|
-
link: "guide/",
|
|
13
|
-
children: "structure",
|
|
14
|
-
},
|
|
15
|
-
{
|
|
16
|
-
text: "Articles",
|
|
17
|
-
icon: "note",
|
|
18
|
-
prefix: "posts/",
|
|
19
|
-
children: [
|
|
20
|
-
{
|
|
21
|
-
text: "Articles 1-4",
|
|
22
|
-
icon: "note",
|
|
23
|
-
collapsable: true,
|
|
24
|
-
prefix: "article/",
|
|
25
|
-
children: ["article1", "article2", "article3", "article4"],
|
|
26
|
-
},
|
|
27
|
-
{
|
|
28
|
-
text: "Articles 5-12",
|
|
29
|
-
icon: "note",
|
|
30
|
-
children: [
|
|
31
|
-
{
|
|
32
|
-
text: "Articles 5-8",
|
|
33
|
-
icon: "note",
|
|
34
|
-
collapsable: true,
|
|
35
|
-
prefix: "article/",
|
|
36
|
-
children: ["article5", "article6", "article7", "article8"],
|
|
37
|
-
},
|
|
38
|
-
{
|
|
39
|
-
text: "Articles 9-12",
|
|
40
|
-
icon: "note",
|
|
41
|
-
children: ["article9", "article10", "article11", "article12"],
|
|
42
|
-
},
|
|
43
|
-
],
|
|
44
|
-
},
|
|
45
|
-
],
|
|
46
|
-
},
|
|
47
|
-
],
|
|
48
|
-
});
|
|
@@ -1,48 +0,0 @@
|
|
|
1
|
-
import { defineSidebarConfig } from "vuepress-theme-hope";
|
|
2
|
-
|
|
3
|
-
export const zh = defineSidebarConfig({
|
|
4
|
-
"/zh/": [
|
|
5
|
-
"",
|
|
6
|
-
"home",
|
|
7
|
-
"slide",
|
|
8
|
-
{
|
|
9
|
-
text: "如何使用",
|
|
10
|
-
icon: "creative",
|
|
11
|
-
prefix: "guide/",
|
|
12
|
-
link: "guide/",
|
|
13
|
-
children: "structure",
|
|
14
|
-
},
|
|
15
|
-
{
|
|
16
|
-
text: "文章",
|
|
17
|
-
icon: "note",
|
|
18
|
-
prefix: "posts/",
|
|
19
|
-
children: [
|
|
20
|
-
{
|
|
21
|
-
text: "文章 1-4",
|
|
22
|
-
icon: "note",
|
|
23
|
-
collapsable: true,
|
|
24
|
-
prefix: "article/",
|
|
25
|
-
children: ["article1", "article2", "article3", "article4"],
|
|
26
|
-
},
|
|
27
|
-
{
|
|
28
|
-
text: "文章 5-12",
|
|
29
|
-
icon: "note",
|
|
30
|
-
children: [
|
|
31
|
-
{
|
|
32
|
-
text: "文章 5-8",
|
|
33
|
-
icon: "note",
|
|
34
|
-
collapsable: true,
|
|
35
|
-
prefix: "article/",
|
|
36
|
-
children: ["article5", "article6", "article7", "article8"],
|
|
37
|
-
},
|
|
38
|
-
{
|
|
39
|
-
text: "文章 9-12",
|
|
40
|
-
icon: "note",
|
|
41
|
-
children: ["article9", "article10", "article11", "article12"],
|
|
42
|
-
},
|
|
43
|
-
],
|
|
44
|
-
},
|
|
45
|
-
],
|
|
46
|
-
},
|
|
47
|
-
],
|
|
48
|
-
});
|
|
File without changes
|
|
File without changes
|
|
@@ -1,124 +0,0 @@
|
|
|
1
|
-
import { defineThemeConfig } from "vuepress-theme-hope";
|
|
2
|
-
import * as navbar from "./navbar";
|
|
3
|
-
import * as 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
|
-
pageInfo: ["Author", "Original", "Date", "Category", "Tag", "ReadingTime"],
|
|
22
|
-
|
|
23
|
-
blog: {
|
|
24
|
-
medias: {
|
|
25
|
-
Baidu: "https://example.com",
|
|
26
|
-
Bitbucket: "https://example.com",
|
|
27
|
-
Dingding: "https://example.com",
|
|
28
|
-
Discord: "https://example.com",
|
|
29
|
-
Dribbble: "https://example.com",
|
|
30
|
-
Email: "https://example.com",
|
|
31
|
-
Evernote: "https://example.com",
|
|
32
|
-
Facebook: "https://example.com",
|
|
33
|
-
Flipboard: "https://example.com",
|
|
34
|
-
Gitee: "https://example.com",
|
|
35
|
-
GitHub: "https://example.com",
|
|
36
|
-
Gitlab: "https://example.com",
|
|
37
|
-
Gmail: "https://example.com",
|
|
38
|
-
Instagram: "https://example.com",
|
|
39
|
-
Lines: "https://example.com",
|
|
40
|
-
Linkedin: "https://example.com",
|
|
41
|
-
Pinterest: "https://example.com",
|
|
42
|
-
Pocket: "https://example.com",
|
|
43
|
-
QQ: "https://example.com",
|
|
44
|
-
Qzone: "https://example.com",
|
|
45
|
-
Reddit: "https://example.com",
|
|
46
|
-
Rss: "https://example.com",
|
|
47
|
-
Steam: "https://example.com",
|
|
48
|
-
Twitter: "https://example.com",
|
|
49
|
-
Wechat: "https://example.com",
|
|
50
|
-
Weibo: "https://example.com",
|
|
51
|
-
Whatsapp: "https://example.com",
|
|
52
|
-
Youtube: "https://example.com",
|
|
53
|
-
Zhihu: "https://example.com",
|
|
54
|
-
},
|
|
55
|
-
},
|
|
56
|
-
|
|
57
|
-
locales: {
|
|
58
|
-
"/": {
|
|
59
|
-
// navbar
|
|
60
|
-
navbar: navbar.en,
|
|
61
|
-
|
|
62
|
-
// sidebar
|
|
63
|
-
sidebar: sidebar.en,
|
|
64
|
-
|
|
65
|
-
footer: "Default footer",
|
|
66
|
-
|
|
67
|
-
displayFooter: true,
|
|
68
|
-
|
|
69
|
-
blog: {
|
|
70
|
-
description: "A FrontEnd programmer",
|
|
71
|
-
intro: "/intro.html",
|
|
72
|
-
},
|
|
73
|
-
},
|
|
74
|
-
|
|
75
|
-
/**
|
|
76
|
-
* Chinese locale config
|
|
77
|
-
*/
|
|
78
|
-
"/zh/": {
|
|
79
|
-
// navbar
|
|
80
|
-
navbar: navbar.zh,
|
|
81
|
-
|
|
82
|
-
// sidebar
|
|
83
|
-
sidebar: sidebar.zh,
|
|
84
|
-
|
|
85
|
-
footer: "默认页脚",
|
|
86
|
-
|
|
87
|
-
displayFooter: true,
|
|
88
|
-
|
|
89
|
-
blog: {
|
|
90
|
-
description: "一个前端开发者",
|
|
91
|
-
intro: "/zh/intro.html",
|
|
92
|
-
},
|
|
93
|
-
},
|
|
94
|
-
},
|
|
95
|
-
|
|
96
|
-
encrypt: {
|
|
97
|
-
config: {
|
|
98
|
-
"/guide/encrypt.html": ["1234"],
|
|
99
|
-
"/zh/guide/encrypt.html": ["1234"],
|
|
100
|
-
},
|
|
101
|
-
},
|
|
102
|
-
|
|
103
|
-
plugins: {
|
|
104
|
-
blog: {
|
|
105
|
-
autoExcerpt: true,
|
|
106
|
-
},
|
|
107
|
-
|
|
108
|
-
// you can also use Waline
|
|
109
|
-
comment: {
|
|
110
|
-
type: "giscus",
|
|
111
|
-
repo: "vuepress-theme-hope/giscus-discussions",
|
|
112
|
-
repoId: "R_kgDOG_Pt2A",
|
|
113
|
-
category: "Announcements",
|
|
114
|
-
categoryId: "DIC_kwDOG_Pt2M4COD69",
|
|
115
|
-
},
|
|
116
|
-
|
|
117
|
-
mdEnhance: {
|
|
118
|
-
enableAll: true,
|
|
119
|
-
presentation: {
|
|
120
|
-
plugins: ["highlight", "math", "search", "notes", "zoom"],
|
|
121
|
-
},
|
|
122
|
-
},
|
|
123
|
-
},
|
|
124
|
-
});
|
|
@@ -1,341 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
index: 2
|
|
3
|
-
icon: markdown
|
|
4
|
-
title: Markdown Enhance
|
|
5
|
-
category:
|
|
6
|
-
- Guide
|
|
7
|
-
tag:
|
|
8
|
-
- markdown
|
|
9
|
-
---
|
|
10
|
-
|
|
11
|
-
Every document page in VuePress is rendered by Markdown.
|
|
12
|
-
|
|
13
|
-
You need to build your document or blog page by creating and writing Markdown in the corresponding path.
|
|
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://vuepress-theme-hope.github.io/v2/basic/markdown/README.html) and [Markdown Demo](https://vuepress-theme-hope.github.io/v2/basic/markdown/demo.html).
|
|
20
|
-
|
|
21
|
-
::: info Frontmatter
|
|
22
|
-
|
|
23
|
-
Frontmatter is a important concept in VuePress. If you don’t know it, you need to read [Frontmatter Introduction](https://vuepress-theme-hope.github.io/v2/basic/vuepress/page.html#front-matter).
|
|
24
|
-
|
|
25
|
-
:::
|
|
26
|
-
|
|
27
|
-
## VuePress enhance
|
|
28
|
-
|
|
29
|
-
To enrich document writing, VuePress has extended Markdown syntax.
|
|
30
|
-
|
|
31
|
-
For these extensions, please read [Markdown extensions in VuePress](https://vuepress-theme-hope.github.io/v2/basic/vuepress/markdown.html).
|
|
32
|
-
|
|
33
|
-
## Theme enhance
|
|
34
|
-
|
|
35
|
-
### Enable all
|
|
36
|
-
|
|
37
|
-
You can set `themeconfig.plugins.htmlEnhance.enableAll` to enable all features of the [md-enhance](https://vuepress-theme-hope.github.io/v2/md-enhance/) plugin.
|
|
38
|
-
|
|
39
|
-
```js {3-5}
|
|
40
|
-
module.exports = {
|
|
41
|
-
themeConfig: {
|
|
42
|
-
plugins: {
|
|
43
|
-
mdEnhance: {
|
|
44
|
-
enableAll: true,
|
|
45
|
-
},
|
|
46
|
-
},
|
|
47
|
-
},
|
|
48
|
-
};
|
|
49
|
-
```
|
|
50
|
-
|
|
51
|
-
## New Feature
|
|
52
|
-
|
|
53
|
-
### Custom Container
|
|
54
|
-
|
|
55
|
-
::: v-pre
|
|
56
|
-
|
|
57
|
-
Safely use {{ variable }} in markdown.
|
|
58
|
-
|
|
59
|
-
:::
|
|
60
|
-
|
|
61
|
-
::: info Custom Title
|
|
62
|
-
|
|
63
|
-
A custom information container with `code`, [link](#markdown).
|
|
64
|
-
|
|
65
|
-
```js
|
|
66
|
-
const a = 1;
|
|
67
|
-
```
|
|
68
|
-
|
|
69
|
-
:::
|
|
70
|
-
|
|
71
|
-
::: tip Custom Title
|
|
72
|
-
|
|
73
|
-
A custom tip container
|
|
74
|
-
|
|
75
|
-
:::
|
|
76
|
-
|
|
77
|
-
::: warning Custom Title
|
|
78
|
-
|
|
79
|
-
A custom warning container
|
|
80
|
-
|
|
81
|
-
:::
|
|
82
|
-
|
|
83
|
-
::: danger Custom Title
|
|
84
|
-
|
|
85
|
-
A custom danger container
|
|
86
|
-
|
|
87
|
-
:::
|
|
88
|
-
|
|
89
|
-
::: details Custom Title
|
|
90
|
-
|
|
91
|
-
A custom details container
|
|
92
|
-
|
|
93
|
-
:::
|
|
94
|
-
|
|
95
|
-
:::: details Code
|
|
96
|
-
|
|
97
|
-
```md
|
|
98
|
-
::: v-pre
|
|
99
|
-
|
|
100
|
-
Safely use {{ variable }} in markdown.
|
|
101
|
-
|
|
102
|
-
:::
|
|
103
|
-
|
|
104
|
-
::: info Custom Title
|
|
105
|
-
|
|
106
|
-
A custom information container
|
|
107
|
-
|
|
108
|
-
:::
|
|
109
|
-
|
|
110
|
-
::: tip Custom Title
|
|
111
|
-
|
|
112
|
-
A custom tip container
|
|
113
|
-
|
|
114
|
-
:::
|
|
115
|
-
|
|
116
|
-
::: warning Custom Title
|
|
117
|
-
|
|
118
|
-
A custom warning container
|
|
119
|
-
|
|
120
|
-
:::
|
|
121
|
-
|
|
122
|
-
::: danger Custom Title
|
|
123
|
-
|
|
124
|
-
A custom danger container
|
|
125
|
-
|
|
126
|
-
:::
|
|
127
|
-
|
|
128
|
-
::: details Custom Title
|
|
129
|
-
|
|
130
|
-
A custom details container
|
|
131
|
-
|
|
132
|
-
:::
|
|
133
|
-
```
|
|
134
|
-
|
|
135
|
-
::::
|
|
136
|
-
|
|
137
|
-
### CodeGroup
|
|
138
|
-
|
|
139
|
-
:::: code-group
|
|
140
|
-
|
|
141
|
-
::: code-group-item yarn
|
|
142
|
-
|
|
143
|
-
```bash
|
|
144
|
-
yarn add -D vuepress-theme-hope
|
|
145
|
-
```
|
|
146
|
-
|
|
147
|
-
:::
|
|
148
|
-
|
|
149
|
-
::: code-group-item npm:active
|
|
150
|
-
|
|
151
|
-
```bash
|
|
152
|
-
npm i -D vuepress-theme-hope
|
|
153
|
-
```
|
|
154
|
-
|
|
155
|
-
:::
|
|
156
|
-
|
|
157
|
-
::::
|
|
158
|
-
|
|
159
|
-
- [View Detail](https://vuepress-theme-hope.github.io/v2/guide/markdown/code-group.html)
|
|
160
|
-
|
|
161
|
-
### Superscript and Subscript
|
|
162
|
-
|
|
163
|
-
19^th^ H~2~O
|
|
164
|
-
|
|
165
|
-
- [View Detail](https://vuepress-theme-hope.github.io/v2/guide/markdown/sup-sub.html)
|
|
166
|
-
|
|
167
|
-
### Align
|
|
168
|
-
|
|
169
|
-
::: center
|
|
170
|
-
|
|
171
|
-
I am center
|
|
172
|
-
|
|
173
|
-
:::
|
|
174
|
-
|
|
175
|
-
::: right
|
|
176
|
-
|
|
177
|
-
I am right align
|
|
178
|
-
|
|
179
|
-
:::
|
|
180
|
-
|
|
181
|
-
- [View Detail](https://vuepress-theme-hope.github.io/v2/guide/markdown/align.html)
|
|
182
|
-
|
|
183
|
-
### Footnote
|
|
184
|
-
|
|
185
|
-
This text has footnote[^first].
|
|
186
|
-
|
|
187
|
-
[^first]: This is footnote content
|
|
188
|
-
|
|
189
|
-
- [View Detail](https://vuepress-theme-hope.github.io/v2/guide/markdown/footnote.html)
|
|
190
|
-
|
|
191
|
-
### Mark
|
|
192
|
-
|
|
193
|
-
You can mark ==important words== .
|
|
194
|
-
|
|
195
|
-
- [View Detail](https://vuepress-theme-hope.github.io/v2/guide/markdown/mark.html)
|
|
196
|
-
|
|
197
|
-
### Tasklist
|
|
198
|
-
|
|
199
|
-
- [x] Plan A
|
|
200
|
-
- [ ] Plan B
|
|
201
|
-
|
|
202
|
-
- [View Detail](https://vuepress-theme-hope.github.io/v2/guide/markdown/tasklist.html)
|
|
203
|
-
|
|
204
|
-
### Chart
|
|
205
|
-
|
|
206
|
-
::: chart A Scatter Chart
|
|
207
|
-
|
|
208
|
-
```json
|
|
209
|
-
{
|
|
210
|
-
"type": "scatter",
|
|
211
|
-
"data": {
|
|
212
|
-
"datasets": [
|
|
213
|
-
{
|
|
214
|
-
"label": "Scatter Dataset",
|
|
215
|
-
"data": [
|
|
216
|
-
{ "x": -10, "y": 0 },
|
|
217
|
-
{ "x": 0, "y": 10 },
|
|
218
|
-
{ "x": 10, "y": 5 },
|
|
219
|
-
{ "x": 0.5, "y": 5.5 }
|
|
220
|
-
],
|
|
221
|
-
"backgroundColor": "rgb(255, 99, 132)"
|
|
222
|
-
}
|
|
223
|
-
]
|
|
224
|
-
},
|
|
225
|
-
"options": {
|
|
226
|
-
"scales": {
|
|
227
|
-
"x": {
|
|
228
|
-
"type": "linear",
|
|
229
|
-
"position": "bottom"
|
|
230
|
-
}
|
|
231
|
-
}
|
|
232
|
-
}
|
|
233
|
-
}
|
|
234
|
-
```
|
|
235
|
-
|
|
236
|
-
:::
|
|
237
|
-
|
|
238
|
-
- [View Detail](<[chart.md](https://vuepress-theme-hope.github.io/v2/guide/markdown/chart.html)>)
|
|
239
|
-
|
|
240
|
-
### Flowchart
|
|
241
|
-
|
|
242
|
-
```flow
|
|
243
|
-
cond=>condition: Process?
|
|
244
|
-
process=>operation: Process
|
|
245
|
-
e=>end: End
|
|
246
|
-
|
|
247
|
-
cond(yes)->process->e
|
|
248
|
-
cond(no)->e
|
|
249
|
-
```
|
|
250
|
-
|
|
251
|
-
- [View Detail](https://vuepress-theme-hope.github.io/v2/guide/markdown/flowchart.html)
|
|
252
|
-
|
|
253
|
-
### Mermaid
|
|
254
|
-
|
|
255
|
-
```mermaid
|
|
256
|
-
flowchart TB
|
|
257
|
-
c1-->a2
|
|
258
|
-
subgraph one
|
|
259
|
-
a1-->a2
|
|
260
|
-
end
|
|
261
|
-
subgraph two
|
|
262
|
-
b1-->b2
|
|
263
|
-
end
|
|
264
|
-
subgraph three
|
|
265
|
-
c1-->c2
|
|
266
|
-
end
|
|
267
|
-
one --> two
|
|
268
|
-
three --> two
|
|
269
|
-
two --> c2
|
|
270
|
-
```
|
|
271
|
-
|
|
272
|
-
- [View Detail](https://vuepress-theme-hope.github.io/v2/guide/markdown/mermaid.html)
|
|
273
|
-
|
|
274
|
-
### Tex
|
|
275
|
-
|
|
276
|
-
$$
|
|
277
|
-
\frac {\partial^r} {\partial \omega^r} \left(\frac {y^{\omega}} {\omega}\right)
|
|
278
|
-
= \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\}
|
|
279
|
-
$$
|
|
280
|
-
|
|
281
|
-
- [View Detail](https://vuepress-theme-hope.github.io/v2/guide/markdown/tex.html)
|
|
282
|
-
|
|
283
|
-
### Code Demo
|
|
284
|
-
|
|
285
|
-
::: demo A normal demo
|
|
286
|
-
|
|
287
|
-
```html
|
|
288
|
-
<h1>VuePress Theme Hope</h1>
|
|
289
|
-
<p>Is <span id="very">very</span> powerful!</p>
|
|
290
|
-
```
|
|
291
|
-
|
|
292
|
-
```js
|
|
293
|
-
document.querySelector("#very").addEventListener("click", () => {
|
|
294
|
-
alert("Very powerful!");
|
|
295
|
-
});
|
|
296
|
-
```
|
|
297
|
-
|
|
298
|
-
```css
|
|
299
|
-
span {
|
|
300
|
-
color: red;
|
|
301
|
-
}
|
|
302
|
-
```
|
|
303
|
-
|
|
304
|
-
:::
|
|
305
|
-
|
|
306
|
-
- [View Detail](https://vuepress-theme-hope.github.io/v2/guide/markdown/demo.html)
|
|
307
|
-
|
|
308
|
-
### Presentation
|
|
309
|
-
|
|
310
|
-
@slidestart
|
|
311
|
-
|
|
312
|
-
## Slide 1
|
|
313
|
-
|
|
314
|
-
A paragraph with some text and a [link](https://mrhope.site)
|
|
315
|
-
|
|
316
|
-
---
|
|
317
|
-
|
|
318
|
-
## Slide 2
|
|
319
|
-
|
|
320
|
-
- Item 1
|
|
321
|
-
- Item 2
|
|
322
|
-
|
|
323
|
-
---
|
|
324
|
-
|
|
325
|
-
## Slide 3.1
|
|
326
|
-
|
|
327
|
-
```js
|
|
328
|
-
const a = 1;
|
|
329
|
-
```
|
|
330
|
-
|
|
331
|
-
--
|
|
332
|
-
|
|
333
|
-
## Slide 3.2
|
|
334
|
-
|
|
335
|
-
$$
|
|
336
|
-
J(\theta_0,\theta_1) = \sum_{i=0}
|
|
337
|
-
$$
|
|
338
|
-
|
|
339
|
-
@slideend
|
|
340
|
-
|
|
341
|
-
- [View Detail](https://vuepress-theme-hope.github.io/v2/guide/markdown/presentation.html)
|
|
@@ -1,66 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
# This control sidebar index
|
|
3
|
-
index: 1
|
|
4
|
-
# This is the icon of the page
|
|
5
|
-
icon: page
|
|
6
|
-
# This is the title of the article
|
|
7
|
-
title: page config
|
|
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 aricle channel in home page
|
|
22
|
-
star: true
|
|
23
|
-
# You can customize the footer
|
|
24
|
-
footer: Footer content for test
|
|
25
|
-
---
|
|
26
|
-
|
|
27
|
-
Content before `more` comment is regarded as page excerpt.
|
|
28
|
-
|
|
29
|
-
<!-- more -->
|
|
30
|
-
|
|
31
|
-
## Page information
|
|
32
|
-
|
|
33
|
-
You can set page information in Markdown’s Frontmatter.
|
|
34
|
-
|
|
35
|
-
- The author is set to Ms.Hope.
|
|
36
|
-
|
|
37
|
-
- The writing time should be January 1, 2020
|
|
38
|
-
|
|
39
|
-
- Category is "Guide"
|
|
40
|
-
|
|
41
|
-
- Tags are "Page Config" and "Guide"
|
|
42
|
-
|
|
43
|
-
## Page content
|
|
44
|
-
|
|
45
|
-
You are free to write your Markdown here.
|
|
46
|
-
|
|
47
|
-
::: tip
|
|
48
|
-
|
|
49
|
-
- Please use the relative link `./` for pictures in the Markdown folder.
|
|
50
|
-
|
|
51
|
-
- For pictures in `.vuepress/public` folder, please use absolute link `/` for reference
|
|
52
|
-
|
|
53
|
-
:::
|
|
54
|
-
|
|
55
|
-
The theme contains a custom badge:
|
|
56
|
-
|
|
57
|
-
> A dark blue badge text badge at the end of line. <Badge text="Badge text" color="#242378" />
|
|
58
|
-
|
|
59
|
-
## Page structure
|
|
60
|
-
|
|
61
|
-
This page should contain:
|
|
62
|
-
|
|
63
|
-
- Back to top button
|
|
64
|
-
- Route navigation
|
|
65
|
-
- Comments
|
|
66
|
-
- Footer
|