Skip to content

Commit e411715

Browse files
authored
Merge pull request #5 from LiHowe/dev
merge dev to main
2 parents ec26efe + 96f5340 commit e411715

13 files changed

+10434
-4690
lines changed

CHANGELOG.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,15 @@
22

33
All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.
44

5+
### [0.1.14](https://github.com/LiHowe/vuepress-plugin-mermaid/compare/v0.1.13...v0.1.14) (2023-01-12)
6+
7+
### [0.1.13-beta.0](https://github.com/LiHowe/vuepress-plugin-mermaid/compare/v0.1.10...v0.1.13) (2023-01-12)
8+
9+
10+
### Bug Fixes
11+
12+
* fix issue[#1](https://github.com/LiHowe/vuepress-plugin-mermaid/issues/1) and issue[#2](https://github.com/LiHowe/vuepress-plugin-mermaid/issues/2) ([f3b78e7](https://github.com/LiHowe/vuepress-plugin-mermaid/commit/f3b78e7c1a217352b77bca3cd796dd190cdc7967))
13+
514
### [0.1.10](https://github.com/LiHowe/vuepress-plugin-mermaid/compare/v0.1.9...v0.1.10) (2022-11-07)
615

716
### [0.1.9](https://github.com/LiHowe/vuepress-plugin-mermaid/compare/v0.1.8...v0.1.9) (2022-05-13)

README.md

Lines changed: 14 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
# vuepress-plugin-mermaid-next
22

3-
> This plugin is only for `vuepress-next`
3+
[中文说明](./README_ZH.md)
44

5-
## Usage
5+
> This plugin is only for [`vuepress-next`](https://vuepress.github.io)
66
7-
### Install
7+
## Installation
88

99
```shell
1010
# use npm
@@ -14,6 +14,8 @@ npm install mermaid vuepress-plugin-mermaid-next
1414
yarn add mermaid vuepress-plugin-mermaid-next
1515
```
1616

17+
## Usage
18+
1719
### `.vuepress/config.ts` or (`config.js`)
1820

1921
```typescript
@@ -36,11 +38,19 @@ export default {
3638
}
3739
```
3840

39-
### Custormize
41+
### Customization
4042

4143
You can config mermaid by using plugin settings.
4244

4345
The settings you configured will be use in `mermaid.initialize()`
4446

4547
Fully configuration fields can be find in [Mermaid - Configuration](https://mermaid-js.github.io/mermaid/#/./Setup?id=mermaidapi-configuration-defaults)
4648

49+
50+
## Feature
51+
52+
[x] Dark mode supported
53+
[x] mermaid config supported
54+
[ ] External Diagrams
55+
[ ] Preset themes
56+

README_ZH.md

Lines changed: 53 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,53 @@
1+
# vuepress-plugin-mermaid-next
2+
3+
> 该插件仅适用于 [`vuepress-next`](https://vuepress.github.io)
4+
5+
## 安装
6+
7+
```shell
8+
# use npm
9+
npm install mermaid vuepress-plugin-mermaid-next
10+
11+
# use yarn
12+
yarn add mermaid vuepress-plugin-mermaid-next
13+
```
14+
15+
## 使用
16+
17+
### `.vuepress/config.ts` or (`config.js`)
18+
19+
```typescript
20+
export default {
21+
// ...
22+
plugins: [
23+
// ... 其他插件
24+
['mermaid-next', {}]
25+
]
26+
// ...
27+
}
28+
// or
29+
import MermaidPlugin from 'vuepress-plugin-mermaid-next'
30+
export default {
31+
plugins: [
32+
MermaidPlugin({
33+
// 插件选项
34+
})
35+
]
36+
}
37+
```
38+
39+
### 自定义
40+
41+
你可以传入插件配置来自定义mermaid, 传入的配置将会用于 `mermaid.initialize()`
42+
43+
Mermaid 完整的配置字段可以查看 [Mermaid - Configuration](https://mermaid-js.github.io/mermaid/#/./Setup?id=mermaidapi-configuration-defaults)
44+
45+
46+
47+
## 功能
48+
49+
[x] Dark mode supported
50+
[x] mermaid config supported
51+
[ ] External Diagrams
52+
[ ] Preset themes
53+

docs/.vuepress/config.ts

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,7 @@
1-
import mermaidPlugin from '../../lib/node/index'
2-
import { defineUserConfig } from 'vuepress'
1+
// import mermaidPlugin from '../../lib/node/index'
32

4-
export default defineUserConfig({
3+
export default {
54
plugins: [
6-
mermaidPlugin({})
5+
// mermaidPlugin({})
76
]
8-
})
7+
}

docs/.vuepress/config.ts.5e281e70.mjs

Lines changed: 0 additions & 44 deletions
This file was deleted.

docs/.vuepress/config.ts.74a375d7.mjs

Lines changed: 0 additions & 45 deletions
This file was deleted.

0 commit comments

Comments
 (0)