docs: update docs
This commit is contained in:
parent
58eb1c88a0
commit
5ccb6f02c4
@ -31,6 +31,10 @@ export default defineUserConfig({
|
||||
theme: themePlume({
|
||||
logo: 'https://pengzhanbo.cn/g.gif',
|
||||
hostname: 'https://pengzhanbo.cn',
|
||||
repo: 'https://github.com/pengzhanbo/vuepress-theme-plume',
|
||||
docsDir: 'docs',
|
||||
editLink: true,
|
||||
editLinkText: 'Edit this page on GitHub',
|
||||
appearance: true,
|
||||
avatar: {
|
||||
url: '/images/blogger.jpg',
|
||||
|
||||
@ -1,6 +1,8 @@
|
||||
---
|
||||
home: true
|
||||
banner: /images/bg-home.jpg
|
||||
bannerMask:
|
||||
dark: 0.2
|
||||
hero:
|
||||
name: 鹏展博
|
||||
tagline: 前端开发工程师
|
||||
|
||||
@ -55,7 +55,7 @@ npm i @vuepress-plume/vuepress-theme-plume
|
||||
// .vuepress/config.ts
|
||||
import { defineUserConfig } from 'vuepress'
|
||||
import { themePlume } from '@vuepress-plume/vuepress-theme-plume'
|
||||
export default defineUserConfig({ // [!code focus]
|
||||
export default defineUserConfig({
|
||||
theme: themePlume({
|
||||
// more...
|
||||
})
|
||||
|
||||
@ -58,6 +58,17 @@ markdown 增强 由 [vuepress-plugin-md-enhance](https://vuepress-theme-hope.git
|
||||
警告内容
|
||||
:::
|
||||
|
||||
- 危险
|
||||
``` md
|
||||
::: danger 危险
|
||||
危险内容
|
||||
:::
|
||||
```
|
||||
::: danger 危险
|
||||
危险内容
|
||||
`markdown`
|
||||
:::
|
||||
|
||||
- 详情
|
||||
``` md
|
||||
::: details 详情
|
||||
@ -68,6 +79,17 @@ markdown 增强 由 [vuepress-plugin-md-enhance](https://vuepress-theme-hope.git
|
||||
详情信息
|
||||
:::
|
||||
|
||||
- 重要
|
||||
|
||||
``` md
|
||||
::: important 重要
|
||||
重要内容
|
||||
:::
|
||||
```
|
||||
::: important 重要
|
||||
重要内容
|
||||
:::
|
||||
|
||||
## 自定义对齐
|
||||
|
||||
- 左对齐
|
||||
|
||||
@ -76,3 +76,18 @@ permalink: /note/vuepress-theme-plume/basis-power/
|
||||
## 文章评论
|
||||
|
||||
支持文章评论。
|
||||
|
||||
## Badge
|
||||
|
||||
- <Badge type="info" text="info" />
|
||||
- <Badge type="tip" text="Tip" />
|
||||
- <Badge type="warning" text="Warning" />
|
||||
- <Badge type="danger" text="Danger" />
|
||||
|
||||
````md
|
||||
```js
|
||||
export default function foo() {
|
||||
console.log('foo'); // [\!code ++]
|
||||
}
|
||||
```
|
||||
````
|
||||
|
||||
@ -67,17 +67,16 @@
|
||||
"@vuepress/shared": "2.0.0-rc.0",
|
||||
"@vuepress/utils": "2.0.0-rc.0",
|
||||
"@vueuse/core": "^10.7.0",
|
||||
"date-fns": "^3.0.5",
|
||||
"date-fns": "^3.0.6",
|
||||
"lodash.merge": "^4.6.2",
|
||||
"nanoid": "^5.0.4",
|
||||
"ts-debounce": "^4.0.0",
|
||||
"vue": "^3.3.13",
|
||||
"vue-router": "4.2.5",
|
||||
"vuepress-plugin-comment2": "2.0.0-rc.0",
|
||||
"vuepress-plugin-md-enhance": "2.0.0-rc.0",
|
||||
"vuepress-plugin-seo2": "2.0.0-rc.0",
|
||||
"vuepress-plugin-sitemap2": "2.0.0-rc.0",
|
||||
"windicss": "^3.5.6"
|
||||
"vuepress-plugin-comment2": "2.0.0-rc.5",
|
||||
"vuepress-plugin-md-enhance": "2.0.0-rc.5",
|
||||
"vuepress-plugin-seo2": "2.0.0-rc.5",
|
||||
"vuepress-plugin-sitemap2": "2.0.0-rc.5"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@types/lodash.merge": "^4.6.9"
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user