create-vuepress-theme-hope 2.0.0-rc.2 → 2.0.0-rc.20
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/index.js +14 -14
- package/package.json +9 -9
- package/template/blog/config/base/logo.ts +2 -0
- package/template/blog/config/en/sidebar.ts +5 -1
- package/template/blog/config/en/theme.ts +40 -38
- package/template/blog/config/multi/sidebar/en.ts +5 -1
- package/template/blog/config/multi/sidebar/zh.ts +5 -1
- package/template/blog/config/multi/theme.ts +40 -38
- package/template/blog/config/zh/config.ts +1 -1
- package/template/blog/config/zh/sidebar.ts +5 -1
- package/template/blog/config/zh/theme.ts +56 -52
- package/template/blog/en/README.md +2 -2
- package/template/blog/en/demo/README.md +1 -9
- package/template/blog/en/demo/disable.md +1 -1
- package/template/blog/en/demo/layout.md +31 -0
- package/template/blog/en/demo/markdown.md +34 -168
- package/template/blog/en/demo/page.md +67 -20
- package/template/blog/zh/README.md +2 -2
- package/template/blog/zh/demo/README.md +1 -9
- package/template/blog/zh/demo/disable.md +1 -1
- package/template/blog/zh/demo/encrypt.md +1 -1
- package/template/blog/zh/demo/layout.md +31 -0
- package/template/blog/zh/demo/markdown.md +34 -168
- package/template/blog/zh/demo/page.md +70 -19
- package/template/docs/config/en/sidebar.ts +5 -1
- package/template/docs/config/en/theme.ts +36 -35
- package/template/docs/config/multi/sidebar/en.ts +5 -1
- package/template/docs/config/multi/sidebar/zh.ts +5 -1
- package/template/docs/config/multi/theme.ts +36 -35
- package/template/docs/config/zh/config.ts +1 -1
- package/template/docs/config/zh/sidebar.ts +5 -1
- package/template/docs/config/zh/theme.ts +53 -47
- package/template/docs/en/README.md +6 -1
- package/template/docs/en/demo/README.md +1 -9
- package/template/docs/en/demo/disable.md +1 -1
- package/template/docs/en/demo/layout.md +31 -0
- package/template/docs/en/demo/markdown.md +34 -168
- package/template/docs/en/demo/page.md +67 -18
- package/template/docs/zh/README.md +6 -1
- package/template/docs/zh/demo/README.md +1 -9
- package/template/docs/zh/demo/disable.md +1 -1
- package/template/docs/zh/demo/encrypt.md +1 -1
- package/template/docs/zh/demo/layout.md +31 -0
- package/template/docs/zh/demo/markdown.md +33 -167
- package/template/docs/zh/demo/page.md +72 -19
- package/template/blog/en/slides.md +0 -433
- package/template/blog/zh/slides.md +0 -429
- package/template/docs/en/slides.md +0 -433
- package/template/docs/zh/slides.md +0 -429
package/lib/index.js
CHANGED
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
import{existsSync as f,readFileSync as S,writeFileSync as v,readdirSync as w,mkdirSync as
|
|
3
|
-
启动成功后,请在浏览器输入给出的开发服务器地址(默认为 'localhost:8080')`},question:{packageManager:"选择包管理器",i18n:"项目需要用到多语言么?",git:"是否初始化 Git 仓库?",workflow:"是否需要一个自动部署文档到 GitHub Pages 的工作流?",preset:"你想要创建什么类型的项目?",devServer:"是否想要现在启动 Demo 查看?",name:"设置应用名称",version:"设置应用版本号",description:"设置应用描述",license:"设置协议"},hint:{install:`这可能需要数分钟,请耐心等待.
|
|
4
|
-
我们无法正确输出子进程的进度条,所以进程可能会看似未响应`,finish:"模板已成功生成!",devServer:e=>`提示: 请使用 "${e} run docs:dev" 命令启动开发服务器`},error:{name:"应用名称应只包含小写字母、数字和连接线 (-)",version:"此版本无效,版本号应为 'x.x.x'",preset:"预设 (--preset) 仅支持
|
|
2
|
+
import{existsSync as f,readFileSync as S,writeFileSync as v,readdirSync as w,mkdirSync as I,statSync as j,createReadStream as O,createWriteStream as R}from"node:fs";import{resolve as a,join as D,dirname as M}from"node:path";import{cac as W}from"cac";import{execaCommandSync as p,execaCommand as F}from"execa";import l from"inquirer";import{createRequire as H}from"node:module";import{fileURLToPath as J}from"node:url";const x=["vite","webpack"],G=["blog","docs"],Y={简体中文:{flow:{getVersion:"获取依赖的最新版本...",createPackage:"生成 package.json...",updatePackage:"更新 package.json...",generateTemplate:"生成模板...",install:"安装依赖...",devServer:`启动开发服务器...
|
|
3
|
+
启动成功后,请在浏览器输入给出的开发服务器地址(默认为 'localhost:8080')`},question:{packageManager:"选择包管理器",i18n:"项目需要用到多语言么?",git:"是否初始化 Git 仓库?",workflow:"是否需要一个自动部署文档到 GitHub Pages 的工作流?",bundler:"你想要使用哪个打包器?",preset:"你想要创建什么类型的项目?",devServer:"是否想要现在启动 Demo 查看?",name:"设置应用名称",version:"设置应用版本号",description:"设置应用描述",license:"设置协议"},hint:{install:`这可能需要数分钟,请耐心等待.
|
|
4
|
+
我们无法正确输出子进程的进度条,所以进程可能会看似未响应`,finish:"模板已成功生成!",devServer:e=>`提示: 请使用 "${e} run docs:dev" 命令启动开发服务器`},error:{name:"应用名称应只包含小写字母、数字和连接线 (-)",version:"此版本无效,版本号应为 'x.x.x'",bundler:"打包器 (--bundler) 仅支持 vite 或 webpack",preset:"预设 (--preset) 仅支持 docs 或 blog",outputDirMissing:e=>`"[dir]" 的方括号表示此处为一个参数,你应该替换为自己想使用的文件夹名称,如 "my-blog", "project-docs" 等!
|
|
5
5
|
例如: "${e} init vuepress-theme-hope project-docs"`,updateDirMissing:e=>`"[dir]" 的方括号表示此处为一个参数,你应该替换为自己想使用的文件夹名称,如 "src", "docs" 等!
|
|
6
6
|
例如: "${e} init vuepress-theme-hope docs"`,dirNotEmpty:e=>`目标文件夹 "${e}" 不为空,请选择一个空文件夹或者手动删除文件夹中的文件`}},"english (US)":{flow:{getVersion:"Getting latest version of deps...",createPackage:"Generating package.json...",updatePackage:"Updating package.json...",generateTemplate:"Generating Template...",install:"Installing Deps...",devServer:`Staring dev server...
|
|
7
|
-
After the dev server starts running, please visit the given server link ('localhost:8080' by default)`},question:{i18n:"Does the project need multiple languages?",git:"Initialize a git repository?",workflow:"Do you need a GitHub workflow to deploy docs on GitHub pages?",preset:"What type of project do you want to create?",packageManager:"Choose package manager",devServer:"Would you like to preview template now?",name:"Your project name",version:"Your project version",description:"Your project description",license:"Your project license"},hint:{install:`This may take a few minutes, please be patient.
|
|
8
|
-
We can not correctly output progress bar from child process, so the process may look stuck.`,finish:"Successful Generated!",devServer:e=>`Hint: You should execute "${e} run docs:dev" to start dev server.`},error:{name:"package name should only contain lowercase characters, numbers and dash",version:"This version is not a valid one. Version should be like 'x.x.x'",preset:'preset (--preset) only support "
|
|
7
|
+
After the dev server starts running, please visit the given server link ('localhost:8080' by default)`},question:{i18n:"Does the project need multiple languages?",git:"Initialize a git repository?",workflow:"Do you need a GitHub workflow to deploy docs on GitHub pages?",bundler:"Which bundler do you want to use?",preset:"What type of project do you want to create?",packageManager:"Choose package manager",devServer:"Would you like to preview template now?",name:"Your project name",version:"Your project version",description:"Your project description",license:"Your project license"},hint:{install:`This may take a few minutes, please be patient.
|
|
8
|
+
We can not correctly output progress bar from child process, so the process may look stuck.`,finish:"Successful Generated!",devServer:e=>`Hint: You should execute "${e} run docs:dev" to start dev server.`},error:{name:"package name should only contain lowercase characters, numbers and dash",version:"This version is not a valid one. Version should be like 'x.x.x'",bundler:'bundler (--bundler) only support "vite" or "webpack"',preset:'preset (--preset) only support "docs" or "blog"',outputDirMissing:e=>`The brackets in "[dir]" means it is an argument, you should replace it with folder name you want to use! E.g.: "my-blog", "project-docs"
|
|
9
9
|
For example: "${e} init vuepress-theme-hope project-docs"`,updateDirMissing: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"
|
|
10
|
-
For example: "${e} init vuepress-theme-hope docs"`,dirNotEmpty:e=>`Target folder "${e}" is not empty, please choose an empty folder or delete files in it.`}}},
|
|
10
|
+
For example: "${e} init vuepress-theme-hope docs"`,dirNotEmpty:e=>`Target folder "${e}" is not empty, please choose an empty folder or delete files in it.`}}},U=async()=>{const{language:e}=await l.prompt([{name:"language",type:"list",message:"Select a language to display / 选择显示语言",choices:["english (US)","简体中文"]}]);return{lang:e,locale:Y[e]}},V=e=>`
|
|
11
11
|
node_modules/
|
|
12
12
|
${e}/.vuepress/.cache/
|
|
13
13
|
${e}/.vuepress/.temp/
|
|
14
14
|
${e}/.vuepress/dist/
|
|
15
|
-
`,
|
|
15
|
+
`,T=(e,t=process.cwd())=>{const s=a(t,".gitignore"),r=f(s)?S(s,{encoding:"utf-8"}):"";v(s,`${r}${V(e)}`,{encoding:"utf-8"})},L=(e,t,s)=>`
|
|
16
16
|
name: ${s==="简体中文"?"部署文档":"Deploy Docs"}
|
|
17
17
|
|
|
18
18
|
on:
|
|
@@ -48,22 +48,22 @@ ${e==="pnpm"?` - name: ${s==="简体中文"?"安装 pnpm":"Install pnpm"}
|
|
|
48
48
|
node-version: 20
|
|
49
49
|
cache: ${e}
|
|
50
50
|
|
|
51
|
-
${e
|
|
51
|
+
${e==="pnpm"?"":` - name: ${s==="简体中文"?"安装依赖":"Install Deps"}
|
|
52
52
|
run: ${e==="npm"?"npm ci":`${e} install --frozen-lockfile`}
|
|
53
|
-
|
|
53
|
+
`}
|
|
54
54
|
- name: ${s==="简体中文"?"构建文档":"Build Docs"}
|
|
55
55
|
env:
|
|
56
56
|
NODE_OPTIONS: --max_old_space_size=8192
|
|
57
57
|
run: |-
|
|
58
58
|
${e} run docs:build
|
|
59
|
-
> ${
|
|
59
|
+
> ${D(t,".vuepress/dist/.nojekyll").replace(/\\/g,"/")}
|
|
60
60
|
|
|
61
61
|
- name: ${s==="简体中文"?"部署文档":"Deploy Docs"}
|
|
62
62
|
uses: JamesIves/github-pages-deploy-action@v4
|
|
63
63
|
with:
|
|
64
64
|
# ${s==="简体中文"?"这是文档部署到的分支名称":"This is the branch where the docs are deployed to"}
|
|
65
65
|
branch: gh-pages
|
|
66
|
-
folder: ${
|
|
67
|
-
`,
|
|
68
|
-
`,{encoding:"utf-8"})}else{console.log(t.flow.createPackage);const
|
|
69
|
-
`,{encoding:"utf-8"})}},P="https://registry.npmmirror.com/",
|
|
66
|
+
folder: ${D(t,".vuepress/dist").replace(/\\/g,"/")}
|
|
67
|
+
`,B=/^(?:@[a-z0-9-*~][a-z0-9-*._~]*\/)?[a-z0-9-~][a-z0-9-._~]*$/u,K=/^[0-9]+\.[0-9]+\.(?:[0-9]+|[0-9]+-[a-z]+\.[0-9])$/u,{isArray:Q}=Array,b=e=>Object.prototype.toString.call(e)==="[object Object]",$=(e,...t)=>{if(t.length===0)return e;const s=t.shift()||null;return s&&Object.entries(s).forEach(([r,n])=>{r==="__proto__"||r==="constructor"||(b(e[r])&&b(n)?$(e[r],n):Q(n)?e[r]=[...n]:b(n)?e[r]={...n}:e[r]=s[r])}),$(e,...t)},y=e=>{try{w(e)}catch{try{I(e,{recursive:!0})}catch{}}},_=(e,t)=>{const s=M(t);y(s);const r=O(e),n=R(t);r.pipe(n)},q=(e,t)=>{y(t),w(e,{withFileTypes:!0}).forEach(s=>{s.isFile()?_(`${e}/${s.name}`,`${t}/${s.name}`):s.isDirectory()&&q(`${e}/${s.name}`,`${t}/${s.name}`)})},u=(e,t)=>{j(e).isDirectory()?q(e,t):j(e).isFile()&&_(e,t)},X=(e=process.cwd())=>{try{return p("git status",{cwd:e}),!0}catch{return!1}},Z=()=>{try{return p("git --version"),!0}catch{return!1}},ee=()=>{try{return p("pnpm --version",{stdio:"ignore"}).exitCode===0}catch{return!1}},te=()=>{try{return p("yarn --version",{stdio:"ignore"}).exitCode===0}catch{return!1}},k=["npm"];te()&&k.unshift("yarn"),ee()&&k.unshift("pnpm");const se=async e=>(await l.prompt([{name:"packageManager",type:"list",message:e,choices:k}])).packageManager,re=J(import.meta.url),d=M(re),E=async({cwd:e=process.cwd(),targetDir:t,lang:s,locale:r,preset:n,packageManager:o})=>{const{i18n:i,workflow:g}=await l.prompt([{name:"i18n",type:"confirm",message:r.question.i18n,default:!1},{name:"workflow",type:"confirm",message:r.question.workflow,default:!0}]);n||({preset:n}=await l.prompt([{name:"preset",type:"list",message:r.question.preset,choices:G}])),console.log(r.flow.generateTemplate);const c=n;if(u(a(d,"../template/public"),a(e,t,"./.vuepress/public")),u(a(d,"../template",c,"config/base"),a(e,t,".vuepress")),i?(u(a(d,"../template",c,"en"),a(e,t)),u(a(d,"../template",c,"zh"),a(e,t,"zh")),u(a(d,"../template",c,"config/multi"),a(e,t,".vuepress"))):s==="简体中文"?(u(a(d,"../template",c,"zh"),a(e,t)),u(a(d,"../template",c,"config/zh"),a(e,t,".vuepress"))):(u(a(d,"../template",c,"en"),a(e,t)),u(a(d,"../template",c,"config/en"),a(e,t,".vuepress"))),g){const m=a(e,".github/workflows");y(m),v(a(m,"deploy-docs.yml"),L(o,t,s),{encoding:"utf-8"})}if(X(e))T(t,e);else if(Z()){const{git:m}=await l.prompt([{name:"git",type:"confirm",message:r.question.git,default:!0}]);m&&(p("git init",{cwd:e}),T(t,e))}},{version:z}=H(import.meta.url)("create-vuepress-theme-hope/package.json"),ne=(e,t,s)=>({"docs:build":`vuepress-${t} build ${s}`,"docs:clean-dev":`vuepress-${t} dev ${s} --clean-cache`,"docs:dev":`vuepress-${t} dev ${s}`,"docs:update-package":`${e==="npm"?"npx":`${e} dlx`} vp-update`}),N=async({packageManager:e,locale:t,source:s,bundler:r,cwd:n=process.cwd()})=>{r||({bundler:r}=await l.prompt([{name:"bundler",type:"list",message:t.question.bundler,choices:x}]));const o=a(n,"package.json"),i=ne(e,r,s),g={[`@vuepress/bundler-${r}`]:"^2.0.0-rc.2",vue:"^3.4.15",vuepress:"2.0.0-rc.2","vuepress-theme-hope":z};if(f(o)){console.log(t.flow.updatePackage);const c=JSON.parse(S(o,{encoding:"utf-8"}));$(c,{scripts:i,devDependencies:g}),v(o,`${JSON.stringify(c,null,2)}
|
|
68
|
+
`,{encoding:"utf-8"})}else{console.log(t.flow.createPackage);const c={...await l.prompt([{name:"name",type:"input",message:t.question.name,default:"vuepress-theme-hope-template",validate:m=>B.exec(m)?!0:t.error.name},{name:"version",type:"input",message:t.question.version,default:"2.0.0",validate:m=>K.exec(m)?!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:i,devDependencies:g};v(o,`${JSON.stringify(c,null,2)}
|
|
69
|
+
`,{encoding:"utf-8"})}},P="https://registry.npmmirror.com/",ae=(e,t)=>p(`${e} config get ${t?"npmRegistryServer":"registry"}`).stdout,oe=async(e,t)=>{const s=e==="yarn"&&!p("yarn --version").stdout.startsWith("1"),r=ae(e,s);if(/https:\/\/registry\.npm\.taobao\.org\/?/.test(r)&&(console.error("npm.taobao.org is no longer available, resetting it to npmmirror.com"),p(`${e} config set ${s?"npmRegistryServer":"registry"} ${P}`)),t==="简体中文"){const{registry:n}=await l.prompt([{name:"registry",type:"list",message:"选择你想使用的源",choices:["国内镜像源","当前源"]}]);return n==="国内镜像源"?P:r}return r},A=async(e,{bundler:t,preset:s})=>{if(!e)return h.outputHelp();const{lang:r,locale:n}=await U();if(t&&!x.includes(t))return console.log(n.error.bundler);if(s&&!G.includes(s))return console.log(n.error.preset);const o=a(process.cwd(),e);if(f(o)&&w(o).length)return console.error(n.error.dirNotEmpty(e));const i=await se(n.question.packageManager);return e.startsWith("[")&&e.endsWith("]")?console.log(n.error.updateDirMissing(i)):(y(o),{lang:r,locale:n,packageManager:i})},C=async({cwd:e=process.cwd(),lang:t,locale:s,packageManager:r})=>{const n=r==="pnpm"?"":await oe(r,t);console.log(s.flow.install),console.warn(s.hint.install),p(`${r} install ${n?`--registry ${n}`:""}`,{cwd:e,stdout:"inherit"}),console.log(s.hint.finish);const{choice:o}=await l.prompt([{name:"choice",type:"confirm",message:s.question.devServer,default:!0}]);o?(console.log(s.flow.devServer),await F(`${r} run docs:dev`,{cwd:e,stdout:"inherit"})):console.log(s.hint.devServer(r))},h=W("vuepress-theme-hope");h.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,{bundler:t=null,preset:s=null})=>{const r=a(process.cwd(),e),n=await A(e,{bundler:t,preset:s});if(n){const{lang:o,locale:i,packageManager:g}=n;await N({bundler:t,locale:i,packageManager:g,cwd:e,source:"src"}),await E({preset:s,lang:o,locale:i,packageManager:g,cwd:r,targetDir:"src"}),await C({lang:o,locale:i,packageManager:g,cwd:r})}}),h.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,{bundler:t=null,preset:s=null})=>{const r=await A(e,{bundler:t,preset:s});if(r){const{lang:n,locale:o,packageManager:i}=r;await N({bundler:t,packageManager:i,locale:o,source:e}),await E({packageManager:i,lang:n,locale:o,preset:s,targetDir:e}),await C({lang:n,locale:o,packageManager:i})}}),h.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"}]),h.version(z),h.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
|
+
"version": "2.0.0-rc.20",
|
|
4
4
|
"description": "Create vuepress-theme-hope demo project helper",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"create",
|
|
@@ -37,23 +37,23 @@
|
|
|
37
37
|
"lib",
|
|
38
38
|
"template"
|
|
39
39
|
],
|
|
40
|
-
"engines": {
|
|
41
|
-
"node": ">=18.16.0",
|
|
42
|
-
"npm": ">=8",
|
|
43
|
-
"pnpm": ">=7",
|
|
44
|
-
"yarn": ">=2"
|
|
45
|
-
},
|
|
46
40
|
"dependencies": {
|
|
47
41
|
"cac": "6.7.14",
|
|
48
42
|
"execa": "8.0.1",
|
|
49
|
-
"inquirer": "9.2.
|
|
43
|
+
"inquirer": "9.2.13"
|
|
50
44
|
},
|
|
51
45
|
"devDependencies": {
|
|
52
46
|
"@types/inquirer": "9.0.7"
|
|
53
47
|
},
|
|
48
|
+
"engines": {
|
|
49
|
+
"node": ">=18.16.0",
|
|
50
|
+
"npm": ">=8",
|
|
51
|
+
"pnpm": ">=7",
|
|
52
|
+
"yarn": ">=2"
|
|
53
|
+
},
|
|
54
54
|
"scripts": {
|
|
55
55
|
"build": "rollup -c rollup.config.ts --configPlugin esbuild",
|
|
56
|
-
"clean": "rimraf ./lib ./*.tsbuildinfo",
|
|
56
|
+
"clean": "rimraf --glob ./lib ./*.tsbuildinfo",
|
|
57
57
|
"dev": "pnpm dev:ts",
|
|
58
58
|
"dev:ts": "tsc -b tsconfig.build.json --watch"
|
|
59
59
|
}
|
|
@@ -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>';
|
|
@@ -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",
|
|
@@ -80,6 +78,9 @@ export default hopeTheme({
|
|
|
80
78
|
editLink: "Edit this page on GitHub",
|
|
81
79
|
},
|
|
82
80
|
|
|
81
|
+
// enable it to preview all changes in time
|
|
82
|
+
// hotReload: true,
|
|
83
|
+
|
|
83
84
|
plugins: {
|
|
84
85
|
blog: true,
|
|
85
86
|
|
|
@@ -91,79 +92,80 @@ export default hopeTheme({
|
|
|
91
92
|
// serverURL: "https://waline-comment.vuejs.press",
|
|
92
93
|
// },
|
|
93
94
|
|
|
95
|
+
components: {
|
|
96
|
+
components: ["Badge", "VPCard"],
|
|
97
|
+
},
|
|
98
|
+
|
|
94
99
|
// all features are enabled for demo, only preserve features you need here
|
|
95
100
|
mdEnhance: {
|
|
96
101
|
align: true,
|
|
97
102
|
attrs: true,
|
|
103
|
+
codetabs: true,
|
|
104
|
+
component: true,
|
|
105
|
+
demo: true,
|
|
106
|
+
figure: true,
|
|
107
|
+
imgLazyload: true,
|
|
108
|
+
imgSize: true,
|
|
109
|
+
include: true,
|
|
110
|
+
mark: true,
|
|
111
|
+
stylize: [
|
|
112
|
+
{
|
|
113
|
+
matcher: "Recommended",
|
|
114
|
+
replacer: ({ tag }) => {
|
|
115
|
+
if (tag === "em")
|
|
116
|
+
return {
|
|
117
|
+
tag: "Badge",
|
|
118
|
+
attrs: { type: "tip" },
|
|
119
|
+
content: "Recommended",
|
|
120
|
+
};
|
|
121
|
+
},
|
|
122
|
+
},
|
|
123
|
+
],
|
|
124
|
+
sub: true,
|
|
125
|
+
sup: true,
|
|
126
|
+
tabs: true,
|
|
127
|
+
vPre: true,
|
|
98
128
|
|
|
99
129
|
// install chart.js before enabling it
|
|
100
130
|
// chart: true,
|
|
101
131
|
|
|
102
|
-
codetabs: true,
|
|
103
|
-
|
|
104
132
|
// insert component easily
|
|
105
|
-
// component: true,
|
|
106
|
-
|
|
107
|
-
demo: true,
|
|
108
133
|
|
|
109
134
|
// install echarts before enabling it
|
|
110
135
|
// echarts: true,
|
|
111
136
|
|
|
112
|
-
figure: true,
|
|
113
|
-
|
|
114
137
|
// install flowchart.ts before enabling it
|
|
115
138
|
// flowchart: true,
|
|
116
139
|
|
|
117
140
|
// gfm requires mathjax-full to provide tex support
|
|
118
141
|
// gfm: true,
|
|
119
142
|
|
|
120
|
-
imgLazyload: true,
|
|
121
|
-
imgSize: true,
|
|
122
|
-
include: true,
|
|
123
|
-
|
|
124
143
|
// install katex before enabling it
|
|
125
144
|
// katex: true,
|
|
126
145
|
|
|
127
146
|
// install mathjax-full before enabling it
|
|
128
147
|
// mathjax: true,
|
|
129
148
|
|
|
130
|
-
mark: true,
|
|
131
|
-
|
|
132
149
|
// install mermaid before enabling it
|
|
133
150
|
// mermaid: true,
|
|
134
151
|
|
|
135
|
-
playground: {
|
|
136
|
-
|
|
137
|
-
},
|
|
152
|
+
// playground: {
|
|
153
|
+
// presets: ["ts", "vue"],
|
|
154
|
+
// },
|
|
138
155
|
|
|
139
156
|
// install reveal.js before enabling it
|
|
140
157
|
// revealJs: {
|
|
141
158
|
// plugins: ["highlight", "math", "search", "notes", "zoom"],
|
|
142
159
|
// },
|
|
143
160
|
|
|
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
161
|
// install @vue/repl before enabling it
|
|
163
162
|
// vuePlayground: true,
|
|
163
|
+
|
|
164
|
+
// install sandpack-vue3 before enabling it
|
|
165
|
+
// sandpack: true,
|
|
164
166
|
},
|
|
165
167
|
|
|
166
|
-
// uncomment these if you want a PWA
|
|
168
|
+
// install vuepress-plugin-pwa2 and uncomment these if you want a PWA
|
|
167
169
|
// pwa: {
|
|
168
170
|
// favicon: "/favicon.ico",
|
|
169
171
|
// cacheHTML: true,
|
|
@@ -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",
|
|
@@ -113,6 +111,9 @@ export default hopeTheme({
|
|
|
113
111
|
},
|
|
114
112
|
},
|
|
115
113
|
|
|
114
|
+
// enable it to preview all changes in time
|
|
115
|
+
// hotReload: true,
|
|
116
|
+
|
|
116
117
|
plugins: {
|
|
117
118
|
blog: true,
|
|
118
119
|
|
|
@@ -124,79 +125,80 @@ export default hopeTheme({
|
|
|
124
125
|
// serverURL: "https://waline-comment.vuejs.press",
|
|
125
126
|
// },
|
|
126
127
|
|
|
128
|
+
components: {
|
|
129
|
+
components: ["Badge", "VPCard"],
|
|
130
|
+
},
|
|
131
|
+
|
|
127
132
|
// all features are enabled for demo, only preserve features you need here
|
|
128
133
|
mdEnhance: {
|
|
129
134
|
align: true,
|
|
130
135
|
attrs: true,
|
|
136
|
+
codetabs: true,
|
|
137
|
+
component: true,
|
|
138
|
+
demo: true,
|
|
139
|
+
figure: true,
|
|
140
|
+
imgLazyload: true,
|
|
141
|
+
imgSize: true,
|
|
142
|
+
include: true,
|
|
143
|
+
mark: true,
|
|
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,
|
|
131
161
|
|
|
132
162
|
// install chart.js before enabling it
|
|
133
163
|
// chart: true,
|
|
134
164
|
|
|
135
|
-
codetabs: true,
|
|
136
|
-
|
|
137
165
|
// insert component easily
|
|
138
|
-
// component: true,
|
|
139
|
-
|
|
140
|
-
demo: true,
|
|
141
166
|
|
|
142
167
|
// install echarts before enabling it
|
|
143
168
|
// echarts: true,
|
|
144
169
|
|
|
145
|
-
figure: true,
|
|
146
|
-
|
|
147
170
|
// install flowchart.ts before enabling it
|
|
148
171
|
// flowchart: true,
|
|
149
172
|
|
|
150
173
|
// gfm requires mathjax-full to provide tex support
|
|
151
174
|
// gfm: true,
|
|
152
175
|
|
|
153
|
-
imgLazyload: true,
|
|
154
|
-
imgSize: true,
|
|
155
|
-
include: true,
|
|
156
|
-
|
|
157
176
|
// install katex before enabling it
|
|
158
177
|
// katex: true,
|
|
159
178
|
|
|
160
179
|
// install mathjax-full before enabling it
|
|
161
180
|
// mathjax: true,
|
|
162
181
|
|
|
163
|
-
mark: true,
|
|
164
|
-
|
|
165
182
|
// install mermaid before enabling it
|
|
166
183
|
// mermaid: true,
|
|
167
184
|
|
|
168
|
-
playground: {
|
|
169
|
-
|
|
170
|
-
},
|
|
185
|
+
// playground: {
|
|
186
|
+
// presets: ["ts", "vue"],
|
|
187
|
+
// },
|
|
171
188
|
|
|
172
189
|
// install reveal.js before enabling it
|
|
173
190
|
// revealJs: {
|
|
174
191
|
// plugins: ["highlight", "math", "search", "notes", "zoom"],
|
|
175
192
|
// },
|
|
176
193
|
|
|
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
194
|
// install @vue/repl before enabling it
|
|
196
195
|
// vuePlayground: true,
|
|
196
|
+
|
|
197
|
+
// install sandpack-vue3 before enabling it
|
|
198
|
+
// sandpack: true,
|
|
197
199
|
},
|
|
198
200
|
|
|
199
|
-
// uncomment these if you want a PWA
|
|
201
|
+
// install vuepress-plugin-pwa2 and uncomment these if you want a PWA
|
|
200
202
|
// pwa: {
|
|
201
203
|
// favicon: "/favicon.ico",
|
|
202
204
|
// cacheHTML: true,
|