create-vuepress-theme-hope 2.0.0-rc.3 → 2.0.0-rc.5

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 (43) hide show
  1. package/lib/index.js +1 -1
  2. package/package.json +1 -1
  3. package/template/blog/config/base/logo.ts +2 -0
  4. package/template/blog/config/en/sidebar.ts +5 -1
  5. package/template/blog/config/en/theme.ts +29 -37
  6. package/template/blog/config/multi/sidebar/en.ts +5 -1
  7. package/template/blog/config/multi/sidebar/zh.ts +5 -1
  8. package/template/blog/config/multi/theme.ts +29 -37
  9. package/template/blog/config/zh/sidebar.ts +5 -1
  10. package/template/blog/config/zh/theme.ts +29 -37
  11. package/template/blog/en/demo/README.md +1 -9
  12. package/template/blog/en/demo/disable.md +1 -1
  13. package/template/blog/en/demo/layout.md +31 -0
  14. package/template/blog/en/demo/markdown.md +31 -171
  15. package/template/blog/en/demo/page.md +67 -20
  16. package/template/blog/zh/demo/README.md +1 -9
  17. package/template/blog/zh/demo/disable.md +1 -1
  18. package/template/blog/zh/demo/encrypt.md +1 -1
  19. package/template/blog/zh/demo/layout.md +31 -0
  20. package/template/blog/zh/demo/markdown.md +31 -171
  21. package/template/blog/zh/demo/page.md +69 -18
  22. package/template/docs/config/en/sidebar.ts +5 -1
  23. package/template/docs/config/en/theme.ts +28 -34
  24. package/template/docs/config/multi/sidebar/en.ts +5 -1
  25. package/template/docs/config/multi/sidebar/zh.ts +5 -1
  26. package/template/docs/config/multi/theme.ts +28 -34
  27. package/template/docs/config/zh/sidebar.ts +5 -1
  28. package/template/docs/config/zh/theme.ts +28 -34
  29. package/template/docs/en/demo/README.md +1 -9
  30. package/template/docs/en/demo/disable.md +1 -1
  31. package/template/docs/en/demo/layout.md +31 -0
  32. package/template/docs/en/demo/markdown.md +31 -171
  33. package/template/docs/en/demo/page.md +67 -18
  34. package/template/docs/zh/demo/README.md +1 -9
  35. package/template/docs/zh/demo/disable.md +1 -1
  36. package/template/docs/zh/demo/encrypt.md +1 -1
  37. package/template/docs/zh/demo/layout.md +31 -0
  38. package/template/docs/zh/demo/markdown.md +30 -170
  39. package/template/docs/zh/demo/page.md +71 -18
  40. package/template/blog/en/slides.md +0 -433
  41. package/template/blog/zh/slides.md +0 -429
  42. package/template/docs/en/slides.md +0 -433
  43. package/template/docs/zh/slides.md +0 -429
package/lib/index.js CHANGED
@@ -64,6 +64,6 @@ ${e!=="pnpm"?` - name: ${s==="简体中文"?"安装依赖":"Install Deps"}
64
64
  # ${s==="简体中文"?"这是文档部署到的分支名称":"This is the branch where the docs are deployed to"}
65
65
  branch: gh-pages
66
66
  folder: ${x(t,".vuepress/dist").replace(/\\/g,"/")}
67
- `,V=/^(?:@[a-z0-9-*~][a-z0-9-*._~]*\/)?[a-z0-9-~][a-z0-9-._~]*$/u,L=/^[0-9]+\.[0-9]+\.(?:[0=9]+|[0-9]+-[a-z]+\.[0-9])$/u,B=Array.isArray,$=e=>Object.prototype.toString.call(e)==="[object Object]",k=(e,...t)=>{if(t.length===0)return e;const s=t.shift()||null;return s&&Object.entries(s).forEach(([r,a])=>{r==="__proto__"||r==="constructor"||($(e[r])&&$(a)?k(e[r],a):B(a)?e[r]=[...a]:$(a)?e[r]={...a}:e[r]=s[r])}),k(e,...t)},y=e=>{try{w(e)}catch{try{A(e,{recursive:!0})}catch{}}},G=(e,t)=>{const s=D(t);y(s);const r=C(e),a=I(t);r.pipe(a)},T=(e,t)=>{y(t),w(e,{withFileTypes:!0}).forEach(s=>{s.isFile()?G(`${e}/${s.name}`,`${t}/${s.name}`):s.isDirectory()&&T(`${e}/${s.name}`,`${t}/${s.name}`)})},p=(e,t)=>{j(e).isDirectory()?T(e,t):j(e).isFile()&&G(e,t)},K=(e=process.cwd())=>{try{return c("git status",{cwd:e}),!0}catch{return!1}},Q=()=>{try{return c("git --version"),!0}catch{return!1}},X=()=>{try{return c("pnpm --version",{stdio:"ignore"}).exitCode===0}catch{return!1}},Z=()=>{try{return c("yarn --version",{stdio:"ignore"}).exitCode===0}catch{return!1}},b=["npm"];Z()&&b.push("yarn"),X()&&b.push("pnpm");const ee=async e=>(await m.prompt([{name:"packageManager",type:"list",message:e,choices:b}])).packageManager,te=W(import.meta.url),l=D(te),_=async(e,{cwd:t=process.cwd(),packageManager:s,lang:r,message:a,preset:n})=>{const{i18n:u,workflow:d}=await m.prompt([{name:"i18n",type:"confirm",message:a.question.i18n,default:!1},{name:"workflow",type:"confirm",message:a.question.workflow,default:!0}]);n||(n=(await m.prompt([{name:"preset",type:"list",message:a.question.preset,choices:["blog","docs"]}])).preset),console.log(a.flow.generateTemplate);const i=n;if(p(o(l,"../template/public"),o(t,e,"./.vuepress/public")),p(o(l,"../template",i,"config/base"),o(t,e,".vuepress")),u?(p(o(l,"../template",i,"en"),o(t,e)),p(o(l,"../template",i,"zh"),o(t,e,"zh")),p(o(l,"../template",i,"config/multi"),o(t,e,".vuepress"))):r==="简体中文"?(p(o(l,"../template",i,"zh"),o(t,e)),p(o(l,"../template",i,"config/zh"),o(t,e,".vuepress"))):(p(o(l,"../template",i,"en"),o(t,e)),p(o(l,"../template",i,"config/en"),o(t,e,".vuepress"))),d){const h=o(t,".github/workflows");y(h),v(o(h,"deploy-docs.yml"),U(s,e,r),{encoding:"utf-8"})}if(K(t))M(e,t);else if(Q()){const{git:h}=await m.prompt([{name:"git",type:"confirm",message:a.question.git,default:!0}]);h&&(c("git init",{cwd:t}),M(e,t))}},E=F(import.meta.url)("create-vuepress-theme-hope/package.json").version,se=(e,t)=>({"docs:build":`vuepress build ${t}`,"docs:clean-dev":`vuepress dev ${t} --clean-cache`,"docs:dev":`vuepress dev ${t}`,"docs:update-package":`${e==="npm"?"npx":`${e} dlx`} vp-update`}),q=async(e,t,s,r=process.cwd())=>{const a=o(r,"package.json"),n=se(e,s),u={"@vuepress/client":"2.0.0-rc.0",vue:"^3.3.9",vuepress:"2.0.0-rc.0","vuepress-theme-hope":E};if(f(a)){console.log(t.flow.updatePackage);const d=JSON.parse(S(a,{encoding:"utf-8"}));k(d,{scripts:n,devDependencies:u}),v(a,`${JSON.stringify(d,null,2)}
67
+ `,V=/^(?:@[a-z0-9-*~][a-z0-9-*._~]*\/)?[a-z0-9-~][a-z0-9-._~]*$/u,L=/^[0-9]+\.[0-9]+\.(?:[0=9]+|[0-9]+-[a-z]+\.[0-9])$/u,B=Array.isArray,$=e=>Object.prototype.toString.call(e)==="[object Object]",k=(e,...t)=>{if(t.length===0)return e;const s=t.shift()||null;return s&&Object.entries(s).forEach(([r,a])=>{r==="__proto__"||r==="constructor"||($(e[r])&&$(a)?k(e[r],a):B(a)?e[r]=[...a]:$(a)?e[r]={...a}:e[r]=s[r])}),k(e,...t)},y=e=>{try{w(e)}catch{try{A(e,{recursive:!0})}catch{}}},G=(e,t)=>{const s=D(t);y(s);const r=C(e),a=I(t);r.pipe(a)},T=(e,t)=>{y(t),w(e,{withFileTypes:!0}).forEach(s=>{s.isFile()?G(`${e}/${s.name}`,`${t}/${s.name}`):s.isDirectory()&&T(`${e}/${s.name}`,`${t}/${s.name}`)})},p=(e,t)=>{j(e).isDirectory()?T(e,t):j(e).isFile()&&G(e,t)},K=(e=process.cwd())=>{try{return c("git status",{cwd:e}),!0}catch{return!1}},Q=()=>{try{return c("git --version"),!0}catch{return!1}},X=()=>{try{return c("pnpm --version",{stdio:"ignore"}).exitCode===0}catch{return!1}},Z=()=>{try{return c("yarn --version",{stdio:"ignore"}).exitCode===0}catch{return!1}},b=["npm"];Z()&&b.push("yarn"),X()&&b.push("pnpm");const ee=async e=>(await m.prompt([{name:"packageManager",type:"list",message:e,choices:b}])).packageManager,te=W(import.meta.url),l=D(te),_=async(e,{cwd:t=process.cwd(),packageManager:s,lang:r,message:a,preset:n})=>{const{i18n:u,workflow:d}=await m.prompt([{name:"i18n",type:"confirm",message:a.question.i18n,default:!1},{name:"workflow",type:"confirm",message:a.question.workflow,default:!0}]);n||(n=(await m.prompt([{name:"preset",type:"list",message:a.question.preset,choices:["blog","docs"]}])).preset),console.log(a.flow.generateTemplate);const i=n;if(p(o(l,"../template/public"),o(t,e,"./.vuepress/public")),p(o(l,"../template",i,"config/base"),o(t,e,".vuepress")),u?(p(o(l,"../template",i,"en"),o(t,e)),p(o(l,"../template",i,"zh"),o(t,e,"zh")),p(o(l,"../template",i,"config/multi"),o(t,e,".vuepress"))):r==="简体中文"?(p(o(l,"../template",i,"zh"),o(t,e)),p(o(l,"../template",i,"config/zh"),o(t,e,".vuepress"))):(p(o(l,"../template",i,"en"),o(t,e)),p(o(l,"../template",i,"config/en"),o(t,e,".vuepress"))),d){const h=o(t,".github/workflows");y(h),v(o(h,"deploy-docs.yml"),U(s,e,r),{encoding:"utf-8"})}if(K(t))M(e,t);else if(Q()){const{git:h}=await m.prompt([{name:"git",type:"confirm",message:a.question.git,default:!0}]);h&&(c("git init",{cwd:t}),M(e,t))}},E=F(import.meta.url)("create-vuepress-theme-hope/package.json").version,se=(e,t)=>({"docs:build":`vuepress build ${t}`,"docs:clean-dev":`vuepress dev ${t} --clean-cache`,"docs:dev":`vuepress dev ${t}`,"docs:update-package":`${e==="npm"?"npx":`${e} dlx`} vp-update`}),q=async(e,t,s,r=process.cwd())=>{const a=o(r,"package.json"),n=se(e,s),u={"@vuepress/client":"2.0.0-rc.0",vue:"^3.3.12",vuepress:"2.0.0-rc.0","vuepress-theme-hope":E};if(f(a)){console.log(t.flow.updatePackage);const d=JSON.parse(S(a,{encoding:"utf-8"}));k(d,{scripts:n,devDependencies:u}),v(a,`${JSON.stringify(d,null,2)}
68
68
  `,{encoding:"utf-8"})}else{console.log(t.flow.createPackage);const d={...await m.prompt([{name:"name",type:"input",message:t.question.name,default:"vuepress-theme-hope-template",validate:i=>V.exec(i)?!0:t.error.name},{name:"version",type:"input",message:t.question.version,default:"2.0.0",validate:i=>L.exec(i)?!0:t.error.version},{name:"description",type:"input",message:t.question.description,default:"A project of vuepress-theme-hope"},{name:"license",type:"input",message:t.question.license,default:"MIT"}]),type:"module",scripts:n,devDependencies:u};v(a,`${JSON.stringify(d,null,2)}
69
69
  `,{encoding:"utf-8"})}},P="https://registry.npmmirror.com/",re=(e,t)=>c(`${e} config get ${t?"npmRegistryServer":"registry"}}`).stdout,ae=async(e,t)=>{const s=e==="yarn"&&!c("yarn --version").stdout.startsWith("1"),r=re(e,s);if(/https:\/\/registry\.npm\.taobao\.org\/?/.test(r)&&(console.error("npm.taobao.org is no longer available, resetting it to npmmirror.com"),c(`${e} config set ${s?"npmRegistryServer":"registry"}} ${P}`)),t==="简体中文"){const{registry:a}=await m.prompt([{name:"registry",type:"list",message:"选择你想使用的源",choices:["国内镜像源","当前源"]}]);return a==="国内镜像源"?P:r}return r},z=async(e,t)=>{if(!e)return g.outputHelp();const{lang:s,message:r}=await J();if(t&&!["docs","blog"].includes(t))return console.log(r.error.preset);const a=o(process.cwd(),e);if(f(a)&&w(a).length)return console.error(r.error.dirNotEmpty(e));const n=await ee(r.question.packageManager);return e.startsWith("[")&&e.endsWith("]")?console.log(r.error.updateDirMissing(n)):(y(a),{lang:s,message:r,packageManager:n})},N=async({cwd:e=process.cwd(),lang:t,message:s,packageManager:r})=>{const a=r==="pnpm"?"":await ae(r,t);console.log(s.flow.install),console.warn(s.hint.install),c(`${r} install ${a?`--registry ${a}`:""}`,{cwd:e,stdout:"inherit"}),console.log(s.hint.finish);const{choice:n}=await m.prompt([{name:"choice",type:"confirm",message:s.question.devServer,default:!0}]);n?(console.log(s.flow.devServer),await R(`${r} run docs:dev`,{cwd:e,stdout:"inherit"})):console.log(s.hint.devServer(r))},g=O("vuepress-theme-hope");g.command("[dir]","Generate a new vuepress-theme-hope project").option("-p, --preset <preset>","Choose preset to use").usage("pnpm create vuepress-theme-hope [dir] / yarn create vuepress-theme-hope [dir] / npm init vuepress-theme-hope [dir]").example("docs").action(async(e,{preset:t=null})=>{const s=o(process.cwd(),e),r=await z(e,t);if(r){const{lang:a,message:n,packageManager:u}=r;await q(u,n,"src",e),await _("src",{cwd:s,packageManager:u,lang:a,message:n,preset:t}),await N({cwd:s,lang:a,message:n,packageManager:u})}}),g.command("add [dir]","Add vuepress template to dir").alias("inject").option("-p, --preset <preset>","Choose preset to use").usage("pnpm create vuepress-theme-hope add [dir] / yarn create vuepress-theme-hope add [dir] / npm init vuepress-theme-hope add [dir]").example("docs").action(async(e,{preset:t=null})=>{const s=await z(e,t);if(s){const{lang:r,message:a,packageManager:n}=s;await q(n,a,e),await _(e,{packageManager:n,lang:r,message:a,preset:t}),await N({message:a,lang:r,packageManager:n})}}),g.help(()=>[{title:"pnpm create vuepress-theme-hope [dir] / yarn create vuepress-theme-hope [dir] / npm init vuepress-theme-hope [dir]",body:"Create a vuepress-theme-hope template in [dir]"},{title:"pnpm create vuepress-theme-hope inject [dir] / yarn create vuepress-theme-hope add [dir] / npm init vuepress-theme-hope inject [dir]",body:"Add vuepress-theme-hope template in [dir] under current project"}]),g.version(E),g.parse();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "create-vuepress-theme-hope",
3
- "version": "2.0.0-rc.3",
3
+ "version": "2.0.0-rc.5",
4
4
  "description": "Create vuepress-theme-hope demo project helper",
5
5
  "keywords": [
6
6
  "create",
@@ -0,0 +1,2 @@
1
+ export const MR_HOPE_AVATAR =
2
+ '<svg viewBox="0 0 1000 1000" xmlns="http://www.w3.org/2000/svg"><defs><linearGradient gradientTransform="matrix(.2478 .78133 -2.54797 .63622 910.35 281.58)" gradientUnits="userSpaceOnUse" id="a" x1="37.827" x2="159.988" y1="272.916" y2="274.63"><stop offset=".75" stop-color="#e33939"/><stop offset=".998" stop-color="#fff"/></linearGradient><linearGradient gradientTransform="matrix(.13814 .80797 2.55599 -.6032 34.087 494.369)" gradientUnits="userSpaceOnUse" id="b" x1="37.827" x2="159.988" y1="272.916" y2="274.63"><stop offset=".815" stop-color="#e33939"/><stop offset="1" stop-color="#fff"/></linearGradient></defs><path d="M135.637 588.067c-48.891-201.334 74.605-404.162 275.837-453.028 201.233-48.866 403.998 74.734 452.889 276.068 48.892 201.335-74.606 404.162-275.838 453.029-201.233 48.866-403.997-74.734-452.888-276.069Z" fill="#fde68a" fill-rule="evenodd" stroke="#d08819" stroke-linecap="round" stroke-linejoin="round" stroke-width="10"/><path d="M596.076 197.044c-3.342-56.09 56.897-77.831 89.017-51.361m-410.65 128.819c-22.753-51.377-86.256-43.07-102.659-4.816" fill="none" stroke="#6d5e56" stroke-linecap="round" stroke-linejoin="round" stroke-width="11"/><path d="M833.568 288.02c.05 18.046-12.584 30.699-21.346 32.211-8.762 1.512-17.031-1.099-18.584-1.341 0 0-61.363-6.103-105.627 6.921-44.265 13.026-87.04 47.387-94.637 51.892-6.627 3.928-29.112 7.697-44.462-12.938-15.351-20.636.024-41.526.024-41.526s12.685-18.279 40.771-35.123c28.088-16.844 24.624-13.226 52.326-25.696 15.247-6.865 43.319-14.186 67.429-17.069 25.193-3.011 46.348-1.384 57.673.769 22.165 4.212 28.632 5.93 39.169 9.229 12.451 3.898 27.214 14.516 27.264 32.671Z" fill="#fff" fill-rule="evenodd" stroke="#d08819" stroke-linecap="round" stroke-linejoin="round" stroke-width="8"/><path d="M558.351 345.632c-3.458-14.237 5.214-28.566 19.367-32.003 14.154-3.437 28.43 5.32 31.887 19.557 3.458 14.238-5.212 28.567-19.367 32.004-14.152 3.437-28.43-5.319-31.887-19.558Z" fill="#6d5e56" fill-rule="evenodd" stroke="#6d5e56" stroke-linecap="round" stroke-linejoin="round" stroke-width="6.268"/><path d="M220.249 483.416c46.81-11.689 91.323-.467 99.42 25.064 8.098 25.532-23.286 55.706-70.097 67.393-46.811 11.689-91.323.467-99.42-25.064-8.097-25.532 23.286-55.706 70.097-67.393Z" fill="url(#a)" fill-rule="evenodd" opacity=".261"/><path d="M739.9 357.226c-46.959 11.082-81.367 41.469-76.853 67.871 4.514 26.402 46.241 38.821 93.198 27.738 46.958-11.081 81.366-41.467 76.853-67.869-4.514-26.403-46.241-38.821-93.198-27.74Z" fill="url(#b)" fill-rule="evenodd" opacity=".261"/><path d="M400.934 398.917c-.599 18.034-13.681 30.218-22.494 31.409-8.812 1.192-16.982-1.716-18.526-2.014 0 0-61.109-8.334-105.819 3.07-44.709 11.404-88.696 44.181-96.452 48.406-6.763 3.683-29.372 6.632-43.972-14.546-14.6-21.18 1.519-41.494 1.519-41.494s13.335-17.803 42.013-33.612c28.677-15.809 25.085-12.319 53.222-23.772 15.484-6.304 43.803-12.598 68.005-14.6 25.288-2.093 46.373.305 57.616 2.867 22 5.016 28.401 6.968 38.813 10.649 12.304 4.348 26.677 15.496 26.075 33.637Z" fill="#fff" fill-rule="evenodd" stroke="#d08819" stroke-linecap="round" stroke-linejoin="round" stroke-width="8"/><path d="M129.05 445.546c-3.458-14.239 5.213-28.566 19.367-32.003 14.153-3.437 28.429 5.318 31.887 19.557 3.458 14.238-5.213 28.566-19.367 32.003-14.153 3.437-28.43-5.318-31.887-19.557Z" fill="#6d5e56" fill-rule="evenodd" stroke="#6d5e56" stroke-linecap="round" stroke-linejoin="round" stroke-width="6.268"/><path d="M424.381 696.386s64.427 13.646 101.996 5.757C640.653 678.146 690.8 521.894 690.8 521.894" fill="none" stroke="#d08819" stroke-linecap="round" stroke-linejoin="round" stroke-width="11"/><path d="M796.04 666.774s-10.734-44.165-41.405-11.348c-9.681 10.359-10.438 40.604-28.217 81.89-15.942 37.02-39.564 60.728-42.938 76.063-3.374 15.335.451 35.992 26.352 41.537 25.902 5.545 41.967-23.381 41.967-23.381l44.241-164.761Z" fill="#fde68a" fill-rule="evenodd" stroke="#d08819" stroke-linecap="round" stroke-linejoin="round" stroke-width="10"/><path d="M793.337 664.734c-37.075 160.045-51.73 163.145-40.343 184.845 11.387 21.701 51.417 33.716 71.876-7.313 6.734-13.505-1.31-43.317-1.511-78.077-.307-53.06 16.865-86.111 10.403-98.1-15.332-28.452-39.377-5.875-40.425-1.355Z" fill="#fde68a" fill-rule="evenodd" stroke="#d08819" stroke-linecap="round" stroke-linejoin="round" stroke-width="10"/></svg>';
@@ -17,6 +17,10 @@ export default sidebar({
17
17
  children: "structure",
18
18
  },
19
19
  "intro",
20
- "slides",
20
+ {
21
+ text: "Slides",
22
+ icon: "person-chalkboard",
23
+ link: "https://plugin-md-enhance.vuejs.press/guide/content/revealjs/demo.html",
24
+ },
21
25
  ],
22
26
  });
@@ -1,9 +1,7 @@
1
1
  import { hopeTheme } from "vuepress-theme-hope";
2
2
  import navbar from "./navbar.js";
3
3
  import sidebar from "./sidebar.js";
4
-
5
- const MR_HOPE_AVATAR =
6
- '<svg viewBox="0 0 1000 1000" xmlns="http://www.w3.org/2000/svg"><defs><linearGradient gradientTransform="matrix(.2478 .78133 -2.54797 .63622 910.35 281.58)" gradientUnits="userSpaceOnUse" id="a" x1="37.827" x2="159.988" y1="272.916" y2="274.63"><stop offset=".75" stop-color="#e33939"/><stop offset=".998" stop-color="#fff"/></linearGradient><linearGradient gradientTransform="matrix(.13814 .80797 2.55599 -.6032 34.087 494.369)" gradientUnits="userSpaceOnUse" id="b" x1="37.827" x2="159.988" y1="272.916" y2="274.63"><stop offset=".815" stop-color="#e33939"/><stop offset="1" stop-color="#fff"/></linearGradient></defs><path d="M135.637 588.067c-48.891-201.334 74.605-404.162 275.837-453.028 201.233-48.866 403.998 74.734 452.889 276.068 48.892 201.335-74.606 404.162-275.838 453.029-201.233 48.866-403.997-74.734-452.888-276.069Z" fill="#fde68a" fill-rule="evenodd" stroke="#d08819" stroke-linecap="round" stroke-linejoin="round" stroke-width="10"/><path d="M596.076 197.044c-3.342-56.09 56.897-77.831 89.017-51.361m-410.65 128.819c-22.753-51.377-86.256-43.07-102.659-4.816" fill="none" stroke="#6d5e56" stroke-linecap="round" stroke-linejoin="round" stroke-width="11"/><path d="M833.568 288.02c.05 18.046-12.584 30.699-21.346 32.211-8.762 1.512-17.031-1.099-18.584-1.341 0 0-61.363-6.103-105.627 6.921-44.265 13.026-87.04 47.387-94.637 51.892-6.627 3.928-29.112 7.697-44.462-12.938-15.351-20.636.024-41.526.024-41.526s12.685-18.279 40.771-35.123c28.088-16.844 24.624-13.226 52.326-25.696 15.247-6.865 43.319-14.186 67.429-17.069 25.193-3.011 46.348-1.384 57.673.769 22.165 4.212 28.632 5.93 39.169 9.229 12.451 3.898 27.214 14.516 27.264 32.671Z" fill="#fff" fill-rule="evenodd" stroke="#d08819" stroke-linecap="round" stroke-linejoin="round" stroke-width="8"/><path d="M558.351 345.632c-3.458-14.237 5.214-28.566 19.367-32.003 14.154-3.437 28.43 5.32 31.887 19.557 3.458 14.238-5.212 28.567-19.367 32.004-14.152 3.437-28.43-5.319-31.887-19.558Z" fill="#6d5e56" fill-rule="evenodd" stroke="#6d5e56" stroke-linecap="round" stroke-linejoin="round" stroke-width="6.268"/><path d="M220.249 483.416c46.81-11.689 91.323-.467 99.42 25.064 8.098 25.532-23.286 55.706-70.097 67.393-46.811 11.689-91.323.467-99.42-25.064-8.097-25.532 23.286-55.706 70.097-67.393Z" fill="url(#a)" fill-rule="evenodd" opacity=".261"/><path d="M739.9 357.226c-46.959 11.082-81.367 41.469-76.853 67.871 4.514 26.402 46.241 38.821 93.198 27.738 46.958-11.081 81.366-41.467 76.853-67.869-4.514-26.403-46.241-38.821-93.198-27.74Z" fill="url(#b)" fill-rule="evenodd" opacity=".261"/><path d="M400.934 398.917c-.599 18.034-13.681 30.218-22.494 31.409-8.812 1.192-16.982-1.716-18.526-2.014 0 0-61.109-8.334-105.819 3.07-44.709 11.404-88.696 44.181-96.452 48.406-6.763 3.683-29.372 6.632-43.972-14.546-14.6-21.18 1.519-41.494 1.519-41.494s13.335-17.803 42.013-33.612c28.677-15.809 25.085-12.319 53.222-23.772 15.484-6.304 43.803-12.598 68.005-14.6 25.288-2.093 46.373.305 57.616 2.867 22 5.016 28.401 6.968 38.813 10.649 12.304 4.348 26.677 15.496 26.075 33.637Z" fill="#fff" fill-rule="evenodd" stroke="#d08819" stroke-linecap="round" stroke-linejoin="round" stroke-width="8"/><path d="M129.05 445.546c-3.458-14.239 5.213-28.566 19.367-32.003 14.153-3.437 28.429 5.318 31.887 19.557 3.458 14.238-5.213 28.566-19.367 32.003-14.153 3.437-28.43-5.318-31.887-19.557Z" fill="#6d5e56" fill-rule="evenodd" stroke="#6d5e56" stroke-linecap="round" stroke-linejoin="round" stroke-width="6.268"/><path d="M424.381 696.386s64.427 13.646 101.996 5.757C640.653 678.146 690.8 521.894 690.8 521.894" fill="none" stroke="#d08819" stroke-linecap="round" stroke-linejoin="round" stroke-width="11"/><path d="M796.04 666.774s-10.734-44.165-41.405-11.348c-9.681 10.359-10.438 40.604-28.217 81.89-15.942 37.02-39.564 60.728-42.938 76.063-3.374 15.335.451 35.992 26.352 41.537 25.902 5.545 41.967-23.381 41.967-23.381l44.241-164.761Z" fill="#fde68a" fill-rule="evenodd" stroke="#d08819" stroke-linecap="round" stroke-linejoin="round" stroke-width="10"/><path d="M793.337 664.734c-37.075 160.045-51.73 163.145-40.343 184.845 11.387 21.701 51.417 33.716 71.876-7.313 6.734-13.505-1.31-43.317-1.511-78.077-.307-53.06 16.865-86.111 10.403-98.1-15.332-28.452-39.377-5.875-40.425-1.355Z" fill="#fde68a" fill-rule="evenodd" stroke="#d08819" stroke-linecap="round" stroke-linejoin="round" stroke-width="10"/></svg>';
4
+ import { MR_HOPE_AVATAR } from "../base/logo.js";
7
5
 
8
6
  export default hopeTheme({
9
7
  hostname: "https://mister-hope.github.io",
@@ -95,70 +93,64 @@ export default hopeTheme({
95
93
  mdEnhance: {
96
94
  align: true,
97
95
  attrs: true,
96
+ codetabs: true,
97
+ component: true,
98
+ demo: true,
99
+ figure: true,
100
+ imgLazyload: true,
101
+ imgSize: true,
102
+ include: true,
103
+ mark: true,
104
+ stylize: [
105
+ {
106
+ matcher: "Recommended",
107
+ replacer: ({ tag }) => {
108
+ if (tag === "em")
109
+ return {
110
+ tag: "Badge",
111
+ attrs: { type: "tip" },
112
+ content: "Recommended",
113
+ };
114
+ },
115
+ },
116
+ ],
117
+ sub: true,
118
+ sup: true,
119
+ tabs: true,
120
+ vPre: true,
98
121
 
99
122
  // install chart.js before enabling it
100
123
  // chart: true,
101
124
 
102
- codetabs: true,
103
-
104
125
  // insert component easily
105
- // component: true,
106
-
107
- demo: true,
108
126
 
109
127
  // install echarts before enabling it
110
128
  // echarts: true,
111
129
 
112
- figure: true,
113
-
114
130
  // install flowchart.ts before enabling it
115
131
  // flowchart: true,
116
132
 
117
133
  // gfm requires mathjax-full to provide tex support
118
134
  // gfm: true,
119
135
 
120
- imgLazyload: true,
121
- imgSize: true,
122
- include: true,
123
-
124
136
  // install katex before enabling it
125
137
  // katex: true,
126
138
 
127
139
  // install mathjax-full before enabling it
128
140
  // mathjax: true,
129
141
 
130
- mark: true,
131
-
132
142
  // install mermaid before enabling it
133
143
  // mermaid: true,
134
144
 
135
- playground: {
136
- presets: ["ts", "vue"],
137
- },
145
+ // playground: {
146
+ // presets: ["ts", "vue"],
147
+ // },
138
148
 
139
149
  // install reveal.js before enabling it
140
150
  // revealJs: {
141
151
  // plugins: ["highlight", "math", "search", "notes", "zoom"],
142
152
  // },
143
153
 
144
- stylize: [
145
- {
146
- matcher: "Recommended",
147
- replacer: ({ tag }) => {
148
- if (tag === "em")
149
- return {
150
- tag: "Badge",
151
- attrs: { type: "tip" },
152
- content: "Recommended",
153
- };
154
- },
155
- },
156
- ],
157
- sub: true,
158
- sup: true,
159
- tabs: true,
160
- vPre: true,
161
-
162
154
  // install @vue/repl before enabling it
163
155
  // vuePlayground: true,
164
156
  },
@@ -17,6 +17,10 @@ export const enSidebar = sidebar({
17
17
  children: "structure",
18
18
  },
19
19
  "intro",
20
- "slides",
20
+ {
21
+ text: "Slides",
22
+ icon: "person-chalkboard",
23
+ link: "https://plugin-md-enhance.vuejs.press/guide/content/revealjs/demo.html",
24
+ },
21
25
  ],
22
26
  });
@@ -17,6 +17,10 @@ export const zhSidebar = sidebar({
17
17
  children: "structure",
18
18
  },
19
19
  "intro",
20
- "slides",
20
+ {
21
+ text: "幻灯片",
22
+ icon: "person-chalkboard",
23
+ link: "https://plugin-md-enhance.vuejs.press/zh/guide/content/revealjs/demo.html",
24
+ },
21
25
  ],
22
26
  });
@@ -1,9 +1,7 @@
1
1
  import { hopeTheme } from "vuepress-theme-hope";
2
2
  import { enNavbar, zhNavbar } from "./navbar/index.js";
3
3
  import { enSidebar, zhSidebar } from "./sidebar/index.js";
4
-
5
- const MR_HOPE_AVATAR =
6
- '<svg viewBox="0 0 1000 1000" xmlns="http://www.w3.org/2000/svg"><defs><linearGradient gradientTransform="matrix(.2478 .78133 -2.54797 .63622 910.35 281.58)" gradientUnits="userSpaceOnUse" id="a" x1="37.827" x2="159.988" y1="272.916" y2="274.63"><stop offset=".75" stop-color="#e33939"/><stop offset=".998" stop-color="#fff"/></linearGradient><linearGradient gradientTransform="matrix(.13814 .80797 2.55599 -.6032 34.087 494.369)" gradientUnits="userSpaceOnUse" id="b" x1="37.827" x2="159.988" y1="272.916" y2="274.63"><stop offset=".815" stop-color="#e33939"/><stop offset="1" stop-color="#fff"/></linearGradient></defs><path d="M135.637 588.067c-48.891-201.334 74.605-404.162 275.837-453.028 201.233-48.866 403.998 74.734 452.889 276.068 48.892 201.335-74.606 404.162-275.838 453.029-201.233 48.866-403.997-74.734-452.888-276.069Z" fill="#fde68a" fill-rule="evenodd" stroke="#d08819" stroke-linecap="round" stroke-linejoin="round" stroke-width="10"/><path d="M596.076 197.044c-3.342-56.09 56.897-77.831 89.017-51.361m-410.65 128.819c-22.753-51.377-86.256-43.07-102.659-4.816" fill="none" stroke="#6d5e56" stroke-linecap="round" stroke-linejoin="round" stroke-width="11"/><path d="M833.568 288.02c.05 18.046-12.584 30.699-21.346 32.211-8.762 1.512-17.031-1.099-18.584-1.341 0 0-61.363-6.103-105.627 6.921-44.265 13.026-87.04 47.387-94.637 51.892-6.627 3.928-29.112 7.697-44.462-12.938-15.351-20.636.024-41.526.024-41.526s12.685-18.279 40.771-35.123c28.088-16.844 24.624-13.226 52.326-25.696 15.247-6.865 43.319-14.186 67.429-17.069 25.193-3.011 46.348-1.384 57.673.769 22.165 4.212 28.632 5.93 39.169 9.229 12.451 3.898 27.214 14.516 27.264 32.671Z" fill="#fff" fill-rule="evenodd" stroke="#d08819" stroke-linecap="round" stroke-linejoin="round" stroke-width="8"/><path d="M558.351 345.632c-3.458-14.237 5.214-28.566 19.367-32.003 14.154-3.437 28.43 5.32 31.887 19.557 3.458 14.238-5.212 28.567-19.367 32.004-14.152 3.437-28.43-5.319-31.887-19.558Z" fill="#6d5e56" fill-rule="evenodd" stroke="#6d5e56" stroke-linecap="round" stroke-linejoin="round" stroke-width="6.268"/><path d="M220.249 483.416c46.81-11.689 91.323-.467 99.42 25.064 8.098 25.532-23.286 55.706-70.097 67.393-46.811 11.689-91.323.467-99.42-25.064-8.097-25.532 23.286-55.706 70.097-67.393Z" fill="url(#a)" fill-rule="evenodd" opacity=".261"/><path d="M739.9 357.226c-46.959 11.082-81.367 41.469-76.853 67.871 4.514 26.402 46.241 38.821 93.198 27.738 46.958-11.081 81.366-41.467 76.853-67.869-4.514-26.403-46.241-38.821-93.198-27.74Z" fill="url(#b)" fill-rule="evenodd" opacity=".261"/><path d="M400.934 398.917c-.599 18.034-13.681 30.218-22.494 31.409-8.812 1.192-16.982-1.716-18.526-2.014 0 0-61.109-8.334-105.819 3.07-44.709 11.404-88.696 44.181-96.452 48.406-6.763 3.683-29.372 6.632-43.972-14.546-14.6-21.18 1.519-41.494 1.519-41.494s13.335-17.803 42.013-33.612c28.677-15.809 25.085-12.319 53.222-23.772 15.484-6.304 43.803-12.598 68.005-14.6 25.288-2.093 46.373.305 57.616 2.867 22 5.016 28.401 6.968 38.813 10.649 12.304 4.348 26.677 15.496 26.075 33.637Z" fill="#fff" fill-rule="evenodd" stroke="#d08819" stroke-linecap="round" stroke-linejoin="round" stroke-width="8"/><path d="M129.05 445.546c-3.458-14.239 5.213-28.566 19.367-32.003 14.153-3.437 28.429 5.318 31.887 19.557 3.458 14.238-5.213 28.566-19.367 32.003-14.153 3.437-28.43-5.318-31.887-19.557Z" fill="#6d5e56" fill-rule="evenodd" stroke="#6d5e56" stroke-linecap="round" stroke-linejoin="round" stroke-width="6.268"/><path d="M424.381 696.386s64.427 13.646 101.996 5.757C640.653 678.146 690.8 521.894 690.8 521.894" fill="none" stroke="#d08819" stroke-linecap="round" stroke-linejoin="round" stroke-width="11"/><path d="M796.04 666.774s-10.734-44.165-41.405-11.348c-9.681 10.359-10.438 40.604-28.217 81.89-15.942 37.02-39.564 60.728-42.938 76.063-3.374 15.335.451 35.992 26.352 41.537 25.902 5.545 41.967-23.381 41.967-23.381l44.241-164.761Z" fill="#fde68a" fill-rule="evenodd" stroke="#d08819" stroke-linecap="round" stroke-linejoin="round" stroke-width="10"/><path d="M793.337 664.734c-37.075 160.045-51.73 163.145-40.343 184.845 11.387 21.701 51.417 33.716 71.876-7.313 6.734-13.505-1.31-43.317-1.511-78.077-.307-53.06 16.865-86.111 10.403-98.1-15.332-28.452-39.377-5.875-40.425-1.355Z" fill="#fde68a" fill-rule="evenodd" stroke="#d08819" stroke-linecap="round" stroke-linejoin="round" stroke-width="10"/></svg>';
4
+ import { MR_HOPE_AVATAR } from "./logo.js";
7
5
 
8
6
  export default hopeTheme({
9
7
  hostname: "https://mister-hope.github.io",
@@ -128,70 +126,64 @@ export default hopeTheme({
128
126
  mdEnhance: {
129
127
  align: true,
130
128
  attrs: true,
129
+ codetabs: true,
130
+ component: true,
131
+ demo: true,
132
+ figure: true,
133
+ imgLazyload: true,
134
+ imgSize: true,
135
+ include: true,
136
+ mark: true,
137
+ stylize: [
138
+ {
139
+ matcher: "Recommended",
140
+ replacer: ({ tag }) => {
141
+ if (tag === "em")
142
+ return {
143
+ tag: "Badge",
144
+ attrs: { type: "tip" },
145
+ content: "Recommended",
146
+ };
147
+ },
148
+ },
149
+ ],
150
+ sub: true,
151
+ sup: true,
152
+ tabs: true,
153
+ vPre: true,
131
154
 
132
155
  // install chart.js before enabling it
133
156
  // chart: true,
134
157
 
135
- codetabs: true,
136
-
137
158
  // insert component easily
138
- // component: true,
139
-
140
- demo: true,
141
159
 
142
160
  // install echarts before enabling it
143
161
  // echarts: true,
144
162
 
145
- figure: true,
146
-
147
163
  // install flowchart.ts before enabling it
148
164
  // flowchart: true,
149
165
 
150
166
  // gfm requires mathjax-full to provide tex support
151
167
  // gfm: true,
152
168
 
153
- imgLazyload: true,
154
- imgSize: true,
155
- include: true,
156
-
157
169
  // install katex before enabling it
158
170
  // katex: true,
159
171
 
160
172
  // install mathjax-full before enabling it
161
173
  // mathjax: true,
162
174
 
163
- mark: true,
164
-
165
175
  // install mermaid before enabling it
166
176
  // mermaid: true,
167
177
 
168
- playground: {
169
- presets: ["ts", "vue"],
170
- },
178
+ // playground: {
179
+ // presets: ["ts", "vue"],
180
+ // },
171
181
 
172
182
  // install reveal.js before enabling it
173
183
  // revealJs: {
174
184
  // plugins: ["highlight", "math", "search", "notes", "zoom"],
175
185
  // },
176
186
 
177
- stylize: [
178
- {
179
- matcher: "Recommended",
180
- replacer: ({ tag }) => {
181
- if (tag === "em")
182
- return {
183
- tag: "Badge",
184
- attrs: { type: "tip" },
185
- content: "Recommended",
186
- };
187
- },
188
- },
189
- ],
190
- sub: true,
191
- sup: true,
192
- tabs: true,
193
- vPre: true,
194
-
195
187
  // install @vue/repl before enabling it
196
188
  // vuePlayground: true,
197
189
  },
@@ -17,6 +17,10 @@ export default sidebar({
17
17
  children: "structure",
18
18
  },
19
19
  "intro",
20
- "slides",
20
+ {
21
+ text: "幻灯片",
22
+ icon: "person-chalkboard",
23
+ link: "https://plugin-md-enhance.vuejs.press/zh/guide/content/revealjs/demo.html",
24
+ },
21
25
  ],
22
26
  });
@@ -1,9 +1,7 @@
1
1
  import { hopeTheme } from "vuepress-theme-hope";
2
2
  import navbar from "./navbar.js";
3
3
  import sidebar from "./sidebar.js";
4
-
5
- const MR_HOPE_AVATAR =
6
- '<svg viewBox="0 0 1000 1000" xmlns="http://www.w3.org/2000/svg"><defs><linearGradient gradientTransform="matrix(.2478 .78133 -2.54797 .63622 910.35 281.58)" gradientUnits="userSpaceOnUse" id="a" x1="37.827" x2="159.988" y1="272.916" y2="274.63"><stop offset=".75" stop-color="#e33939"/><stop offset=".998" stop-color="#fff"/></linearGradient><linearGradient gradientTransform="matrix(.13814 .80797 2.55599 -.6032 34.087 494.369)" gradientUnits="userSpaceOnUse" id="b" x1="37.827" x2="159.988" y1="272.916" y2="274.63"><stop offset=".815" stop-color="#e33939"/><stop offset="1" stop-color="#fff"/></linearGradient></defs><path d="M135.637 588.067c-48.891-201.334 74.605-404.162 275.837-453.028 201.233-48.866 403.998 74.734 452.889 276.068 48.892 201.335-74.606 404.162-275.838 453.029-201.233 48.866-403.997-74.734-452.888-276.069Z" fill="#fde68a" fill-rule="evenodd" stroke="#d08819" stroke-linecap="round" stroke-linejoin="round" stroke-width="10"/><path d="M596.076 197.044c-3.342-56.09 56.897-77.831 89.017-51.361m-410.65 128.819c-22.753-51.377-86.256-43.07-102.659-4.816" fill="none" stroke="#6d5e56" stroke-linecap="round" stroke-linejoin="round" stroke-width="11"/><path d="M833.568 288.02c.05 18.046-12.584 30.699-21.346 32.211-8.762 1.512-17.031-1.099-18.584-1.341 0 0-61.363-6.103-105.627 6.921-44.265 13.026-87.04 47.387-94.637 51.892-6.627 3.928-29.112 7.697-44.462-12.938-15.351-20.636.024-41.526.024-41.526s12.685-18.279 40.771-35.123c28.088-16.844 24.624-13.226 52.326-25.696 15.247-6.865 43.319-14.186 67.429-17.069 25.193-3.011 46.348-1.384 57.673.769 22.165 4.212 28.632 5.93 39.169 9.229 12.451 3.898 27.214 14.516 27.264 32.671Z" fill="#fff" fill-rule="evenodd" stroke="#d08819" stroke-linecap="round" stroke-linejoin="round" stroke-width="8"/><path d="M558.351 345.632c-3.458-14.237 5.214-28.566 19.367-32.003 14.154-3.437 28.43 5.32 31.887 19.557 3.458 14.238-5.212 28.567-19.367 32.004-14.152 3.437-28.43-5.319-31.887-19.558Z" fill="#6d5e56" fill-rule="evenodd" stroke="#6d5e56" stroke-linecap="round" stroke-linejoin="round" stroke-width="6.268"/><path d="M220.249 483.416c46.81-11.689 91.323-.467 99.42 25.064 8.098 25.532-23.286 55.706-70.097 67.393-46.811 11.689-91.323.467-99.42-25.064-8.097-25.532 23.286-55.706 70.097-67.393Z" fill="url(#a)" fill-rule="evenodd" opacity=".261"/><path d="M739.9 357.226c-46.959 11.082-81.367 41.469-76.853 67.871 4.514 26.402 46.241 38.821 93.198 27.738 46.958-11.081 81.366-41.467 76.853-67.869-4.514-26.403-46.241-38.821-93.198-27.74Z" fill="url(#b)" fill-rule="evenodd" opacity=".261"/><path d="M400.934 398.917c-.599 18.034-13.681 30.218-22.494 31.409-8.812 1.192-16.982-1.716-18.526-2.014 0 0-61.109-8.334-105.819 3.07-44.709 11.404-88.696 44.181-96.452 48.406-6.763 3.683-29.372 6.632-43.972-14.546-14.6-21.18 1.519-41.494 1.519-41.494s13.335-17.803 42.013-33.612c28.677-15.809 25.085-12.319 53.222-23.772 15.484-6.304 43.803-12.598 68.005-14.6 25.288-2.093 46.373.305 57.616 2.867 22 5.016 28.401 6.968 38.813 10.649 12.304 4.348 26.677 15.496 26.075 33.637Z" fill="#fff" fill-rule="evenodd" stroke="#d08819" stroke-linecap="round" stroke-linejoin="round" stroke-width="8"/><path d="M129.05 445.546c-3.458-14.239 5.213-28.566 19.367-32.003 14.153-3.437 28.429 5.318 31.887 19.557 3.458 14.238-5.213 28.566-19.367 32.003-14.153 3.437-28.43-5.318-31.887-19.557Z" fill="#6d5e56" fill-rule="evenodd" stroke="#6d5e56" stroke-linecap="round" stroke-linejoin="round" stroke-width="6.268"/><path d="M424.381 696.386s64.427 13.646 101.996 5.757C640.653 678.146 690.8 521.894 690.8 521.894" fill="none" stroke="#d08819" stroke-linecap="round" stroke-linejoin="round" stroke-width="11"/><path d="M796.04 666.774s-10.734-44.165-41.405-11.348c-9.681 10.359-10.438 40.604-28.217 81.89-15.942 37.02-39.564 60.728-42.938 76.063-3.374 15.335.451 35.992 26.352 41.537 25.902 5.545 41.967-23.381 41.967-23.381l44.241-164.761Z" fill="#fde68a" fill-rule="evenodd" stroke="#d08819" stroke-linecap="round" stroke-linejoin="round" stroke-width="10"/><path d="M793.337 664.734c-37.075 160.045-51.73 163.145-40.343 184.845 11.387 21.701 51.417 33.716 71.876-7.313 6.734-13.505-1.31-43.317-1.511-78.077-.307-53.06 16.865-86.111 10.403-98.1-15.332-28.452-39.377-5.875-40.425-1.355Z" fill="#fde68a" fill-rule="evenodd" stroke="#d08819" stroke-linecap="round" stroke-linejoin="round" stroke-width="10"/></svg>';
4
+ import { MR_HOPE_AVATAR } from "./logo.js";
7
5
 
8
6
  export default hopeTheme({
9
7
  hostname: "https://mister-hope.github.io",
@@ -96,70 +94,64 @@ export default hopeTheme({
96
94
  mdEnhance: {
97
95
  align: true,
98
96
  attrs: true,
97
+ codetabs: true,
98
+ component: true,
99
+ demo: true,
100
+ figure: true,
101
+ imgLazyload: true,
102
+ imgSize: true,
103
+ include: true,
104
+ mark: true,
105
+ stylize: [
106
+ {
107
+ matcher: "Recommended",
108
+ replacer: ({ tag }) => {
109
+ if (tag === "em")
110
+ return {
111
+ tag: "Badge",
112
+ attrs: { type: "tip" },
113
+ content: "Recommended",
114
+ };
115
+ },
116
+ },
117
+ ],
118
+ sub: true,
119
+ sup: true,
120
+ tabs: true,
121
+ vPre: true,
99
122
 
100
123
  // install chart.js before enabling it
101
124
  // chart: true,
102
125
 
103
- codetabs: true,
104
-
105
126
  // insert component easily
106
- // component: true,
107
-
108
- demo: true,
109
127
 
110
128
  // install echarts before enabling it
111
129
  // echarts: true,
112
130
 
113
- figure: true,
114
-
115
131
  // install flowchart.ts before enabling it
116
132
  // flowchart: true,
117
133
 
118
134
  // gfm requires mathjax-full to provide tex support
119
135
  // gfm: true,
120
136
 
121
- imgLazyload: true,
122
- imgSize: true,
123
- include: true,
124
-
125
137
  // install katex before enabling it
126
138
  // katex: true,
127
139
 
128
140
  // install mathjax-full before enabling it
129
141
  // mathjax: true,
130
142
 
131
- mark: true,
132
-
133
143
  // install mermaid before enabling it
134
144
  // mermaid: true,
135
145
 
136
- playground: {
137
- presets: ["ts", "vue"],
138
- },
146
+ // playground: {
147
+ // presets: ["ts", "vue"],
148
+ // },
139
149
 
140
150
  // install reveal.js before enabling it
141
151
  // revealJs: {
142
152
  // plugins: ["highlight", "math", "search", "notes", "zoom"],
143
153
  // },
144
154
 
145
- stylize: [
146
- {
147
- matcher: "Recommended",
148
- replacer: ({ tag }) => {
149
- if (tag === "em")
150
- return {
151
- tag: "Badge",
152
- attrs: { type: "tip" },
153
- content: "Recommended",
154
- };
155
- },
156
- },
157
- ],
158
- sub: true,
159
- sup: true,
160
- tabs: true,
161
- vPre: true,
162
-
163
155
  // install @vue/repl before enabling it
164
156
  // vuePlayground: true,
165
157
  },
@@ -6,12 +6,4 @@ category:
6
6
  - Guide
7
7
  ---
8
8
 
9
- ## Catalog
10
-
11
- - [Markdown Enhance](markdown.md)
12
-
13
- - [Page Config](page.md)
14
-
15
- - [Function Disable](disable.md)
16
-
17
- - [Encryption Demo](encrypt.md)
9
+ <AutoCatalog />
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  title: Disabling layout and features
3
3
  icon: gears
4
- order: 3
4
+ order: 4
5
5
  category:
6
6
  - Guide
7
7
  tag:
@@ -0,0 +1,31 @@
1
+ ---
2
+ title: Layout
3
+ icon: object-group
4
+ order: 2
5
+ category:
6
+ - Guide
7
+ tag:
8
+ - Layout
9
+ ---
10
+
11
+ The layout contains:
12
+
13
+ - [Navbar](https://theme-hope.vuejs.press/guide/layout/navbar.html)
14
+ - [Sidebar](https://theme-hope.vuejs.press/guide/layout/sidebar.html)
15
+ - [Footer](https://theme-hope.vuejs.press/guide/layout/footer.html)
16
+
17
+ Also each page can contain:
18
+
19
+ - [BreadCrumb](https://theme-hope.vuejs.press/guide/layout/breadcrumb.html)
20
+ - [Title and information](https://theme-hope.vuejs.press/guide/feature/page-info.html)
21
+ - [TOC (Table of Contents)](https://theme-hope.vuejs.press/guide/layout/page.html#header-list)
22
+ - [Meta information including update time and contributors](https://theme-hope.vuejs.press/guide/feature/meta.html)
23
+ - [Comments](https://theme-hope.vuejs.press/guide/feature/comment.html)
24
+
25
+ The theme also has the following elements:
26
+
27
+ - [Darkmode button](https://theme-hope.vuejs.press/guide/interface/darkmode.html)
28
+ - [Back to top button](https://theme-hope.vuejs.press/guide/interface/others.html#back-to-top-button)
29
+ - [Print button](https://theme-hope.vuejs.press/guide/interface/others.html#print-button)
30
+
31
+ You can customize them in theme options and page frontmatter.