create-vuepress-theme-hope 2.0.0-beta.79 → 2.0.0-beta.81
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 +1 -1
- package/package.json +1 -1
- package/template/en-US/.vuepress/theme.ts +1 -1
- package/template/en-US/guide/markdown.md +15 -15
- package/template/i18n/.vuepress/theme.ts +1 -1
- package/template/i18n/guide/markdown.md +16 -14
- package/template/i18n/zh/guide/markdown.md +11 -9
- package/template/zh-CN/.vuepress/theme.ts +1 -1
- package/template/zh-CN/guide/markdown.md +11 -9
package/lib/index.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
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{existsSync as r,readFileSync as o,writeFileSync as a,readdirSync as i,mkdirSync as c,statSync as p,createReadStream as l,createWriteStream as u}from"fs";import{resolve as m,dirname as d,join as g}from"path";import{get as h}from"https";import{fileURLToPath as v}from"url";const f=(()=>{try{return 0===s("pnpm --version",{stdio:"ignore"}).exitCode}catch(e){return!1}})()?"pnpm":(()=>{try{return 0===s("yarn --version",{stdio:"ignore"}).exitCode}catch(e){return!1}})()?"yarn":"npm",y={"简体中文":{getVersion:"获取依赖的最新版本...",createPackage:"生成 package.json...",updatePackage:"更新 package.json...",template:"生成模板...",wait:"这可能需要数分钟,请耐心等待.\n我们无法正确输出子进程的进度条,所以进程可能会看似未响应",install:"安装依赖...",success:"模板已成功生成!",devServerAsk:"是否想要现在启动 Demo 查看?",devServer:"启动开发服务器...\n启动成功后,请在浏览器输入给出的开发服务器地址(默认为 'localhost:8080')",hint:`提示: 请使用 "${f} run docs:dev" 命令启动开发服务器`,nameMessage:"设置应用名称",nameError:"应用名称应只包含小写字母、数字和连接线 (-)",versionMessage:"设置应用版本号",versionError:"此版本无效,版本号应为 'x.x.x'",dirError:'"[dir]" 的方括号表示此处为一个参数,你应该替换为自己想使用的文件夹名称,如 "src", "docs" 等!\n例如: "npm init vuepress-theme-hope@next docs"',descriptionMessage:"设置应用描述",licenseMessage:"设置协议",i18nMessage:"项目需要用到多语言么?",gitMessage:"是否初始化 Git 仓库?",workflowMessage:"是否需要一个自动部署文档到 GitHub Pages 的工作流?"},"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)",hint:`Hint: You should execute "${f} run docs:dev" to start dev server.`,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'",dirError:'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: "npm init vuepress-theme-hope@next docs"',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?"}},w=async e=>{for(let s=1;s<=3;s++){const n=await new Promise(((s,n)=>{h(`${"npm"===f?"https://registry.npmjs.org":"https://registry.yarnpkg.com"}/-/package/${e}/dist-tags`,(e=>{if(200===e.statusCode){let n="";e.on("data",(e=>n+=e)),e.on("end",(()=>{s(JSON.parse(n).next)}))}else n()})).on("error",(()=>{n()}))})).catch((()=>{console.log(`Get ${e} version failed, [${s}/3]`)}));if(n)return n}throw new Error(`Get ${e} version failed!`)},$=(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]:$(e[s],n[s])})),$(e,...s)},k=async(e,s)=>{const n=m(process.cwd(),"package.json"),i=(e=>({"docs:build":`vuepress build ${e}`,"docs:clean-dev":`vuepress dev ${e} --clean-cache`,"docs:dev":`vuepress dev ${e}`}))(e),c=await(async e=>Object.fromEntries(await Promise.all(e.map((async e=>[e,`^${await w(e)}`])))))(["@vuepress/client","vue","vuepress","vuepress-theme-hope"]);if(r(n)){console.log(s.updatePackage);const e=JSON.parse(o(n,{encoding:"utf-8"}));$(e,{scripts:i,devDependencies:c}),a(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"}]),scripts:i,devDependencies:c};a(n,`${JSON.stringify(e,null,2)}\n`,{encoding:"utf-8"})}},b=async e=>{const n=s(`${f} config get registry`).stdout;if("简体中文"===e){const{registry:e}=await t.prompt([{name:"registry",type:"list",message:"选择你想使用的源",choices:["国内镜像源","当前源"]}]);return"国内镜像源"===e?"https://registry.npmmirror.com/":n}return n},x=e=>{try{i(e)}catch(s){c(e,{recursive:!0})}},M=(e,s)=>{const n=d(s);x(n);const t=l(e),r=u(s);t.pipe(r)},j=(e,s)=>{x(s);i(e,{withFileTypes:!0}).forEach((n=>{n.isFile()?M(`${e}/${n.name}`,`${s}/${n.name}`):n.isDirectory()&&j(`${e}/${n.name}`,`${s}/${n.name}`)}))},S=v(import.meta.url),D=d(S),E=e=>{const s=m(process.cwd(),".gitignore"),n=r(s)?o(s,{encoding:"utf-8"}):"";a(s,`${n}${(e=>`\nnode_modules/\n${e}/.vuepress/.cache/\n${e}/.vuepress/.temp/\n${e}/.vuepress/dist/\n`)(e)}`,{encoding:"utf-8"})},G=async(e,n,r)=>{const{i18n:o,workflow:i}=await t.prompt([{name:"i18n",type:"confirm",message:r.i18nMessage,default:!1},{name:"workflow",type:"confirm",message:r.workflowMessage,default:!0}]);console.log(r.template);var c,l;if(c=m(D,"../template",o?"i18n":"简体中文"===n?"zh-CN":"en-US"),l=m(process.cwd(),e),p(c).isDirectory()?j(c,l):p(c).isFile()&&M(c,l),i){const s=m(process.cwd(),".github/workflows");x(s),a(m(s,"deploy-docs.yml"),((e,s)=>`\nname: ${"简体中文"===s?"部署文档":"Deploy Docs"}\n\non:\n push:\n branches:\n # ${"简体中文"===s?"确保这是你正在使用的分支名称":"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 # ${"简体中文"===s?"如果你文档需要 Git 子模块,取消注释下一行":"if your docs needs submodules, uncomment the following line"}\n # submodules: true\n\n${"pnpm"===f?`\n - name: ${"简体中文"===s?"安装 pnpm":"Install pnpm"}\n uses: pnpm/action-setup@v2\n with:\n version: 7\n run_install: true\n`:""}\n\n - name: ${"简体中文"===s?"设置 Node.js":"Setup Node.js"}\n uses: actions/setup-node@v3\n with:\n node-version: 16\n cache: ${f}\n\n - name: ${"简体中文"===s?"安装依赖":"Install Deps"}\n run: ${"npm"===f?"npm install":`${f} install --frozen-lockfile`}\n\n - name: ${"简体中文"===s?"构建文档":"Build Docs"}\n env:\n NODE_OPTIONS: --max_old_space_size=4096\n run: ${f} run docs:build\n\n - name: ${"简体中文"===s?"部署文档":"Deploy Docs"}\n uses: JamesIves/github-pages-deploy-action@v4\n with:\n # ${"简体中文"===s?"这是文档部署到的分支名称":"This is the branch where the docs are deployed to"}\n branch: gh-pages\n folder: ${g(e,".vuepress/dist").replace(/\\/g,"/")}\n\n`)(e,n),{encoding:"utf-8"})}if((()=>{try{return s("git log"),!0}catch{return!1}})())E(e);else if((()=>{try{return s("git log"),!0}catch{return!1}})()){const{git:n}=await t.prompt([{name:"git",type:"confirm",message:r.gitMessage,default:!0}]);n&&(s("git init"),E(e))}};var A="2.0.0-beta.
|
|
2
|
+
import{cac as e}from"cac";import{execaCommandSync as s,execaCommand as n}from"execa";import t from"inquirer";import{existsSync as r,readFileSync as o,writeFileSync as a,readdirSync as i,mkdirSync as c,statSync as p,createReadStream as l,createWriteStream as u}from"fs";import{resolve as m,dirname as d,join as g}from"path";import{get as h}from"https";import{fileURLToPath as v}from"url";const f=(()=>{try{return 0===s("pnpm --version",{stdio:"ignore"}).exitCode}catch(e){return!1}})()?"pnpm":(()=>{try{return 0===s("yarn --version",{stdio:"ignore"}).exitCode}catch(e){return!1}})()?"yarn":"npm",y={"简体中文":{getVersion:"获取依赖的最新版本...",createPackage:"生成 package.json...",updatePackage:"更新 package.json...",template:"生成模板...",wait:"这可能需要数分钟,请耐心等待.\n我们无法正确输出子进程的进度条,所以进程可能会看似未响应",install:"安装依赖...",success:"模板已成功生成!",devServerAsk:"是否想要现在启动 Demo 查看?",devServer:"启动开发服务器...\n启动成功后,请在浏览器输入给出的开发服务器地址(默认为 'localhost:8080')",hint:`提示: 请使用 "${f} run docs:dev" 命令启动开发服务器`,nameMessage:"设置应用名称",nameError:"应用名称应只包含小写字母、数字和连接线 (-)",versionMessage:"设置应用版本号",versionError:"此版本无效,版本号应为 'x.x.x'",dirError:'"[dir]" 的方括号表示此处为一个参数,你应该替换为自己想使用的文件夹名称,如 "src", "docs" 等!\n例如: "npm init vuepress-theme-hope@next docs"',descriptionMessage:"设置应用描述",licenseMessage:"设置协议",i18nMessage:"项目需要用到多语言么?",gitMessage:"是否初始化 Git 仓库?",workflowMessage:"是否需要一个自动部署文档到 GitHub Pages 的工作流?"},"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)",hint:`Hint: You should execute "${f} run docs:dev" to start dev server.`,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'",dirError:'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: "npm init vuepress-theme-hope@next docs"',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?"}},w=async e=>{for(let s=1;s<=3;s++){const n=await new Promise(((s,n)=>{h(`${"npm"===f?"https://registry.npmjs.org":"https://registry.yarnpkg.com"}/-/package/${e}/dist-tags`,(e=>{if(200===e.statusCode){let n="";e.on("data",(e=>n+=e)),e.on("end",(()=>{s(JSON.parse(n).next)}))}else n()})).on("error",(()=>{n()}))})).catch((()=>{console.log(`Get ${e} version failed, [${s}/3]`)}));if(n)return n}throw new Error(`Get ${e} version failed!`)},$=(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]:$(e[s],n[s])})),$(e,...s)},k=async(e,s)=>{const n=m(process.cwd(),"package.json"),i=(e=>({"docs:build":`vuepress build ${e}`,"docs:clean-dev":`vuepress dev ${e} --clean-cache`,"docs:dev":`vuepress dev ${e}`}))(e),c=await(async e=>Object.fromEntries(await Promise.all(e.map((async e=>[e,`^${await w(e)}`])))))(["@vuepress/client","vue","vuepress","vuepress-theme-hope"]);if(r(n)){console.log(s.updatePackage);const e=JSON.parse(o(n,{encoding:"utf-8"}));$(e,{scripts:i,devDependencies:c}),a(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"}]),scripts:i,devDependencies:c};a(n,`${JSON.stringify(e,null,2)}\n`,{encoding:"utf-8"})}},b=async e=>{const n=s(`${f} config get registry`).stdout;if("简体中文"===e){const{registry:e}=await t.prompt([{name:"registry",type:"list",message:"选择你想使用的源",choices:["国内镜像源","当前源"]}]);return"国内镜像源"===e?"https://registry.npmmirror.com/":n}return n},x=e=>{try{i(e)}catch(s){c(e,{recursive:!0})}},M=(e,s)=>{const n=d(s);x(n);const t=l(e),r=u(s);t.pipe(r)},j=(e,s)=>{x(s);i(e,{withFileTypes:!0}).forEach((n=>{n.isFile()?M(`${e}/${n.name}`,`${s}/${n.name}`):n.isDirectory()&&j(`${e}/${n.name}`,`${s}/${n.name}`)}))},S=v(import.meta.url),D=d(S),E=e=>{const s=m(process.cwd(),".gitignore"),n=r(s)?o(s,{encoding:"utf-8"}):"";a(s,`${n}${(e=>`\nnode_modules/\n${e}/.vuepress/.cache/\n${e}/.vuepress/.temp/\n${e}/.vuepress/dist/\n`)(e)}`,{encoding:"utf-8"})},G=async(e,n,r)=>{const{i18n:o,workflow:i}=await t.prompt([{name:"i18n",type:"confirm",message:r.i18nMessage,default:!1},{name:"workflow",type:"confirm",message:r.workflowMessage,default:!0}]);console.log(r.template);var c,l;if(c=m(D,"../template",o?"i18n":"简体中文"===n?"zh-CN":"en-US"),l=m(process.cwd(),e),p(c).isDirectory()?j(c,l):p(c).isFile()&&M(c,l),i){const s=m(process.cwd(),".github/workflows");x(s),a(m(s,"deploy-docs.yml"),((e,s)=>`\nname: ${"简体中文"===s?"部署文档":"Deploy Docs"}\n\non:\n push:\n branches:\n # ${"简体中文"===s?"确保这是你正在使用的分支名称":"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 # ${"简体中文"===s?"如果你文档需要 Git 子模块,取消注释下一行":"if your docs needs submodules, uncomment the following line"}\n # submodules: true\n\n${"pnpm"===f?`\n - name: ${"简体中文"===s?"安装 pnpm":"Install pnpm"}\n uses: pnpm/action-setup@v2\n with:\n version: 7\n run_install: true\n`:""}\n\n - name: ${"简体中文"===s?"设置 Node.js":"Setup Node.js"}\n uses: actions/setup-node@v3\n with:\n node-version: 16\n cache: ${f}\n\n - name: ${"简体中文"===s?"安装依赖":"Install Deps"}\n run: ${"npm"===f?"npm install":`${f} install --frozen-lockfile`}\n\n - name: ${"简体中文"===s?"构建文档":"Build Docs"}\n env:\n NODE_OPTIONS: --max_old_space_size=4096\n run: ${f} run docs:build\n\n - name: ${"简体中文"===s?"部署文档":"Deploy Docs"}\n uses: JamesIves/github-pages-deploy-action@v4\n with:\n # ${"简体中文"===s?"这是文档部署到的分支名称":"This is the branch where the docs are deployed to"}\n branch: gh-pages\n folder: ${g(e,".vuepress/dist").replace(/\\/g,"/")}\n\n`)(e,n),{encoding:"utf-8"})}if((()=>{try{return s("git log"),!0}catch{return!1}})())E(e);else if((()=>{try{return s("git log"),!0}catch{return!1}})()){const{git:n}=await t.prompt([{name:"git",type:"confirm",message:r.gitMessage,default:!0}]);n&&(s("git init"),E(e))}};var A="2.0.0-beta.80";const P=e("vuepress-theme-hope"),z=A;P.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 P.outputHelp();const{lang:r,message:o}=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]}})();if(e.startsWith("[")&&e.endsWith("]"))return console.log(o.dirError);console.log(o.getVersion),await k(e,o),await G(e,r,o);const a=await b(r);console.log(o.install),console.warn(o.wait),s(`${f} install ${"pnpm"===f?"":`--registry ${a}`}`,{stdout:"inherit"}),console.log(o.success);const{choice:i}=await t.prompt([{name:"choice",type:"confirm",message:o.devServerAsk,default:!0}]);i?(console.log(o.devServer),await n(`${f} run docs:dev`,{stdout:"inherit"})):console.log(o.hint)})),P.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]"}])),P.version(z),P.parse();
|
package/package.json
CHANGED
|
@@ -327,7 +327,7 @@ Support setting color scheme and size
|
|
|
327
327
|
|
|
328
328
|
- [View Detail](https://vuepress-theme-hope.github.io/v2/guide/markdown/echarts.html)
|
|
329
329
|
|
|
330
|
-
|
|
330
|
+
#### Flowchart
|
|
331
331
|
|
|
332
332
|
```flow
|
|
333
333
|
cond=>condition: Process?
|
|
@@ -340,7 +340,7 @@ cond(no)->e
|
|
|
340
340
|
|
|
341
341
|
- [View Detail](https://vuepress-theme-hope.github.io/v2/guide/markdown/flowchart.html)
|
|
342
342
|
|
|
343
|
-
|
|
343
|
+
#### Mermaid
|
|
344
344
|
|
|
345
345
|
```mermaid
|
|
346
346
|
flowchart TB
|
|
@@ -361,7 +361,7 @@ flowchart TB
|
|
|
361
361
|
|
|
362
362
|
- [View Detail](https://vuepress-theme-hope.github.io/v2/guide/markdown/mermaid.html)
|
|
363
363
|
|
|
364
|
-
|
|
364
|
+
#### Tex
|
|
365
365
|
|
|
366
366
|
$$
|
|
367
367
|
\frac {\partial^r} {\partial \omega^r} \left(\frac {y^{\omega}} {\omega}\right)
|
|
@@ -370,13 +370,13 @@ $$
|
|
|
370
370
|
|
|
371
371
|
- [View Detail](https://vuepress-theme-hope.github.io/v2/guide/markdown/tex.html)
|
|
372
372
|
|
|
373
|
-
|
|
373
|
+
#### Include files
|
|
374
374
|
|
|
375
|
-
@include(./README.md{11
|
|
375
|
+
@include(./README.md{11-17})
|
|
376
376
|
|
|
377
377
|
- [View Detail](https://vuepress-theme-hope.github.io/v2/guide/markdown/include.md)
|
|
378
378
|
|
|
379
|
-
|
|
379
|
+
#### Code Demo
|
|
380
380
|
|
|
381
381
|
::: normal-demo A normal demo
|
|
382
382
|
|
|
@@ -401,7 +401,15 @@ span {
|
|
|
401
401
|
|
|
402
402
|
- [View Detail](https://vuepress-theme-hope.github.io/v2/guide/markdown/demo.html)
|
|
403
403
|
|
|
404
|
-
|
|
404
|
+
#### Stylize
|
|
405
|
+
|
|
406
|
+
<!-- markdownlint-disable MD033 -->
|
|
407
|
+
|
|
408
|
+
Setting this to a invalid stytax <span style="color:red">doesn't</span> have any effect.
|
|
409
|
+
|
|
410
|
+
- [View Detail](https://vuepress-theme-hope.github.io/v2/guide/markdown/stylize.md)
|
|
411
|
+
|
|
412
|
+
#### Presentation
|
|
405
413
|
|
|
406
414
|
@slidestart
|
|
407
415
|
|
|
@@ -436,12 +444,4 @@ $$
|
|
|
436
444
|
|
|
437
445
|
- [View Detail](https://vuepress-theme-hope.github.io/v2/guide/markdown/presentation.html)
|
|
438
446
|
|
|
439
|
-
### Stylize
|
|
440
|
-
|
|
441
|
-
<!-- markdownlint-disable MD033 -->
|
|
442
|
-
|
|
443
|
-
Setting this to a invalid stytax <span style="color:red">doesn't</span> have any effect.
|
|
444
|
-
|
|
445
|
-
- [View Detail](https://vuepress-theme-hope.github.io/v2/guide/markdown/stylize.md)
|
|
446
|
-
|
|
447
447
|
[md-enhance]: https://vuepress-theme-hope.github.io/v2/md-enhance/
|
|
@@ -327,7 +327,7 @@ Support setting color scheme and size
|
|
|
327
327
|
|
|
328
328
|
- [View Detail](https://vuepress-theme-hope.github.io/v2/guide/markdown/echarts.html)
|
|
329
329
|
|
|
330
|
-
|
|
330
|
+
#### Flowchart
|
|
331
331
|
|
|
332
332
|
```flow
|
|
333
333
|
cond=>condition: Process?
|
|
@@ -340,7 +340,7 @@ cond(no)->e
|
|
|
340
340
|
|
|
341
341
|
- [View Detail](https://vuepress-theme-hope.github.io/v2/guide/markdown/flowchart.html)
|
|
342
342
|
|
|
343
|
-
|
|
343
|
+
#### Mermaid
|
|
344
344
|
|
|
345
345
|
```mermaid
|
|
346
346
|
flowchart TB
|
|
@@ -361,7 +361,7 @@ flowchart TB
|
|
|
361
361
|
|
|
362
362
|
- [View Detail](https://vuepress-theme-hope.github.io/v2/guide/markdown/mermaid.html)
|
|
363
363
|
|
|
364
|
-
|
|
364
|
+
#### Tex
|
|
365
365
|
|
|
366
366
|
$$
|
|
367
367
|
\frac {\partial^r} {\partial \omega^r} \left(\frac {y^{\omega}} {\omega}\right)
|
|
@@ -372,11 +372,11 @@ $$
|
|
|
372
372
|
|
|
373
373
|
### Include files
|
|
374
374
|
|
|
375
|
-
@include(./README.md{11
|
|
375
|
+
@include(./README.md{11-17})
|
|
376
376
|
|
|
377
377
|
- [View Detail](https://vuepress-theme-hope.github.io/v2/guide/markdown/include.md)
|
|
378
378
|
|
|
379
|
-
|
|
379
|
+
#### Code Demo
|
|
380
380
|
|
|
381
381
|
::: normal-demo A normal demo
|
|
382
382
|
|
|
@@ -401,7 +401,17 @@ span {
|
|
|
401
401
|
|
|
402
402
|
- [View Detail](https://vuepress-theme-hope.github.io/v2/guide/markdown/demo.html)
|
|
403
403
|
|
|
404
|
-
|
|
404
|
+
#### Stylize
|
|
405
|
+
|
|
406
|
+
<!-- markdownlint-disable MD033 -->
|
|
407
|
+
|
|
408
|
+
Setting this to a invalid stytax <span style="color:red">doesn't</span> have any effect.
|
|
409
|
+
|
|
410
|
+
- [View Detail](https://vuepress-theme-hope.github.io/v2/guide/markdown/stylize.md)
|
|
411
|
+
|
|
412
|
+
<!-- markdownlint-enable MD033 -->
|
|
413
|
+
|
|
414
|
+
#### Presentation
|
|
405
415
|
|
|
406
416
|
@slidestart
|
|
407
417
|
|
|
@@ -436,12 +446,4 @@ $$
|
|
|
436
446
|
|
|
437
447
|
- [View Detail](https://vuepress-theme-hope.github.io/v2/guide/markdown/presentation.html)
|
|
438
448
|
|
|
439
|
-
### Stylize
|
|
440
|
-
|
|
441
|
-
<!-- markdownlint-disable MD033 -->
|
|
442
|
-
|
|
443
|
-
Setting this to a invalid stytax <span style="color:red">doesn't</span> have any effect.
|
|
444
|
-
|
|
445
|
-
- [View Detail](https://vuepress-theme-hope.github.io/v2/guide/markdown/stylize.md)
|
|
446
|
-
|
|
447
449
|
[md-enhance]: https://vuepress-theme-hope.github.io/v2/md-enhance/
|
|
@@ -352,7 +352,7 @@ $$
|
|
|
352
352
|
|
|
353
353
|
#### 导入文件
|
|
354
354
|
|
|
355
|
-
@include(./README.md{11
|
|
355
|
+
@include(./README.md{11-17})
|
|
356
356
|
|
|
357
357
|
- [查看详情](https://vuepress-theme-hope.github.io/v2/zh/guide/markdown/include.html)
|
|
358
358
|
|
|
@@ -381,6 +381,16 @@ span {
|
|
|
381
381
|
|
|
382
382
|
- [查看详情](https://vuepress-theme-hope.github.io/v2/zh/guide/markdown/demo.html)
|
|
383
383
|
|
|
384
|
+
#### 样式化
|
|
385
|
+
|
|
386
|
+
<!-- markdownlint-disable MD033 -->
|
|
387
|
+
|
|
388
|
+
设置它<span style="color:red">没有</span>任何效果,请<span style="color:red">不要</span>这样使用
|
|
389
|
+
|
|
390
|
+
- [查看详情](https://vuepress-theme-hope.github.io/v2/zh/guide/markdown/stylize.html)
|
|
391
|
+
|
|
392
|
+
<!-- markdownlint-enable MD033 -->
|
|
393
|
+
|
|
384
394
|
#### 幻灯片
|
|
385
395
|
|
|
386
396
|
@slidestart
|
|
@@ -416,12 +426,4 @@ $$
|
|
|
416
426
|
|
|
417
427
|
- [查看详情](https://vuepress-theme-hope.github.io/v2/zh/guide/markdown/presentation.html)
|
|
418
428
|
|
|
419
|
-
#### 样式化
|
|
420
|
-
|
|
421
|
-
<!-- markdownlint-disable MD033 -->
|
|
422
|
-
|
|
423
|
-
设置它<span style="color:red">没有</span>任何效果,请<span style="color:red">不要</span>这样使用
|
|
424
|
-
|
|
425
|
-
- [查看详情](https://vuepress-theme-hope.github.io/v2/zh/guide/markdown/stylize.html)
|
|
426
|
-
|
|
427
429
|
[md-enhance]: https://vuepress-theme-hope.github.io/v2/md-enhance/zh/
|
|
@@ -352,7 +352,7 @@ $$
|
|
|
352
352
|
|
|
353
353
|
#### 导入文件
|
|
354
354
|
|
|
355
|
-
@include(./README.md{11
|
|
355
|
+
@include(./README.md{11-17})
|
|
356
356
|
|
|
357
357
|
- [查看详情](https://vuepress-theme-hope.github.io/v2/zh/guide/markdown/include.html)
|
|
358
358
|
|
|
@@ -381,6 +381,16 @@ span {
|
|
|
381
381
|
|
|
382
382
|
- [查看详情](https://vuepress-theme-hope.github.io/v2/zh/guide/markdown/demo.html)
|
|
383
383
|
|
|
384
|
+
#### 样式化
|
|
385
|
+
|
|
386
|
+
<!-- markdownlint-disable MD033 -->
|
|
387
|
+
|
|
388
|
+
设置它<span style="color:red">没有</span>任何效果,请<span style="color:red">不要</span>这样使用
|
|
389
|
+
|
|
390
|
+
- [查看详情](https://vuepress-theme-hope.github.io/v2/zh/guide/markdown/stylize.html)
|
|
391
|
+
|
|
392
|
+
<!-- markdownlint-enable MD033 -->
|
|
393
|
+
|
|
384
394
|
#### 幻灯片
|
|
385
395
|
|
|
386
396
|
@slidestart
|
|
@@ -416,12 +426,4 @@ $$
|
|
|
416
426
|
|
|
417
427
|
- [查看详情](https://vuepress-theme-hope.github.io/v2/zh/guide/markdown/presentation.html)
|
|
418
428
|
|
|
419
|
-
#### 样式化
|
|
420
|
-
|
|
421
|
-
<!-- markdownlint-disable MD033 -->
|
|
422
|
-
|
|
423
|
-
设置它<span style="color:red">没有</span>任何效果,请<span style="color:red">不要</span>这样使用
|
|
424
|
-
|
|
425
|
-
- [查看详情](https://vuepress-theme-hope.github.io/v2/zh/guide/markdown/stylize.html)
|
|
426
|
-
|
|
427
429
|
[md-enhance]: https://vuepress-theme-hope.github.io/v2/md-enhance/zh/
|