create-vuepress-theme-hope 2.0.0-beta.1 → 2.0.0-beta.12

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 (58) hide show
  1. package/CHANGELOG.md +50 -0
  2. package/lib/node/index.js.map +1 -1
  3. package/package.json +3 -3
  4. package/src/node/i18n.ts +2 -0
  5. package/src/node/index.ts +3 -0
  6. package/template/en-US/.vuepress/sidebar.ts +1 -2
  7. package/template/en-US/.vuepress/themeConfig.ts +8 -62
  8. package/template/en-US/guide/README.md +1 -0
  9. package/template/en-US/guide/disable.md +1 -0
  10. package/template/en-US/guide/markdown.md +37 -0
  11. package/template/en-US/guide/page.md +6 -0
  12. package/template/en-US/home.md +1 -1
  13. package/template/i18n/.vuepress/sidebar/en.ts +1 -2
  14. package/template/i18n/.vuepress/sidebar/zh.ts +2 -1
  15. package/template/i18n/.vuepress/themeConfig.ts +8 -71
  16. package/template/i18n/guide/README.md +1 -0
  17. package/template/i18n/guide/disable.md +1 -0
  18. package/template/i18n/guide/markdown.md +37 -0
  19. package/template/i18n/guide/page.md +6 -0
  20. package/template/i18n/home.md +1 -1
  21. package/template/i18n/zh/README.md +1 -1
  22. package/template/i18n/zh/guide/README.md +1 -0
  23. package/template/i18n/zh/guide/disable.md +1 -0
  24. package/template/i18n/zh/guide/markdown.md +37 -0
  25. package/template/i18n/zh/guide/page.md +6 -0
  26. package/template/i18n/zh/home.md +2 -2
  27. package/template/zh-CN/.vuepress/sidebar.ts +2 -1
  28. package/template/zh-CN/.vuepress/themeConfig.ts +7 -66
  29. package/template/zh-CN/README.md +1 -1
  30. package/template/zh-CN/guide/README.md +1 -0
  31. package/template/zh-CN/guide/disable.md +1 -0
  32. package/template/zh-CN/guide/markdown.md +37 -0
  33. package/template/zh-CN/guide/page.md +6 -0
  34. package/template/zh-CN/home.md +2 -2
  35. package/template/en-US/.vuepress/public/assets/icon/apple-icon-152.png +0 -0
  36. package/template/en-US/.vuepress/public/assets/icon/chrome-192.png +0 -0
  37. package/template/en-US/.vuepress/public/assets/icon/chrome-512.png +0 -0
  38. package/template/en-US/.vuepress/public/assets/icon/chrome-mask-192.png +0 -0
  39. package/template/en-US/.vuepress/public/assets/icon/chrome-mask-512.png +0 -0
  40. package/template/en-US/.vuepress/public/assets/icon/guide-maskable.png +0 -0
  41. package/template/en-US/.vuepress/public/assets/icon/guide-monochrome.png +0 -0
  42. package/template/en-US/.vuepress/public/assets/icon/ms-icon-144.png +0 -0
  43. package/template/i18n/.vuepress/public/assets/icon/apple-icon-152.png +0 -0
  44. package/template/i18n/.vuepress/public/assets/icon/chrome-192.png +0 -0
  45. package/template/i18n/.vuepress/public/assets/icon/chrome-512.png +0 -0
  46. package/template/i18n/.vuepress/public/assets/icon/chrome-mask-192.png +0 -0
  47. package/template/i18n/.vuepress/public/assets/icon/chrome-mask-512.png +0 -0
  48. package/template/i18n/.vuepress/public/assets/icon/guide-maskable.png +0 -0
  49. package/template/i18n/.vuepress/public/assets/icon/guide-monochrome.png +0 -0
  50. package/template/i18n/.vuepress/public/assets/icon/ms-icon-144.png +0 -0
  51. package/template/zh-CN/.vuepress/public/assets/icon/apple-icon-152.png +0 -0
  52. package/template/zh-CN/.vuepress/public/assets/icon/chrome-192.png +0 -0
  53. package/template/zh-CN/.vuepress/public/assets/icon/chrome-512.png +0 -0
  54. package/template/zh-CN/.vuepress/public/assets/icon/chrome-mask-192.png +0 -0
  55. package/template/zh-CN/.vuepress/public/assets/icon/chrome-mask-512.png +0 -0
  56. package/template/zh-CN/.vuepress/public/assets/icon/guide-maskable.png +0 -0
  57. package/template/zh-CN/.vuepress/public/assets/icon/guide-monochrome.png +0 -0
  58. package/template/zh-CN/.vuepress/public/assets/icon/ms-icon-144.png +0 -0
package/CHANGELOG.md CHANGED
@@ -3,6 +3,56 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
+ # [2.0.0-beta.12](https://github.com/vuepress-theme-hope/vuepress-theme-hope/compare/v2.0.0-beta.11...v2.0.0-beta.12) (2022-03-12)
7
+
8
+ ### Features
9
+
10
+ - **md-enhance:** new `chart` optoin ([6742945](https://github.com/vuepress-theme-hope/vuepress-theme-hope/commit/6742945d802e21babb1f3b2b1dfc797c7bd17877))
11
+
12
+ # [2.0.0-beta.11](https://github.com/vuepress-theme-hope/vuepress-theme-hope/compare/v2.0.0-beta.10...v2.0.0-beta.11) (2022-03-12)
13
+
14
+ **Note:** Version bump only for package create-vuepress-theme-hope
15
+
16
+ # [2.0.0-beta.10](https://github.com/vuepress-theme-hope/vuepress-theme-hope/compare/v2.0.0-beta.9...v2.0.0-beta.10) (2022-03-11)
17
+
18
+ **Note:** Version bump only for package create-vuepress-theme-hope
19
+
20
+ # [2.0.0-beta.9](https://github.com/vuepress-theme-hope/vuepress-theme-hope/compare/v2.0.0-beta.8...v2.0.0-beta.9) (2022-03-10)
21
+
22
+ **Note:** Version bump only for package create-vuepress-theme-hope
23
+
24
+ # [2.0.0-beta.8](https://github.com/vuepress-theme-hope/vuepress-theme-hope/compare/v2.0.0-beta.7...v2.0.0-beta.8) (2022-03-10)
25
+
26
+ **Note:** Version bump only for package create-vuepress-theme-hope
27
+
28
+ # [2.0.0-beta.7](https://github.com/vuepress-theme-hope/vuepress-theme-hope/compare/v2.0.0-beta.6...v2.0.0-beta.7) (2022-03-09)
29
+
30
+ **Note:** Version bump only for package create-vuepress-theme-hope
31
+
32
+ # [2.0.0-beta.6](https://github.com/vuepress-theme-hope/vuepress-theme-hope/compare/v2.0.0-beta.5...v2.0.0-beta.6) (2022-03-08)
33
+
34
+ **Note:** Version bump only for package create-vuepress-theme-hope
35
+
36
+ # [2.0.0-beta.5](https://github.com/vuepress-theme-hope/vuepress-theme-hope/compare/v2.0.0-beta.4...v2.0.0-beta.5) (2022-03-07)
37
+
38
+ **Note:** Version bump only for package create-vuepress-theme-hope
39
+
40
+ # [2.0.0-beta.4](https://github.com/vuepress-theme-hope/vuepress-theme-hope/compare/v2.0.0-beta.3...v2.0.0-beta.4) (2022-03-06)
41
+
42
+ ### Features
43
+
44
+ - **create:** update template ([fc6c344](https://github.com/vuepress-theme-hope/vuepress-theme-hope/commit/fc6c344ed6ff5d546646c178fe3a401ee607e35b))
45
+
46
+ # [2.0.0-beta.3](https://github.com/vuepress-theme-hope/vuepress-theme-hope/compare/v2.0.0-beta.2...v2.0.0-beta.3) (2022-03-05)
47
+
48
+ ### Features
49
+
50
+ - **create:** remove pwa feature in template ([5574303](https://github.com/vuepress-theme-hope/vuepress-theme-hope/commit/5574303cffe5750945fe5cbaa659855eb539af01))
51
+
52
+ # [2.0.0-beta.2](https://github.com/vuepress-theme-hope/vuepress-theme-hope/compare/v2.0.0-beta.1...v2.0.0-beta.2) (2022-03-04)
53
+
54
+ **Note:** Version bump only for package create-vuepress-theme-hope
55
+
6
56
  # [2.0.0-beta.1](https://github.com/vuepress-theme-hope/vuepress-theme-hope/compare/v2.0.0-beta.0...v2.0.0-beta.1) (2022-03-04)
7
57
 
8
58
  **Note:** Version bump only for package create-vuepress-theme-hope
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sources":["../../src/node/deepAssign.ts","../../src/node/copy.ts","../../src/node/checkVersion.ts","../../src/node/i18n.ts","../../src/node/registry.ts","../../src/node/index.ts","../../src/node/hasYarn.ts"],"sourcesContent":[null,null,null,null,null,null,null],"names":["deepAssign","originObject","assignObjects","length","assignObject","shift","Object","keys","forEach","property","Array","isArray","ensureDirExistSync","dirPath","readdirSync","err","mkdirSync","copyFile","srcFile","targetFile","targetDir","dirname","rs","createReadStream","ws","createWriteStream","pipe","copyDir","srcDir","withFileTypes","file","isFile","name","isDirectory","checkForNextVersion","packageName","Promise","resolve","reject","get","res","statusCode","body","on","data","JSON","parse","next","Error","i18n","getVersion","createPackage","updatePackage","template","wait","install","success","devServerAsk","devServer","hint","nameMessage","nameError","versionMessage","versionError","descriptionMessage","licenseMessage","i18nMessage","getLanguage","async","language","prompt","type","message","choices","lang","getRegistry","bin","userRegistry","sync","stdout","getUserRegistry","registry","cli","cac","stdio","e","detectYarn","command","action","dir","outputHelp","targetFolder","process","cwd","packageJsonPath","scripts","console","log","devDependencies","vuepress","existsSync","packageContent","readFileSync","encoding","writeFileSync","stringify","default","validate","input","exec","templateFolder","src","target","__dirname","statSync","warn","execa","choise","help","title"],"mappings":";mNAIO,MAAMA,EAAa,CAKxBC,KACGC,KAEH,GAA6B,IAAzBA,EAAcC,OAAc,OAAOF,EAGvC,MAAMG,EAAgBF,EAAcG,SAA0B,GAyB9D,OAvBAC,OAAOC,KAAKH,GAAcI,SAASC,IAEG,iBAA3BR,EAAaQ,IACnBC,MAAMC,QAAQV,EAAaQ,KACM,iBAA3BL,EAAaK,IACnBC,MAAMC,QAAQP,EAAaK,IAGa,iBAA3BL,EAAaK,GACvBC,MAAMC,QAAQP,EAAaK,IAC5BR,EAA4BQ,GAAY,IACnCL,EAAaK,IAGlBR,EAA4BQ,GAAY,IACnCL,EAAaK,IAGpBR,EAA4BQ,GAAYL,EACvCK,GAZFT,EAAWC,EAAaQ,GAAWL,EAAaK,OAgB7CT,EAAWC,KAAiBC,IC/B/BU,EAAsBC,IAC1B,IACEC,cAAYD,GACZ,MAAOE,GACPC,YAAUH,KAIRI,EAAW,CAACC,EAAiBC,KACjC,MAAMC,EAAYC,UAAQF,GAE1BP,EAAmBQ,GAEnB,MAAME,EAAKC,mBAAiBL,GACtBM,EAAKC,oBAAkBN,GAE7BG,EAAGI,KAAKF,IAGJG,EAAU,CAACC,EAAgBR,KAC/BR,EAAmBQ,GAELN,cAAYc,EAAQ,CAAEC,eAAe,IAE7CrB,SAASsB,IACTA,EAAKC,SACPd,EAAS,GAAGW,KAAUE,EAAKE,OAAQ,GAAGZ,KAAaU,EAAKE,QACjDF,EAAKG,eACZN,EAAQ,GAAGC,KAAUE,EAAKE,OAAQ,GAAGZ,KAAaU,EAAKE,YCnChDE,EAAuBC,GAClC,IAAIC,SAAQ,CAACC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EAAQR,mBACjB0C,QAAS,oCAEX,CACE1E,KAAM,UACNuC,KAAM,QACNC,QAASA,EAAQP,eACjByC,QAAS,SAIuBX,QAAAA,EAASG,gBAAAA,GAE7CM,gBACEV,EACA,GAAGjD,KAAK4D,UAAUJ,EAAgB,KAAM,OACxC,CAAEE,SAAU,UAQhB,MAAMtD,KAAEA,SAAeqB,SAAmB,CACxC,CACEtC,KAAM,OACNuC,KAAM,OACNC,QAASA,EAAQN,YACjBO,QAAS,CAAC,MAAO,SAIrBuB,QAAQC,IAAIzB,EAAQnB,UAEpB,MAAMyD,EAA0B,QAAT7D,EAAiB,OAASyB,EJxFjC,IAACqC,EAAaC,EAAbD,EI2Ff1E,UAAQ4E,UAAW,iBAAkBH,GJ3FTE,EI4F5B3E,UAAQuD,QAAQC,MAAOJ,GJ3FvByB,WAASH,GAAK9E,cAAeN,EAAQoF,EAAKC,GACrCE,WAASH,GAAKhF,UAAUd,EAAS8F,EAAKC,GI6F7ChB,QAAQC,IAAIzB,EAAQjB,SACpByC,QAAQmB,KAAK3C,EAAQlB,MAErB,MAAM2B,QAAiBN,EAAYD,EAAME,GAEzCwC,UAAMtC,KAAKF,EAAK,CAAC,UAAW,aAAcK,GAAW,CACnDF,OAAQ,YAGViB,QAAQC,IAAIzB,EAAQhB,SAEpB,MAAM6D,OAAEA,SAAiB/C,SAAiC,CACxD,CACEtC,KAAM,SACNuC,KAAM,OACNC,QAASA,EAAQf,aACjBgB,QAAS,CAAC,MAAO,SAIN,QAAX4C,GACFrB,QAAQC,IAAIzB,EAAQd,iBAEd0D,UAAMxC,EAAK,CAAC,MAAO,YAAa,CACpCG,OAAQ,aAELiB,QAAQC,IAAIzB,EAAQb,SAG/BuB,EAAIoC,MAAK,IAAM,CACb,CACEC,MACE,6EACF7E,KAAM,qDAIVwC,EAAIpC"}
1
+ {"version":3,"file":"index.js","sources":["../../src/node/deepAssign.ts","../../src/node/copy.ts","../../src/node/checkVersion.ts","../../src/node/i18n.ts","../../src/node/registry.ts","../../src/node/index.ts","../../src/node/hasYarn.ts"],"sourcesContent":[null,null,null,null,null,null,null],"names":["deepAssign","originObject","assignObjects","length","assignObject","shift","Object","keys","forEach","property","Array","isArray","ensureDirExistSync","dirPath","readdirSync","err","mkdirSync","copyFile","srcFile","targetFile","targetDir","dirname","rs","createReadStream","ws","createWriteStream","pipe","copyDir","srcDir","withFileTypes","file","isFile","name","isDirectory","checkForNextVersion","packageName","Promise","resolve","reject","get","res","statusCode","body","on","data","JSON","parse","next","Error","i18n","getVersion","createPackage","updatePackage","template","wait","install","success","devServerAsk","devServer","hint","nameMessage","nameError","versionMessage","versionError","descriptionMessage","licenseMessage","i18nMessage","getLanguage","async","language","prompt","type","message","choices","lang","getRegistry","bin","userRegistry","sync","stdout","getUserRegistry","registry","cli","cac","stdio","e","detectYarn","command","action","dir","outputHelp","targetFolder","process","cwd","packageJsonPath","scripts","console","log","devDependencies","vuepress","existsSync","packageContent","readFileSync","encoding","writeFileSync","stringify","default","validate","input","exec","templateFolder","src","target","__dirname","statSync","warn","execa","choise","help","title"],"mappings":";mNAIO,MAAMA,EAAa,CAKxBC,KACGC,KAEH,GAA6B,IAAzBA,EAAcC,OAAc,OAAOF,EAGvC,MAAMG,EAAgBF,EAAcG,SAA0B,GAyB9D,OAvBAC,OAAOC,KAAKH,GAAcI,SAASC,IAEG,iBAA3BR,EAAaQ,IACnBC,MAAMC,QAAQV,EAAaQ,KACM,iBAA3BL,EAAaK,IACnBC,MAAMC,QAAQP,EAAaK,IAGa,iBAA3BL,EAAaK,GACvBC,MAAMC,QAAQP,EAAaK,IAC5BR,EAA4BQ,GAAY,IACnCL,EAAaK,IAGlBR,EAA4BQ,GAAY,IACnCL,EAAaK,IAGpBR,EAA4BQ,GAAYL,EACvCK,GAZFT,EAAWC,EAAaQ,GAAWL,EAAaK,OAgB7CT,EAAWC,KAAiBC,IC/B/BU,EAAsBC,IAC1B,IACEC,EAAWA,YAACD,GACZ,MAAOE,GACPC,EAASA,UAACH,K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AAM2B,QAAiBN,EAAYD,EAAME,GAEzCwC,EAAK,QAACtC,KAAKF,EAAK,CAAC,UAAW,aAAcK,GAAW,CACnDF,OAAQ,YAGViB,QAAQC,IAAIzB,EAAQhB,SAEpB,MAAM6D,OAAEA,SAAiB/C,SAAiC,CACxD,CACEtC,KAAM,SACNuC,KAAM,OACNC,QAASA,EAAQf,aACjBgB,QAAS,CAAC,MAAO,SAIN,QAAX4C,GACFrB,QAAQC,IAAIzB,EAAQd,iBAEd0D,EAAK,QAACxC,EAAK,CAAC,MAAO,YAAa,CACpCG,OAAQ,aAELiB,QAAQC,IAAIzB,EAAQb,SAG/BuB,EAAIoC,MAAK,IAAM,CACb,CACEC,MACE,6EACF7E,KAAM,qDAIVwC,EAAIpC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "create-vuepress-theme-hope",
3
- "version": "2.0.0-beta.1",
3
+ "version": "2.0.0-beta.12",
4
4
  "description": "Create vuepress-theme-hope demo project helper",
5
5
  "keywords": [
6
6
  "create",
@@ -35,7 +35,7 @@
35
35
  "@types/inquirer": "^8.2.0",
36
36
  "cac": "^6.7.12",
37
37
  "execa": "^5.1.1",
38
- "inquirer": "^8.2.0"
38
+ "inquirer": "^8.2.1"
39
39
  },
40
- "gitHead": "59e8708102328b36258b0c8c3d97ed044557cd23"
40
+ "gitHead": "d7282665ad541f61c596aba3de70788a4a52a43f"
41
41
  }
package/src/node/i18n.ts CHANGED
@@ -23,6 +23,7 @@ export interface CreateI18n {
23
23
  }
24
24
 
25
25
  export const i18n: Record<Lang, CreateI18n> = {
26
+ // eslint-disable-next-line @typescript-eslint/naming-convention
26
27
  "zh-CN": {
27
28
  getVersion: "获取依赖的最新版本...",
28
29
  createPackage: "生成 package.json...",
@@ -43,6 +44,7 @@ export const i18n: Record<Lang, CreateI18n> = {
43
44
  licenseMessage: "设置协议",
44
45
  i18nMessage: "项目需要用到多语言么?",
45
46
  },
47
+ // eslint-disable-next-line @typescript-eslint/naming-convention
46
48
  "en-US": {
47
49
  getVersion: "Getting lastest version of deps...",
48
50
  createPackage: "Generating package.json...",
package/src/node/index.ts CHANGED
@@ -24,8 +24,11 @@ cli
24
24
  const targetFolder = resolve(process.cwd(), dir);
25
25
  const packageJsonPath = resolve(process.cwd(), "package.json");
26
26
  const scripts = {
27
+ // eslint-disable-next-line @typescript-eslint/naming-convention
27
28
  "docs:build": `vuepress build ${dir}`,
29
+ // eslint-disable-next-line @typescript-eslint/naming-convention
28
30
  "docs:clean-dev": `vuepress dev ${dir} --clean-cache`,
31
+ // eslint-disable-next-line @typescript-eslint/naming-convention
29
32
  "docs:dev": `vuepress dev ${dir}`,
30
33
  };
31
34
 
@@ -7,10 +7,9 @@ export default defineSidebarConfig([
7
7
  {
8
8
  icon: "creative",
9
9
  text: "Guide",
10
- collapsable: true,
11
10
  prefix: "guide/",
12
11
  link: "guide/",
13
- children: ["page", "markdown", "disable", "encrypt"],
12
+ children: "structure",
14
13
  },
15
14
  {
16
15
  text: "Articles",
@@ -28,6 +28,8 @@ export default defineThemeConfig({
28
28
 
29
29
  displayFooter: true,
30
30
 
31
+ pageInfo: ["Author", "Original", "Date", "Category", "Tag", "ReadingTime"],
32
+
31
33
  blog: {
32
34
  description: "A FrontEnd programmer",
33
35
  intro: "/intro.html",
@@ -75,9 +77,13 @@ export default defineThemeConfig({
75
77
  autoExcerpt: true,
76
78
  },
77
79
 
80
+ // you can also use Waline
78
81
  comment: {
79
- type: "waline",
80
- serverURL: "https://vuepress-theme-hope-comment.vercel.app",
82
+ type: "giscus",
83
+ repo: "vuepress-theme-hope/giscus-discussions",
84
+ repoId: "R_kgDOG_Pt2A",
85
+ category: "Announcements",
86
+ categoryId: "DIC_kwDOG_Pt2M4COD69",
81
87
  },
82
88
 
83
89
  mdEnhance: {
@@ -86,65 +92,5 @@ export default defineThemeConfig({
86
92
  plugins: ["highlight", "math", "search", "notes", "zoom"],
87
93
  },
88
94
  },
89
-
90
- pwa: {
91
- favicon: "/favicon.ico",
92
- cachePic: true,
93
- apple: {
94
- icon: "/assets/icon/apple-icon-152.png",
95
- statusBarColor: "black",
96
- },
97
- msTile: {
98
- image: "/assets/icon/ms-icon-144.png",
99
- color: "#ffffff",
100
- },
101
- manifest: {
102
- icons: [
103
- {
104
- src: "/assets/icon/chrome-mask-512.png",
105
- sizes: "512x512",
106
- purpose: "maskable",
107
- type: "image/png",
108
- },
109
- {
110
- src: "/assets/icon/chrome-mask-192.png",
111
- sizes: "192x192",
112
- purpose: "maskable",
113
- type: "image/png",
114
- },
115
- {
116
- src: "/assets/icon/chrome-512.png",
117
- sizes: "512x512",
118
- type: "image/png",
119
- },
120
- {
121
- src: "/assets/icon/chrome-192.png",
122
- sizes: "192x192",
123
- type: "image/png",
124
- },
125
- ],
126
- shortcuts: [
127
- {
128
- name: "Guide",
129
- short_name: "Guide",
130
- url: "/guide/",
131
- icons: [
132
- {
133
- src: "/assets/icon/guide-maskable.png",
134
- sizes: "192x192",
135
- purpose: "maskable",
136
- type: "image/png",
137
- },
138
- {
139
- src: "/assets/icon/guide-monochrome.png",
140
- sizes: "192x192",
141
- purpose: "monochrome",
142
- type: "image/png",
143
- },
144
- ],
145
- },
146
- ],
147
- },
148
- },
149
95
  },
150
96
  });
@@ -1,4 +1,5 @@
1
1
  ---
2
+ index: false
2
3
  icon: creative
3
4
  category:
4
5
  - Guide
@@ -1,4 +1,5 @@
1
1
  ---
2
+ index: 3
2
3
  title: Component disabled
3
4
  icon: config
4
5
  category:
@@ -1,4 +1,5 @@
1
1
  ---
2
+ index: 2
2
3
  icon: markdown
3
4
  title: Markdown Enhance
4
5
  category:
@@ -200,6 +201,42 @@ You can mark ==important words== .
200
201
 
201
202
  - [View Detail](https://vuepress-theme-hope.github.io/v2/guide/markdown/tasklist.html)
202
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
+
203
240
  ### Flowchart
204
241
 
205
242
  ```flow
@@ -1,4 +1,6 @@
1
1
  ---
2
+ # This control sidebar index
3
+ index: 1
2
4
  # This is the icon of the page
3
5
  icon: page
4
6
  # This is the title of the article
@@ -22,6 +24,10 @@ star: true
22
24
  footer: Footer content for test
23
25
  ---
24
26
 
27
+ Content before `more` comment is regarded as page excerpt.
28
+
29
+ <!-- more -->
30
+
25
31
  ## Page information
26
32
 
27
33
  You can set page information in Markdown’s Frontmatter.
@@ -65,7 +65,7 @@ features:
65
65
  link: https://vuepress-theme-hope.github.io/v2/guide/feature/encrypt.html
66
66
 
67
67
  - title: Copy button
68
- icon: lock
68
+ icon: copy
69
69
  details: Copy codes with one click in code blocks
70
70
  link: https://vuepress-theme-hope.github.io/v2/guide/feature/copy-code.html
71
71
 
@@ -8,10 +8,9 @@ export const en = defineSidebarConfig({
8
8
  {
9
9
  icon: "creative",
10
10
  text: "Guide",
11
- collapsable: true,
12
11
  prefix: "guide/",
13
12
  link: "guide/",
14
- children: ["page", "markdown", "disable", "encrypt"],
13
+ children: "structure",
15
14
  },
16
15
  {
17
16
  text: "Articles",
@@ -9,7 +9,8 @@ export const zh = defineSidebarConfig({
9
9
  text: "如何使用",
10
10
  icon: "creative",
11
11
  prefix: "guide/",
12
- children: ["", "page", "markdown", "disable", "encrypt"],
12
+ link: "guide/",
13
+ children: "structure",
13
14
  },
14
15
  {
15
16
  text: "文章",
@@ -18,6 +18,8 @@ export default defineThemeConfig({
18
18
 
19
19
  docsDir: "demo/src",
20
20
 
21
+ pageInfo: ["Author", "Original", "Date", "Category", "Tag", "ReadingTime"],
22
+
21
23
  blog: {
22
24
  medias: {
23
25
  Baidu: "https://example.com",
@@ -68,10 +70,6 @@ export default defineThemeConfig({
68
70
  description: "A FrontEnd programmer",
69
71
  intro: "/intro.html",
70
72
  },
71
-
72
- metaLocales: {
73
- editLink: "Edit this page on GitHub",
74
- },
75
73
  },
76
74
 
77
75
  /**
@@ -92,11 +90,6 @@ export default defineThemeConfig({
92
90
  description: "一个前端开发者",
93
91
  intro: "/zh/intro.html",
94
92
  },
95
-
96
- // page meta
97
- metaLocales: {
98
- editLink: "在 GitHub 上编辑此页",
99
- },
100
93
  },
101
94
  },
102
95
 
@@ -112,9 +105,13 @@ export default defineThemeConfig({
112
105
  autoExcerpt: true,
113
106
  },
114
107
 
108
+ // you can also use Waline
115
109
  comment: {
116
- type: "waline",
117
- serverURL: "https://vuepress-theme-hope-comment.vercel.app",
110
+ type: "giscus",
111
+ repo: "vuepress-theme-hope/giscus-discussions",
112
+ repoId: "R_kgDOG_Pt2A",
113
+ category: "Announcements",
114
+ categoryId: "DIC_kwDOG_Pt2M4COD69",
118
115
  },
119
116
 
120
117
  mdEnhance: {
@@ -123,65 +120,5 @@ export default defineThemeConfig({
123
120
  plugins: ["highlight", "math", "search", "notes", "zoom"],
124
121
  },
125
122
  },
126
-
127
- pwa: {
128
- favicon: "/favicon.ico",
129
- cachePic: true,
130
- apple: {
131
- icon: "/assets/icon/apple-icon-152.png",
132
- statusBarColor: "black",
133
- },
134
- msTile: {
135
- image: "/assets/icon/ms-icon-144.png",
136
- color: "#ffffff",
137
- },
138
- manifest: {
139
- icons: [
140
- {
141
- src: "/assets/icon/chrome-mask-512.png",
142
- sizes: "512x512",
143
- purpose: "maskable",
144
- type: "image/png",
145
- },
146
- {
147
- src: "/assets/icon/chrome-mask-192.png",
148
- sizes: "192x192",
149
- purpose: "maskable",
150
- type: "image/png",
151
- },
152
- {
153
- src: "/assets/icon/chrome-512.png",
154
- sizes: "512x512",
155
- type: "image/png",
156
- },
157
- {
158
- src: "/assets/icon/chrome-192.png",
159
- sizes: "192x192",
160
- type: "image/png",
161
- },
162
- ],
163
- shortcuts: [
164
- {
165
- name: "Guide",
166
- short_name: "Guide",
167
- url: "/guide/",
168
- icons: [
169
- {
170
- src: "/assets/icon/guide-maskable.png",
171
- sizes: "192x192",
172
- purpose: "maskable",
173
- type: "image/png",
174
- },
175
- {
176
- src: "/assets/icon/guide-monochrome.png",
177
- sizes: "192x192",
178
- purpose: "monochrome",
179
- type: "image/png",
180
- },
181
- ],
182
- },
183
- ],
184
- },
185
- },
186
123
  },
187
124
  });
@@ -1,4 +1,5 @@
1
1
  ---
2
+ index: false
2
3
  icon: creative
3
4
  category:
4
5
  - Guide
@@ -1,4 +1,5 @@
1
1
  ---
2
+ index: 3
2
3
  title: Component disabled
3
4
  icon: config
4
5
  category:
@@ -1,4 +1,5 @@
1
1
  ---
2
+ index: 2
2
3
  icon: markdown
3
4
  title: Markdown Enhance
4
5
  category:
@@ -200,6 +201,42 @@ You can mark ==important words== .
200
201
 
201
202
  - [View Detail](https://vuepress-theme-hope.github.io/v2/guide/markdown/tasklist.html)
202
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
+
203
240
  ### Flowchart
204
241
 
205
242
  ```flow
@@ -1,4 +1,6 @@
1
1
  ---
2
+ # This control sidebar index
3
+ index: 1
2
4
  # This is the icon of the page
3
5
  icon: page
4
6
  # This is the title of the article
@@ -22,6 +24,10 @@ star: true
22
24
  footer: Footer content for test
23
25
  ---
24
26
 
27
+ Content before `more` comment is regarded as page excerpt.
28
+
29
+ <!-- more -->
30
+
25
31
  ## Page information
26
32
 
27
33
  You can set page information in Markdown’s Frontmatter.
@@ -65,7 +65,7 @@ features:
65
65
  link: https://vuepress-theme-hope.github.io/v2/guide/feature/encrypt.html
66
66
 
67
67
  - title: Copy button
68
- icon: lock
68
+ icon: copy
69
69
  details: Copy codes with one click in code blocks
70
70
  link: https://vuepress-theme-hope.github.io/v2/guide/feature/copy-code.html
71
71
 
@@ -43,6 +43,6 @@ footer: 自定义你的页脚文字
43
43
 
44
44
  这是一个博客主页。
45
45
 
46
- 要使用此布局,您应该在页面前端设置 `layout: Blog` 和 `home: true`。
46
+ 要使用此布局,你应该在页面前端设置 `layout: Blog` 和 `home: true`。
47
47
 
48
48
  相关配置文档请见 [博客主页](https://vuepress-theme-hope.github.io/v2/zh/guide/blog/home/)。
@@ -1,4 +1,5 @@
1
1
  ---
2
+ index: false
2
3
  icon: creative
3
4
  category:
4
5
  - 使用指南
@@ -1,4 +1,5 @@
1
1
  ---
2
+ index: 3
2
3
  title: 组件禁用
3
4
  icon: config
4
5
  category:
@@ -1,4 +1,5 @@
1
1
  ---
2
+ index: 2
2
3
  icon: markdown
3
4
  title: Markdown 增强
4
5
  category:
@@ -198,6 +199,42 @@ npm i -D vuepress-theme-hope
198
199
 
199
200
  - [查看详情](https://vuepress-theme-hope.github.io/v2/zh/guide/markdown/tasklist.html)
200
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
+
201
238
  ### 流程图
202
239
 
203
240
  ```flow
@@ -1,4 +1,6 @@
1
1
  ---
2
+ # 这是侧边栏索引
3
+ index: 1
2
4
  # 这是页面的图标
3
5
  icon: page
4
6
  # 这是文章的标题
@@ -22,6 +24,10 @@ star: true
22
24
  footer: 这是测试显示的页脚
23
25
  ---
24
26
 
27
+ `more` 注释之前的内容被视为文章摘要。
28
+
29
+ <!-- more -->
30
+
25
31
  ## 页面信息
26
32
 
27
33
  你可以在 Markdown 的 Frontmatter 中设置页面信息。
@@ -21,7 +21,7 @@ features:
21
21
 
22
22
  - title: 幻灯片页面
23
23
  icon: slides
24
- details: 添加幻灯片页面以显示您喜欢的内容
24
+ details: 添加幻灯片页面以显示你喜欢的内容
25
25
  link: https://vuepress-theme-hope.github.io/v2/zh/guide/layout/slides
26
26
 
27
27
  - title: 布局增强
@@ -65,7 +65,7 @@ features:
65
65
  link: https://vuepress-theme-hope.github.io/v2/zh/guide/feature/encrypt.html
66
66
 
67
67
  - title: 复制按钮
68
- icon: lock
68
+ icon: copy
69
69
  details: 一键复制代码块中的代码
70
70
  link: https://vuepress-theme-hope.github.io/v2/zh/guide/feature/copy-code.html
71
71
 
@@ -8,7 +8,8 @@ export default defineSidebarConfig([
8
8
  text: "如何使用",
9
9
  icon: "creative",
10
10
  prefix: "guide/",
11
- children: ["", "page", "markdown", "disable", "encrypt"],
11
+ link: "guide/",
12
+ children: "structure",
12
13
  },
13
14
  {
14
15
  text: "文章",
@@ -28,10 +28,7 @@ export default defineThemeConfig({
28
28
 
29
29
  displayFooter: true,
30
30
 
31
- // page meta
32
- metaLocales: {
33
- editLink: "在 GitHub 上编辑此页",
34
- },
31
+ pageInfo: ["Author", "Original", "Date", "Category", "Tag", "ReadingTime"],
35
32
 
36
33
  blog: {
37
34
  description: "一个前端开发者",
@@ -80,9 +77,13 @@ export default defineThemeConfig({
80
77
  autoExcerpt: true,
81
78
  },
82
79
 
80
+ // 你也可以使用 Waline
83
81
  comment: {
84
- type: "waline",
85
- serverURL: "https://vuepress-theme-hope-comment.vercel.app",
82
+ type: "giscus",
83
+ repo: "vuepress-theme-hope/giscus-discussions",
84
+ repoId: "R_kgDOG_Pt2A",
85
+ category: "Announcements",
86
+ categoryId: "DIC_kwDOG_Pt2M4COD69",
86
87
  },
87
88
 
88
89
  mdEnhance: {
@@ -91,65 +92,5 @@ export default defineThemeConfig({
91
92
  plugins: ["highlight", "math", "search", "notes", "zoom"],
92
93
  },
93
94
  },
94
-
95
- pwa: {
96
- favicon: "/favicon.ico",
97
- cachePic: true,
98
- apple: {
99
- icon: "/assets/icon/apple-icon-152.png",
100
- statusBarColor: "black",
101
- },
102
- msTile: {
103
- image: "/assets/icon/ms-icon-144.png",
104
- color: "#ffffff",
105
- },
106
- manifest: {
107
- icons: [
108
- {
109
- src: "/assets/icon/chrome-mask-512.png",
110
- sizes: "512x512",
111
- purpose: "maskable",
112
- type: "image/png",
113
- },
114
- {
115
- src: "/assets/icon/chrome-mask-192.png",
116
- sizes: "192x192",
117
- purpose: "maskable",
118
- type: "image/png",
119
- },
120
- {
121
- src: "/assets/icon/chrome-512.png",
122
- sizes: "512x512",
123
- type: "image/png",
124
- },
125
- {
126
- src: "/assets/icon/chrome-192.png",
127
- sizes: "192x192",
128
- type: "image/png",
129
- },
130
- ],
131
- shortcuts: [
132
- {
133
- name: "Guide",
134
- short_name: "Guide",
135
- url: "/guide/",
136
- icons: [
137
- {
138
- src: "/assets/icon/guide-maskable.png",
139
- sizes: "192x192",
140
- purpose: "maskable",
141
- type: "image/png",
142
- },
143
- {
144
- src: "/assets/icon/guide-monochrome.png",
145
- sizes: "192x192",
146
- purpose: "monochrome",
147
- type: "image/png",
148
- },
149
- ],
150
- },
151
- ],
152
- },
153
- },
154
95
  },
155
96
  });
@@ -43,6 +43,6 @@ footer: 自定义你的页脚文字
43
43
 
44
44
  这是一个博客主页。
45
45
 
46
- 要使用此布局,您应该在页面前端设置 `layout: Blog` 和 `home: true`。
46
+ 要使用此布局,你应该在页面前端设置 `layout: Blog` 和 `home: true`。
47
47
 
48
48
  相关配置文档请见 [博客主页](https://vuepress-theme-hope.github.io/v2/zh/guide/blog/home/)。
@@ -1,4 +1,5 @@
1
1
  ---
2
+ index: false
2
3
  icon: creative
3
4
  category:
4
5
  - 使用指南
@@ -1,4 +1,5 @@
1
1
  ---
2
+ index: 3
2
3
  title: 组件禁用
3
4
  icon: config
4
5
  category:
@@ -1,4 +1,5 @@
1
1
  ---
2
+ index: 2
2
3
  icon: markdown
3
4
  title: Markdown 增强
4
5
  category:
@@ -198,6 +199,42 @@ npm i -D vuepress-theme-hope
198
199
 
199
200
  - [查看详情](https://vuepress-theme-hope.github.io/v2/zh/guide/markdown/tasklist.html)
200
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
+
201
238
  ### 流程图
202
239
 
203
240
  ```flow
@@ -1,4 +1,6 @@
1
1
  ---
2
+ # 这是侧边栏索引
3
+ index: 1
2
4
  # 这是页面的图标
3
5
  icon: page
4
6
  # 这是文章的标题
@@ -22,6 +24,10 @@ star: true
22
24
  footer: 这是测试显示的页脚
23
25
  ---
24
26
 
27
+ `more` 注释之前的内容被视为文章摘要。
28
+
29
+ <!-- more -->
30
+
25
31
  ## 页面信息
26
32
 
27
33
  你可以在 Markdown 的 Frontmatter 中设置页面信息。
@@ -21,7 +21,7 @@ features:
21
21
 
22
22
  - title: 幻灯片页面
23
23
  icon: slides
24
- details: 添加幻灯片页面以显示您喜欢的内容
24
+ details: 添加幻灯片页面以显示你喜欢的内容
25
25
  link: https://vuepress-theme-hope.github.io/v2/zh/guide/layout/slides
26
26
 
27
27
  - title: 布局增强
@@ -65,7 +65,7 @@ features:
65
65
  link: https://vuepress-theme-hope.github.io/v2/zh/guide/feature/encrypt.html
66
66
 
67
67
  - title: 复制按钮
68
- icon: lock
68
+ icon: copy
69
69
  details: 一键复制代码块中的代码
70
70
  link: https://vuepress-theme-hope.github.io/v2/zh/guide/feature/copy-code.html
71
71