create-vuepress-theme-hope 2.0.0-beta.0 → 2.0.0-beta.100

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 (89) hide show
  1. package/{readme.md → README.md} +0 -0
  2. package/lib/index.js +2 -0
  3. package/package.json +24 -12
  4. package/template/en-US/.vuepress/config.ts +8 -24
  5. package/template/en-US/.vuepress/navbar.ts +2 -2
  6. package/template/en-US/.vuepress/sidebar.ts +9 -10
  7. package/template/en-US/.vuepress/theme.ts +148 -0
  8. package/template/en-US/README.md +1 -1
  9. package/template/en-US/guide/README.md +5 -3
  10. package/template/en-US/guide/disable.md +4 -3
  11. package/template/en-US/guide/encrypt.md +1 -1
  12. package/template/en-US/guide/markdown.md +197 -51
  13. package/template/en-US/guide/page.md +29 -17
  14. package/template/en-US/home.md +7 -7
  15. package/template/en-US/{slide.md → slides.md} +2 -2
  16. package/template/i18n/.vuepress/config.ts +4 -16
  17. package/template/i18n/.vuepress/navbar/en.ts +2 -2
  18. package/template/i18n/.vuepress/navbar/index.ts +2 -2
  19. package/template/i18n/.vuepress/navbar/zh.ts +2 -2
  20. package/template/i18n/.vuepress/sidebar/en.ts +4 -5
  21. package/template/i18n/.vuepress/sidebar/index.ts +2 -2
  22. package/template/i18n/.vuepress/sidebar/zh.ts +5 -4
  23. package/template/i18n/.vuepress/{themeConfig.ts → theme.ts} +66 -77
  24. package/template/i18n/README.md +1 -1
  25. package/template/i18n/guide/README.md +5 -3
  26. package/template/i18n/guide/disable.md +4 -3
  27. package/template/i18n/guide/encrypt.md +1 -1
  28. package/template/i18n/guide/markdown.md +197 -51
  29. package/template/i18n/guide/page.md +29 -17
  30. package/template/i18n/home.md +7 -7
  31. package/template/i18n/slide.md +2 -2
  32. package/template/i18n/zh/README.md +2 -2
  33. package/template/i18n/zh/guide/README.md +5 -3
  34. package/template/i18n/zh/guide/disable.md +4 -3
  35. package/template/i18n/zh/guide/markdown.md +174 -46
  36. package/template/i18n/zh/guide/page.md +25 -13
  37. package/template/i18n/zh/home.md +5 -5
  38. package/template/i18n/zh/{slide.md → slides.md} +1 -1
  39. package/template/zh-CN/.vuepress/config.ts +8 -24
  40. package/template/zh-CN/.vuepress/navbar.ts +2 -2
  41. package/template/zh-CN/.vuepress/sidebar.ts +9 -8
  42. package/template/zh-CN/.vuepress/theme.ts +148 -0
  43. package/template/zh-CN/README.md +2 -2
  44. package/template/zh-CN/guide/README.md +5 -3
  45. package/template/zh-CN/guide/disable.md +4 -3
  46. package/template/zh-CN/guide/markdown.md +174 -46
  47. package/template/zh-CN/guide/page.md +25 -13
  48. package/template/zh-CN/home.md +7 -7
  49. package/template/zh-CN/{slide.md → slides.md} +1 -1
  50. package/CHANGELOG.md +0 -94
  51. package/lib/node/index.d.ts +0 -1
  52. package/lib/node/index.js +0 -3
  53. package/lib/node/index.js.map +0 -1
  54. package/rollup.config.js +0 -14
  55. package/src/node/checkVersion.ts +0 -31
  56. package/src/node/copy.ts +0 -45
  57. package/src/node/deepAssign.ts +0 -42
  58. package/src/node/hasYarn.ts +0 -10
  59. package/src/node/i18n.ts +0 -89
  60. package/src/node/index.ts +0 -174
  61. package/src/node/registry.ts +0 -31
  62. package/template/en-US/.vuepress/public/assets/icon/apple-icon-152.png +0 -0
  63. package/template/en-US/.vuepress/public/assets/icon/chrome-192.png +0 -0
  64. package/template/en-US/.vuepress/public/assets/icon/chrome-512.png +0 -0
  65. package/template/en-US/.vuepress/public/assets/icon/chrome-mask-192.png +0 -0
  66. package/template/en-US/.vuepress/public/assets/icon/chrome-mask-512.png +0 -0
  67. package/template/en-US/.vuepress/public/assets/icon/guide-maskable.png +0 -0
  68. package/template/en-US/.vuepress/public/assets/icon/guide-monochrome.png +0 -0
  69. package/template/en-US/.vuepress/public/assets/icon/ms-icon-144.png +0 -0
  70. package/template/en-US/.vuepress/themeConfig.ts +0 -150
  71. package/template/i18n/.vuepress/public/assets/icon/apple-icon-152.png +0 -0
  72. package/template/i18n/.vuepress/public/assets/icon/chrome-192.png +0 -0
  73. package/template/i18n/.vuepress/public/assets/icon/chrome-512.png +0 -0
  74. package/template/i18n/.vuepress/public/assets/icon/chrome-mask-192.png +0 -0
  75. package/template/i18n/.vuepress/public/assets/icon/chrome-mask-512.png +0 -0
  76. package/template/i18n/.vuepress/public/assets/icon/guide-maskable.png +0 -0
  77. package/template/i18n/.vuepress/public/assets/icon/guide-monochrome.png +0 -0
  78. package/template/i18n/.vuepress/public/assets/icon/ms-icon-144.png +0 -0
  79. package/template/zh-CN/.vuepress/public/assets/icon/apple-icon-152.png +0 -0
  80. package/template/zh-CN/.vuepress/public/assets/icon/chrome-192.png +0 -0
  81. package/template/zh-CN/.vuepress/public/assets/icon/chrome-512.png +0 -0
  82. package/template/zh-CN/.vuepress/public/assets/icon/chrome-mask-192.png +0 -0
  83. package/template/zh-CN/.vuepress/public/assets/icon/chrome-mask-512.png +0 -0
  84. package/template/zh-CN/.vuepress/public/assets/icon/guide-maskable.png +0 -0
  85. package/template/zh-CN/.vuepress/public/assets/icon/guide-monochrome.png +0 -0
  86. package/template/zh-CN/.vuepress/public/assets/icon/ms-icon-144.png +0 -0
  87. package/template/zh-CN/.vuepress/themeConfig.ts +0 -155
  88. package/tsconfig.build.json +0 -10
  89. package/tsconfig.json +0 -8
File without changes
package/lib/index.js ADDED
@@ -0,0 +1,2 @@
1
+ #!/usr/bin/env node
2
+ import{cac as e}from"cac";import{execaCommandSync as s,execaCommand as n}from"execa";import t from"inquirer";import{readdirSync as r,mkdirSync as a,statSync as o,createReadStream as i,createWriteStream as c,writeFileSync as p,existsSync as l,readFileSync as u}from"node:fs";import{dirname as m,resolve as g,join as d}from"node:path";import{fileURLToPath as h}from"node:url";import"node:https";import{createRequire as v}from"node:module";const y={"简体中文":{getVersion:"获取依赖的最新版本...",createPackage:"生成 package.json...",updatePackage:"更新 package.json...",template:"生成模板...",wait:"这可能需要数分钟,请耐心等待.\n我们无法正确输出子进程的进度条,所以进程可能会看似未响应",install:"安装依赖...",success:"模板已成功生成!",devServerAsk:"是否想要现在启动 Demo 查看?",devServer:"启动开发服务器...\n启动成功后,请在浏览器输入给出的开发服务器地址(默认为 'localhost:8080')",nameMessage:"设置应用名称",nameError:"应用名称应只包含小写字母、数字和连接线 (-)",versionMessage:"设置应用版本号",versionError:"此版本无效,版本号应为 'x.x.x'",descriptionMessage:"设置应用描述",licenseMessage:"设置协议",i18nMessage:"项目需要用到多语言么?",gitMessage:"是否初始化 Git 仓库?",workflowMessage:"是否需要一个自动部署文档到 GitHub Pages 的工作流?",packageManager:"选择包管理器",hint:e=>`提示: 请使用 "${e} run docs:dev" 命令启动开发服务器`,dirError:e=>`"[dir]" 的方括号表示此处为一个参数,你应该替换为自己想使用的文件夹名称,如 "src", "docs" 等!\n例如: "${e} init vuepress-theme-hope@next docs"`},"english (US)":{getVersion:"Getting lastest version of deps...",createPackage:"Generating package.json...",updatePackage:"Updating package.json...",template:"Generating Template...",wait:"This may take a few minutes, please be patient.\nWe can not correctly output progress bar from child process, so the process may look stuck.",install:"Installing Deps...",success:"Successful Generated!",devServerAsk:"Would you like to preview template now?",devServer:"Staring dev server...\nAfter the dev server starts running, please visit the given server link ('localhost:8080' by default)",nameMessage:"Your project name",nameError:"package name should only contain lowercase characters, numbers and dash",versionMessage:"Your project version",versionError:"This version is not a valid one. Version should be like 'x.x.x'",descriptionMessage:"Your project description",licenseMessage:"Your project lincense",i18nMessage:"Does the project need multiple languages?",gitMessage:"Initialize a git repository?",workflowMessage:"Do you need a GitHub workflow to deploy docs on GitHub pages?",packageManager:"Choose package manager",hint:e=>`Hint: You should execute "${e} run docs:dev" to start dev server.`,dirError:e=>`The brackets in "[dir]" means it is an argument, you should replace it with folder name you want to use! E.g.: "src", "docs"\nFor example: "${e} init vuepress-theme-hope@next docs"`}},f=(e,...s)=>{if(0===s.length)return e;const n=s.shift()||{};return Object.keys(n).forEach((s=>{"object"!=typeof e[s]||Array.isArray(e[s])||"object"!=typeof n[s]||Array.isArray(n[s])?"object"==typeof n[s]?Array.isArray(n[s])?e[s]=[...n[s]]:e[s]={...n[s]}:e[s]=n[s]:f(e[s],n[s])})),f(e,...s)},w=e=>{try{r(e)}catch(s){a(e,{recursive:!0})}},$=(e,s)=>{const n=m(s);w(n);const t=i(e),r=c(s);t.pipe(r)},k=(e,s)=>{w(s);r(e,{withFileTypes:!0}).forEach((n=>{n.isFile()?$(`${e}/${n.name}`,`${s}/${n.name}`):n.isDirectory()&&k(`${e}/${n.name}`,`${s}/${n.name}`)}))},b=["npm"];(()=>{try{return 0===s("yarn --version",{stdio:"ignore"}).exitCode}catch(e){return!1}})()&&b.push("yarn"),(()=>{try{return 0===s("pnpm --version",{stdio:"ignore"}).exitCode}catch(e){return!1}})()&&b.push("pnpm");const M=h(import.meta.url),j=m(M),x=e=>{const s=g(process.cwd(),".gitignore"),n=l(s)?u(s,{encoding:"utf-8"}):"";p(s,`${n}${(e=>`\nnode_modules/\n${e}/.vuepress/.cache/\n${e}/.vuepress/.temp/\n${e}/.vuepress/dist/\n`)(e)}`,{encoding:"utf-8"})},S=async(e,n,r,a)=>{const{i18n:i,workflow:c}=await t.prompt([{name:"i18n",type:"confirm",message:a.i18nMessage,default:!1},{name:"workflow",type:"confirm",message:a.workflowMessage,default:!0}]);console.log(a.template);var l,u;if(l=g(j,"../template",i?"i18n":"简体中文"===r?"zh-CN":"en-US"),u=g(process.cwd(),n),o(l).isDirectory()?k(l,u):o(l).isFile()&&$(l,u),c){const s=g(process.cwd(),".github/workflows");w(s),p(g(s,"deploy-docs.yml"),((e,s,n)=>`\nname: ${"简体中文"===n?"部署文档":"Deploy Docs"}\n\non:\n push:\n branches:\n # ${"简体中文"===n?"确保这是你正在使用的分支名称":"make sure this is the branch you are using"}\n - main\n\njobs:\n deploy-gh-pages:\n runs-on: ubuntu-latest\n steps:\n - name: Checkout\n uses: actions/checkout@v3\n with:\n fetch-depth: 0\n # ${"简体中文"===n?"如果你文档需要 Git 子模块,取消注释下一行":"if your docs needs submodules, uncomment the following line"}\n # submodules: true\n\n${"pnpm"===e?`\n - name: ${"简体中文"===n?"安装 pnpm":"Install pnpm"}\n uses: pnpm/action-setup@v2\n with:\n version: 7\n run_install: true\n`:""}\n\n - name: ${"简体中文"===n?"设置 Node.js":"Setup Node.js"}\n uses: actions/setup-node@v3\n with:\n node-version: 16\n cache: ${e}\n\n - name: ${"简体中文"===n?"安装依赖":"Install Deps"}\n run: ${"npm"===e?"npm install":`${e} install --frozen-lockfile`}\n\n - name: ${"简体中文"===n?"构建文档":"Build Docs"}\n env:\n NODE_OPTIONS: --max_old_space_size=8192\n run: |-\n ${e} run docs:build\n > ${d(s,".vuepress/dist/.nojekyll").replace(/\\/g,"/")}\n\n - name: ${"简体中文"===n?"部署文档":"Deploy Docs"}\n uses: JamesIves/github-pages-deploy-action@v4\n with:\n # ${"简体中文"===n?"这是文档部署到的分支名称":"This is the branch where the docs are deployed to"}\n branch: gh-pages\n folder: ${d(s,".vuepress/dist").replace(/\\/g,"/")}\n\n`)(e,n,r),{encoding:"utf-8"})}if((()=>{try{return s("git log"),!0}catch{return!1}})())x(n);else if((()=>{try{return s("git log"),!0}catch{return!1}})()){const{git:e}=await t.prompt([{name:"git",type:"confirm",message:a.gitMessage,default:!0}]);e&&(s("git init"),x(n))}},D=v(import.meta.url)("create-vuepress-theme-hope/package.json").version,E=async(e,n)=>{const r=(e=>s(`${e} config get registry`).stdout)(e);if("简体中文"===n){const{registry:e}=await t.prompt([{name:"registry",type:"list",message:"选择你想使用的源",choices:["国内镜像源","当前源"]}]);return"国内镜像源"===e?"https://registry.npmmirror.com/":r}return r},A=e("vuepress-theme-hope");A.command("[dir]","Generate a new vuepress-theme-hope project").usage("pnpm create vuepress-theme-hope@next [dir] / npm init vuepress-theme-hope@next [dir]").example("docs").action((async e=>{if(!e)return A.outputHelp();const{lang:r,message:a}=await(async()=>{const{language:e}=await t.prompt([{name:"language",type:"list",message:"Select a language to display / 选择显示语言",choices:["english (US)","简体中文"]}]);return{lang:e,message:y[e]}})(),o=await(async e=>(await t.prompt([{name:"packageManager",type:"list",message:e,choices:b}])).packageManager)(a.packageManager);if(e.startsWith("[")&&e.endsWith("]"))return console.log(a.dirError(o));console.log(a.getVersion),await(async(e,s)=>{const n=g(process.cwd(),"package.json"),r=(e=>({"docs:build":`vuepress build ${e}`,"docs:clean-dev":`vuepress dev ${e} --clean-cache`,"docs:dev":`vuepress dev ${e}`}))(e),a={"@vuepress/client":"2.0.0-beta.51",vue:"^3.2.29",vuepress:"2.0.0-beta.51","vuepress-theme-hope":D};if(l(n)){console.log(s.updatePackage);const e=JSON.parse(u(n,{encoding:"utf-8"}));f(e,{scripts:r,devDependencies:a}),p(n,`${JSON.stringify(e,null,2)}\n`,{encoding:"utf-8"})}else{console.log(s.createPackage);const e={...await t.prompt([{name:"name",type:"input",message:s.nameMessage,default:"vuepress-theme-hope-template",validate:e=>!!/^(?:@[a-z0-9-*~][a-z0-9-*._~]*\/)?[a-z0-9-~][a-z0-9-._~]*$/u.exec(e)||s.nameError},{name:"version",type:"input",message:s.versionMessage,default:"2.0.0",validate:e=>!!/^[0-9]+\.[0-9]+\.(?:[0=9]+|[0-9]+-[a-z]+\.[0-9])$/u.exec(e)||s.versionError},{name:"description",type:"input",message:s.descriptionMessage,default:"A project of vuepress-theme-hope"},{name:"license",type:"input",message:s.licenseMessage,default:"MIT"}]),type:"module",scripts:r,devDependencies:a};p(n,`${JSON.stringify(e,null,2)}\n`,{encoding:"utf-8"})}})(e,a),await S(o,e,r,a);const i="pnpm"===o?"":await E(o,r);console.log(a.install),console.warn(a.wait),s(`${o} install ${i?"":`--registry ${i}`}`,{stdout:"inherit"}),console.log(a.success);const{choice:c}=await t.prompt([{name:"choice",type:"confirm",message:a.devServerAsk,default:!0}]);c?(console.log(a.devServer),await n(`${o} run docs:dev`,{stdout:"inherit"})):console.log(a.hint(o))})),A.help((()=>[{title:"pnpm create vuepress-theme-hope@next [dir] / npm init vuepress-theme-hope@next [dir]",body:"Create a vuepress-theme-hope template in [dir]"}])),A.version(D),A.parse();
package/package.json CHANGED
@@ -1,10 +1,12 @@
1
1
  {
2
2
  "name": "create-vuepress-theme-hope",
3
- "version": "2.0.0-beta.0",
3
+ "version": "2.0.0-beta.100",
4
4
  "description": "Create vuepress-theme-hope demo project helper",
5
5
  "keywords": [
6
6
  "create",
7
7
  "vuepress",
8
+ "vuepress2",
9
+ "vuepress-theme",
8
10
  "vuepress-theme-hope"
9
11
  ],
10
12
  "homepage": "https://vuepress-theme-hope.github.io/v2/",
@@ -22,20 +24,30 @@
22
24
  "email": "mister-hope@outlook.com",
23
25
  "url": "https://mrhope.site"
24
26
  },
27
+ "type": "module",
28
+ "exports": {
29
+ "./package.json": "./package.json"
30
+ },
25
31
  "bin": {
26
- "create-vuepress-theme-hope": "./lib/node/index.js"
32
+ "create-vuepress-theme-hope": "./lib/index.js"
33
+ },
34
+ "files": [
35
+ "lib",
36
+ "template"
37
+ ],
38
+ "dependencies": {
39
+ "cac": "6.7.14",
40
+ "execa": "6.1.0",
41
+ "inquirer": "9.1.1"
42
+ },
43
+ "devDependencies": {
44
+ "@types/inquirer": "9.0.1",
45
+ "rimraf": "3.0.2"
27
46
  },
28
47
  "scripts": {
29
48
  "build": "rollup -c",
30
49
  "clean": "rimraf ./lib ./*.tsbuildinfo",
31
- "dev": "yarn dev:ts",
50
+ "dev": "pnpm dev:ts",
32
51
  "dev:ts": "tsc -b tsconfig.build.json --watch"
33
- },
34
- "dependencies": {
35
- "@types/inquirer": "^8.2.0",
36
- "cac": "^6.7.12",
37
- "execa": "^5.1.1",
38
- "inquirer": "^8.2.0"
39
- },
40
- "gitHead": "cd81dc178e8586fb3eaf8c5c15a5a2674f23f3c2"
41
- }
52
+ }
53
+ }
@@ -1,28 +1,12 @@
1
- import { defineHopeConfig } from "vuepress-theme-hope";
2
- import themeConfig from "./themeConfig";
1
+ import { defineUserConfig } from "vuepress";
2
+ import theme from "./theme.js";
3
3
 
4
- export default defineHopeConfig({
5
- base: "/",
6
-
7
- dest: "./dist",
4
+ export default defineUserConfig({
5
+ lang: "en-US",
6
+ title: "Theme Demo",
7
+ description: "A demo for vuepress-theme-hope",
8
8
 
9
- head: [
10
- [
11
- "link",
12
- {
13
- rel: "stylesheet",
14
- href: "//at.alicdn.com/t/font_2410206_mfj6e1vbwo.css",
15
- },
16
- ],
17
- ],
18
-
19
- locales: {
20
- "/": {
21
- lang: "en-US",
22
- title: "Theme Demo",
23
- description: "A demo for vuepress-theme-hope",
24
- },
25
- },
9
+ base: "/",
26
10
 
27
- themeConfig,
11
+ theme,
28
12
  });
@@ -1,6 +1,6 @@
1
- import { defineNavbarConfig } from "vuepress-theme-hope";
1
+ import { navbar } from "vuepress-theme-hope";
2
2
 
3
- export default defineNavbarConfig([
3
+ export default navbar([
4
4
  "/",
5
5
  "/home",
6
6
  { text: "Guide", icon: "creative", link: "/guide/" },
@@ -1,21 +1,20 @@
1
- import { defineSidebarConfig } from "vuepress-theme-hope";
1
+ import { sidebar } from "vuepress-theme-hope";
2
2
 
3
- export default defineSidebarConfig([
4
- "",
5
- "home",
6
- "slide",
3
+ export default sidebar([
4
+ "/",
5
+ "/home",
6
+ "/slides",
7
7
  {
8
8
  icon: "creative",
9
9
  text: "Guide",
10
- collapsable: true,
11
- prefix: "guide/",
12
- link: "guide/",
13
- children: ["page", "markdown", "disable", "encrypt"],
10
+ prefix: "/guide/",
11
+ link: "/guide/",
12
+ children: "structure",
14
13
  },
15
14
  {
16
15
  text: "Articles",
17
16
  icon: "note",
18
- prefix: "posts/",
17
+ prefix: "/posts/",
19
18
  children: [
20
19
  {
21
20
  text: "Articles 1-4",
@@ -0,0 +1,148 @@
1
+ import { hopeTheme } from "vuepress-theme-hope";
2
+ import navbar from "./navbar.js";
3
+ import sidebar from "./sidebar.js";
4
+
5
+ export default hopeTheme({
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
+ iconAssets: "iconfont",
14
+
15
+ logo: "/logo.svg",
16
+
17
+ repo: "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: "Default footer",
28
+
29
+ displayFooter: true,
30
+
31
+ pageInfo: ["Author", "Original", "Date", "Category", "Tag", "ReadingTime"],
32
+
33
+ blog: {
34
+ description: "A FrontEnd programmer",
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
+ // If you don't need comment feature, you can remove following option
81
+ // The following config is for demo ONLY, if you need comment feature, please generate and use your own config, see comment plugin documentation for details.
82
+ // To avoid disturbing the theme developer and consuming his resources, please DO NOT use the following config directly in your production environment!!!!!
83
+ comment: {
84
+ /**
85
+ * Using Giscus
86
+ */
87
+ provider: "Giscus",
88
+ repo: "vuepress-theme-hope/giscus-discussions",
89
+ repoId: "R_kgDOG_Pt2A",
90
+ category: "Announcements",
91
+ categoryId: "DIC_kwDOG_Pt2M4COD69",
92
+
93
+ /**
94
+ * Using Twikoo
95
+ */
96
+ // provider: "Twikoo",
97
+ // envId: "https://twikoo.ccknbc.vercel.app",
98
+
99
+ /**
100
+ * Using Waline
101
+ */
102
+ // provider: "Waline",
103
+ // serverURL: "https://vuepress-theme-hope-comment.vercel.app",
104
+ },
105
+
106
+ mdEnhance: {
107
+ align: true,
108
+ attrs: true,
109
+ chart: true,
110
+ codetabs: true,
111
+ container: true,
112
+ demo: true,
113
+ echarts: true,
114
+ flowchart: true,
115
+ gfm: true,
116
+ imageSize: true,
117
+ include: true,
118
+ lazyLoad: true,
119
+ mark: true,
120
+ mermaid: true,
121
+ playground: {
122
+ presets: ["ts", "vue"],
123
+ },
124
+ presentation: {
125
+ plugins: ["highlight", "math", "search", "notes", "zoom"],
126
+ },
127
+ stylize: [
128
+ {
129
+ matcher: "Recommanded",
130
+ replacer: ({ tag }) => {
131
+ if (tag === "em")
132
+ return {
133
+ tag: "Badge",
134
+ attrs: { type: "tip" },
135
+ content: "Recommanded",
136
+ };
137
+ },
138
+ },
139
+ ],
140
+ sub: true,
141
+ sup: true,
142
+ tabs: true,
143
+ tex: true,
144
+ vpre: true,
145
+ vuePlayground: true,
146
+ },
147
+ },
148
+ });
@@ -41,7 +41,7 @@ projects:
41
41
  footer: customize your footer text
42
42
  ---
43
43
 
44
- This is a blog home page.
44
+ This is a blog home page demo.
45
45
 
46
46
  To use this layout, you should set both `layout: Blog` and `home: true` in the page front matter.
47
47
 
@@ -1,15 +1,17 @@
1
1
  ---
2
+ title: Guides
3
+ index: false
2
4
  icon: creative
3
5
  category:
4
6
  - Guide
5
7
  ---
6
8
 
7
- # Guides
8
-
9
- - [Page Config](page.md)
9
+ ## Catalog
10
10
 
11
11
  - [Markdown Enhance](markdown.md)
12
12
 
13
+ - [Page Config](page.md)
14
+
13
15
  - [Function Disable](disable.md)
14
16
 
15
17
  - [Encryption Demo](encrypt.md)
@@ -1,6 +1,7 @@
1
1
  ---
2
- title: Component disabled
2
+ title: Disabling layout and features
3
3
  icon: config
4
+ order: 3
4
5
  category:
5
6
  - Guide
6
7
  tag:
@@ -22,11 +23,11 @@ footer: false
22
23
  backtotop: false
23
24
  ---
24
25
 
25
- You can disable some functions on the page by setting the Frontmatter of the page.
26
+ You can disable some function and layout on the page by setting the Frontmatter of the page.
26
27
 
27
28
  <!-- more -->
28
29
 
29
- These should be disabled on this page:
30
+ This page is an demo that disables the following features:
30
31
 
31
32
  - Navbar
32
33
  - Sidebar
@@ -6,7 +6,7 @@ tag:
6
6
  - encryption
7
7
  ---
8
8
 
9
- # Encryption article
9
+ # Encryption Article
10
10
 
11
11
  The actual article content.
12
12