create-vuepress-theme-hope 2.0.0-beta.227 → 2.0.0-beta.229
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 +8 -5
- package/package.json +2 -2
- package/template/blog/config/en/theme.ts +2 -2
- package/template/blog/config/multi/theme.ts +2 -2
- package/template/blog/config/zh/theme.ts +2 -2
- package/template/blog/en/demo/markdown.md +3 -3
- package/template/blog/en/slides.md +1 -1
- package/template/blog/zh/demo/markdown.md +3 -3
- package/template/blog/zh/slides.md +1 -1
- package/template/docs/config/en/theme.ts +1 -1
- package/template/docs/config/multi/theme.ts +1 -1
- package/template/docs/config/zh/theme.ts +1 -1
- package/template/docs/en/demo/markdown.md +3 -3
- package/template/docs/en/slides.md +1 -1
- package/template/docs/zh/demo/markdown.md +3 -3
- package/template/docs/zh/slides.md +1 -1
- /package/template/blog/config/en/{sideabr.ts → sidebar.ts} +0 -0
package/lib/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
import{existsSync as f,readFileSync as j,writeFileSync as v,readdirSync as w,mkdirSync as A,statSync as S,createReadStream as C,createWriteStream as I}from"node:fs";import{resolve as r,join as x,dirname as D}from"node:path";import{cac as O}from"cac";import{execaCommandSync as u,execaCommand as F}from"execa";import
|
|
2
|
+
import{existsSync as f,readFileSync as j,writeFileSync as v,readdirSync as w,mkdirSync as A,statSync as S,createReadStream as C,createWriteStream as I}from"node:fs";import{resolve as r,join as x,dirname as D}from"node:path";import{cac as O}from"cac";import{execaCommandSync as u,execaCommand as F}from"execa";import m from"inquirer";import{createRequire as R}from"node:module";import{fileURLToPath as W}from"node:url";const H={简体中文:{flow:{getVersion:"获取依赖的最新版本...",createPackage:"生成 package.json...",updatePackage:"更新 package.json...",generateTemplate:"生成模板...",install:"安装依赖...",devServer:`启动开发服务器...
|
|
3
3
|
启动成功后,请在浏览器输入给出的开发服务器地址(默认为 'localhost:8080')`},question:{packageManager:"选择包管理器",i18n:"项目需要用到多语言么?",git:"是否初始化 Git 仓库?",workflow:"是否需要一个自动部署文档到 GitHub Pages 的工作流?",preset:"你想要创建什么类型的项目?",devServer:"是否想要现在启动 Demo 查看?",name:"设置应用名称",version:"设置应用版本号",description:"设置应用描述",license:"设置协议"},hint:{install:`这可能需要数分钟,请耐心等待.
|
|
4
4
|
我们无法正确输出子进程的进度条,所以进程可能会看似未响应`,finish:"模板已成功生成!",devServer:e=>`提示: 请使用 "${e} run docs:dev" 命令启动开发服务器`},error:{name:"应用名称应只包含小写字母、数字和连接线 (-)",version:"此版本无效,版本号应为 'x.x.x'",preset:"预设 (--preset) 仅支持 doc 或 blog",outputDirMissing:e=>`"[dir]" 的方括号表示此处为一个参数,你应该替换为自己想使用的文件夹名称,如 "my-blog", "project-docs" 等!
|
|
5
5
|
例如: "${e} init vuepress-theme-hope project-docs"`,updateDirMissing:e=>`"[dir]" 的方括号表示此处为一个参数,你应该替换为自己想使用的文件夹名称,如 "src", "docs" 等!
|
|
@@ -7,7 +7,7 @@ import{existsSync as f,readFileSync as j,writeFileSync as v,readdirSync as w,mkd
|
|
|
7
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
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 "doc" 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.`}}},J=async()=>{const{language:e}=await
|
|
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.`}}},J=async()=>{const{language:e}=await m.prompt([{name:"language",type:"list",message:"Select a language to display / 选择显示语言",choices:["english (US)","简体中文"]}]);return{lang:e,message:H[e]}},Y=e=>`
|
|
11
11
|
node_modules/
|
|
12
12
|
${e}/.vuepress/.cache/
|
|
13
13
|
${e}/.vuepress/.temp/
|
|
@@ -21,6 +21,9 @@ on:
|
|
|
21
21
|
# ${s==="简体中文"?"确保这是你正在使用的分支名称":"make sure this is the branch you are using"}
|
|
22
22
|
- main
|
|
23
23
|
|
|
24
|
+
permissions:
|
|
25
|
+
contents: write
|
|
26
|
+
|
|
24
27
|
jobs:
|
|
25
28
|
deploy-gh-pages:
|
|
26
29
|
runs-on: ubuntu-latest
|
|
@@ -60,6 +63,6 @@ ${e!=="pnpm"?` - name: ${s==="简体中文"?"安装依赖":"Install Deps"}
|
|
|
60
63
|
# ${s==="简体中文"?"这是文档部署到的分支名称":"This is the branch where the docs are deployed to"}
|
|
61
64
|
branch: gh-pages
|
|
62
65
|
folder: ${x(t,".vuepress/dist").replace(/\\/g,"/")}
|
|
63
|
-
`,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(([a,o])=>{a==="__proto__"||a==="constructor"||($(e[a])&&$(o)?k(e[a],o):B(o)?e[a]=[...o]:$(o)?e[a]={...o}:e[a]=s[a])}),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 a=C(e),o=I(t);a.pipe(o)},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}`)})},c=(e,t)=>{S(e).isDirectory()?T(e,t):S(e).isFile()&&G(e,t)},K=(e=process.cwd())=>{try{return u("git status",{cwd:e}),!0}catch{return!1}},Q=()=>{try{return u("git --version"),!0}catch{return!1}},X=()=>{try{return u("pnpm --version",{stdio:"ignore"}).exitCode===0}catch{return!1}},Z=()=>{try{return u("yarn --version",{stdio:"ignore"}).exitCode===0}catch{return!1}},b=["npm"];Z()&&b.push("yarn"),X()&&b.push("pnpm");const ee=async e=>(await
|
|
64
|
-
`,{encoding:"utf-8"})}else{console.log(t.flow.createPackage);const
|
|
65
|
-
`,{encoding:"utf-8"})}},P="https://registry.npmmirror.com/",ae=e=>u(`${e} config get registry`).stdout,oe=async(e,t)=>{const s=ae(e);if(/https:\/\/registry\.npm\.taobao\.org\/?/.test(s)&&(console.error("npm.taobao.org is no longer available, resetting it to npmmirror.com"),u(`${e} config set registry ${P}`)),t==="简体中文"){const{registry:a}=await
|
|
66
|
+
`,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(([a,o])=>{a==="__proto__"||a==="constructor"||($(e[a])&&$(o)?k(e[a],o):B(o)?e[a]=[...o]:$(o)?e[a]={...o}:e[a]=s[a])}),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 a=C(e),o=I(t);a.pipe(o)},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}`)})},c=(e,t)=>{S(e).isDirectory()?T(e,t):S(e).isFile()&&G(e,t)},K=(e=process.cwd())=>{try{return u("git status",{cwd:e}),!0}catch{return!1}},Q=()=>{try{return u("git --version"),!0}catch{return!1}},X=()=>{try{return u("pnpm --version",{stdio:"ignore"}).exitCode===0}catch{return!1}},Z=()=>{try{return u("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),p=D(te),_=async(e,{cwd:t=process.cwd(),packageManager:s,lang:a,message:o,preset:n})=>{const{i18n:l,workflow:d}=await m.prompt([{name:"i18n",type:"confirm",message:o.question.i18n,default:!1},{name:"workflow",type:"confirm",message:o.question.workflow,default:!0}]);n||(n=(await m.prompt([{name:"preset",type:"list",message:o.question.preset,choices:["blog","docs"]}])).preset),console.log(o.flow.generateTemplate);const i=n;if(c(r(p,"../template/public"),r(t,e,"./.vuepress/public")),c(r(p,"../template",i,"config/base"),r(t,e,".vuepress")),l?(c(r(p,"../template",i,"en"),r(t,e)),c(r(p,"../template",i,"zh"),r(t,e,"zh")),c(r(p,"../template",i,"config/multi"),r(t,e,".vuepress"))):a==="简体中文"?(c(r(p,"../template",i,"zh"),r(t,e)),c(r(p,"../template",i,"config/zh"),r(t,e,".vuepress"))):(c(r(p,"../template",i,"en"),r(t,e)),c(r(p,"../template",i,"config/en"),r(t,e,".vuepress"))),d){const h=r(t,".github/workflows");y(h),v(r(h,"deploy-docs.yml"),U(s,e,a),{encoding:"utf-8"})}if(K(t))M(e,t);else if(Q()){const{git:h}=await m.prompt([{name:"git",type:"confirm",message:o.question.git,default:!0}]);h&&(u("git init",{cwd:t}),M(e,t))}},E=R(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,a=process.cwd())=>{const o=r(a,"package.json"),n=se(e,s),l={"@vuepress/client":"2.0.0-beta.63",vue:"^3.2.47",vuepress:"2.0.0-beta.63","vuepress-theme-hope":E};if(f(o)){console.log(t.flow.updatePackage);const d=JSON.parse(j(o,{encoding:"utf-8"}));k(d,{scripts:n,devDependencies:l}),v(o,`${JSON.stringify(d,null,2)}
|
|
67
|
+
`,{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:l};v(o,`${JSON.stringify(d,null,2)}
|
|
68
|
+
`,{encoding:"utf-8"})}},P="https://registry.npmmirror.com/",ae=e=>u(`${e} config get registry`).stdout,oe=async(e,t)=>{const s=ae(e);if(/https:\/\/registry\.npm\.taobao\.org\/?/.test(s)&&(console.error("npm.taobao.org is no longer available, resetting it to npmmirror.com"),u(`${e} config set registry ${P}`)),t==="简体中文"){const{registry:a}=await m.prompt([{name:"registry",type:"list",message:"选择你想使用的源",choices:["国内镜像源","当前源"]}]);return a==="国内镜像源"?P:s}return s},z=async(e,t)=>{if(!e)return g.outputHelp();const{lang:s,message:a}=await J();if(t&&!["docs","blog"].includes(t))return console.log(a.error.preset);const o=await ee(a.question.packageManager);if(e.startsWith("[")&&e.endsWith("]"))return console.log(a.error.updateDirMissing(o));const n=r(process.cwd(),e);return f(n)&&w(n).length?console.error(a.error.dirNotEmpty(e)):(y(n),{lang:s,message:a,packageManager:o})},N=async({cwd:e=process.cwd(),lang:t,message:s,packageManager:a})=>{const o=a==="pnpm"?"":await oe(a,t);console.log(s.flow.install),console.warn(s.hint.install),u(`${a} install ${o?`--registry ${o}`:""}`,{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 F(`${a} run docs:dev`,{cwd:e,stdout:"inherit"})):console.log(s.hint.devServer(a))},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=r(process.cwd(),e),a=await z(e,t);if(a){const{lang:o,message:n,packageManager:l}=a;await q(l,n,"src",e),await _("src",{cwd:s,packageManager:l,lang:o,message:n,preset:t}),await N({cwd:s,lang:o,message:n,packageManager:l})}}),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:a,message:o,packageManager:n}=s;await q(n,o,e),await _(e,{packageManager:n,lang:a,message:o,preset:t}),await N({message:o,lang:a,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-beta.
|
|
3
|
+
"version": "2.0.0-beta.229",
|
|
4
4
|
"description": "Create vuepress-theme-hope demo project helper",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"create",
|
|
@@ -22,7 +22,7 @@
|
|
|
22
22
|
"author": {
|
|
23
23
|
"name": "Mr.Hope",
|
|
24
24
|
"email": "mister-hope@outlook.com",
|
|
25
|
-
"url": "https://
|
|
25
|
+
"url": "https://mister-hope.com"
|
|
26
26
|
},
|
|
27
27
|
"type": "module",
|
|
28
28
|
"exports": {
|
|
@@ -10,7 +10,7 @@ export default hopeTheme({
|
|
|
10
10
|
|
|
11
11
|
author: {
|
|
12
12
|
name: "Mr.Hope",
|
|
13
|
-
url: "https://
|
|
13
|
+
url: "https://mister-hope.com",
|
|
14
14
|
},
|
|
15
15
|
|
|
16
16
|
iconAssets: "fontawesome-with-brands",
|
|
@@ -72,7 +72,7 @@ export default hopeTheme({
|
|
|
72
72
|
Whatsapp: "https://example.com",
|
|
73
73
|
Youtube: "https://example.com",
|
|
74
74
|
Zhihu: "https://example.com",
|
|
75
|
-
MrHope: ["https://
|
|
75
|
+
MrHope: ["https://mister-hope.com", MR_HOPE_AVATAR],
|
|
76
76
|
},
|
|
77
77
|
},
|
|
78
78
|
|
|
@@ -10,7 +10,7 @@ export default hopeTheme({
|
|
|
10
10
|
|
|
11
11
|
author: {
|
|
12
12
|
name: "Mr.Hope",
|
|
13
|
-
url: "https://
|
|
13
|
+
url: "https://mister-hope.com",
|
|
14
14
|
},
|
|
15
15
|
|
|
16
16
|
iconAssets: "fontawesome-with-brands",
|
|
@@ -54,7 +54,7 @@ export default hopeTheme({
|
|
|
54
54
|
Whatsapp: "https://example.com",
|
|
55
55
|
Youtube: "https://example.com",
|
|
56
56
|
Zhihu: "https://example.com",
|
|
57
|
-
MrHope: ["https://
|
|
57
|
+
MrHope: ["https://mister-hope.com", MR_HOPE_AVATAR],
|
|
58
58
|
},
|
|
59
59
|
},
|
|
60
60
|
|
|
@@ -10,7 +10,7 @@ export default hopeTheme({
|
|
|
10
10
|
|
|
11
11
|
author: {
|
|
12
12
|
name: "Mr.Hope",
|
|
13
|
-
url: "https://
|
|
13
|
+
url: "https://mister-hope.com",
|
|
14
14
|
},
|
|
15
15
|
|
|
16
16
|
iconAssets: "fontawesome-with-brands",
|
|
@@ -66,7 +66,7 @@ export default hopeTheme({
|
|
|
66
66
|
Whatsapp: "https://example.com",
|
|
67
67
|
Youtube: "https://example.com",
|
|
68
68
|
Zhihu: "https://example.com",
|
|
69
|
-
MrHope: ["https://
|
|
69
|
+
MrHope: ["https://mister-hope.com", MR_HOPE_AVATAR],
|
|
70
70
|
},
|
|
71
71
|
},
|
|
72
72
|
|
|
@@ -192,8 +192,8 @@ Support setting color scheme and size
|
|
|
192
192
|
```card
|
|
193
193
|
title: Mr.Hope
|
|
194
194
|
desc: Where there is light, there is hope
|
|
195
|
-
logo: https://
|
|
196
|
-
link: https://
|
|
195
|
+
logo: https://mister-hope.com/logo.svg
|
|
196
|
+
link: https://mister-hope.com
|
|
197
197
|
color: rgba(253, 230, 138, 0.15)
|
|
198
198
|
```
|
|
199
199
|
|
|
@@ -391,7 +391,7 @@ const msg = ref("Hello World!");
|
|
|
391
391
|
|
|
392
392
|
## Slide 1
|
|
393
393
|
|
|
394
|
-
A paragraph with some text and a [link](https://
|
|
394
|
+
A paragraph with some text and a [link](https://mister-hope.com)
|
|
395
395
|
|
|
396
396
|
---
|
|
397
397
|
|
|
@@ -78,7 +78,7 @@ You can use all kinds of markup in slides.
|
|
|
78
78
|
|
|
79
79
|
Headings will transform to UPPERCASE by default.
|
|
80
80
|
|
|
81
|
-
Here is paragraph with some **bold**, _italic_, ~~strike-through~~ text and a [link](https://
|
|
81
|
+
Here is paragraph with some **bold**, _italic_, ~~strike-through~~ text and a [link](https://mister-hope.com), and it can auto break itself so you don't need to worry the length.
|
|
82
82
|
|
|
83
83
|
--
|
|
84
84
|
|
|
@@ -172,8 +172,8 @@ npm i -D vuepress-theme-hope
|
|
|
172
172
|
```card
|
|
173
173
|
title: Mr.Hope
|
|
174
174
|
desc: Where there is light, there is hope
|
|
175
|
-
logo: https://
|
|
176
|
-
link: https://
|
|
175
|
+
logo: https://mister-hope.com/logo.svg
|
|
176
|
+
link: https://mister-hope.com
|
|
177
177
|
color: rgba(253, 230, 138, 0.15)
|
|
178
178
|
```
|
|
179
179
|
|
|
@@ -371,7 +371,7 @@ const msg = ref("Hello World!");
|
|
|
371
371
|
|
|
372
372
|
## 幻灯片 1
|
|
373
373
|
|
|
374
|
-
一个有文字和 [链接](https://
|
|
374
|
+
一个有文字和 [链接](https://mister-hope.com) 的段落
|
|
375
375
|
|
|
376
376
|
---
|
|
377
377
|
|
|
@@ -192,8 +192,8 @@ Support setting color scheme and size
|
|
|
192
192
|
```card
|
|
193
193
|
title: Mr.Hope
|
|
194
194
|
desc: Where there is light, there is hope
|
|
195
|
-
logo: https://
|
|
196
|
-
link: https://
|
|
195
|
+
logo: https://mister-hope.com/logo.svg
|
|
196
|
+
link: https://mister-hope.com
|
|
197
197
|
color: rgba(253, 230, 138, 0.15)
|
|
198
198
|
```
|
|
199
199
|
|
|
@@ -391,7 +391,7 @@ const msg = ref("Hello World!");
|
|
|
391
391
|
|
|
392
392
|
## Slide 1
|
|
393
393
|
|
|
394
|
-
A paragraph with some text and a [link](https://
|
|
394
|
+
A paragraph with some text and a [link](https://mister-hope.com)
|
|
395
395
|
|
|
396
396
|
---
|
|
397
397
|
|
|
@@ -78,7 +78,7 @@ You can use all kinds of markup in slides.
|
|
|
78
78
|
|
|
79
79
|
Headings will transform to UPPERCASE by default.
|
|
80
80
|
|
|
81
|
-
Here is paragraph with some **bold**, _italic_, ~~strike-through~~ text and a [link](https://
|
|
81
|
+
Here is paragraph with some **bold**, _italic_, ~~strike-through~~ text and a [link](https://mister-hope.com), and it can auto break itself so you don't need to worry the length.
|
|
82
82
|
|
|
83
83
|
--
|
|
84
84
|
|
|
@@ -172,8 +172,8 @@ npm i -D vuepress-theme-hope
|
|
|
172
172
|
```card
|
|
173
173
|
title: Mr.Hope
|
|
174
174
|
desc: Where there is light, there is hope
|
|
175
|
-
logo: https://
|
|
176
|
-
link: https://
|
|
175
|
+
logo: https://mister-hope.com/logo.svg
|
|
176
|
+
link: https://mister-hope.com
|
|
177
177
|
color: rgba(253, 230, 138, 0.15)
|
|
178
178
|
```
|
|
179
179
|
|
|
@@ -371,7 +371,7 @@ const msg = ref("Hello World!");
|
|
|
371
371
|
|
|
372
372
|
## 幻灯片 1
|
|
373
373
|
|
|
374
|
-
一个有文字和 [链接](https://
|
|
374
|
+
一个有文字和 [链接](https://mister-hope.com) 的段落
|
|
375
375
|
|
|
376
376
|
---
|
|
377
377
|
|
|
File without changes
|