Skip to content

Commit

Permalink
fix: 修复文档错误 导致网站部署问题
Browse files Browse the repository at this point in the history
  • Loading branch information
visiky committed Oct 28, 2021
1 parent 5a45941 commit ce2a4ea
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 9 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ jobs:
with:
node-version: 12
- run: yarn install
- run: yarn run site:build
- run: npm run site:build
- run: |
cd public
git init
Expand All @@ -49,7 +49,7 @@ jobs:
node-version: 12
registry-url: https://registry.npmjs.org/
- run: yarn install
- run: yarn run build
- run: npm run build
- run: npm publish
env:
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}
5 changes: 2 additions & 3 deletions docs/api/plots/venn.en.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ Configure the chart data source. For example:
];
```

```sign
```plain
💡 注意:这里的数据是包含交集部分的数据量的。如上数据源,含有两个集合:`A` 和 `B`, 其中:`{ sets: ['A'], size: 5 }` 代表的是含有 A 集合的有 5 个(其实有 2 个是包含 B 集合的)
```

Expand Down Expand Up @@ -138,13 +138,12 @@ Default configuration:

`markdown:docs/common/tooltip.en.md`


### Plot Interactions ✨

There are interactions for venn diagrams, listed below:

| interaction | description | configuration method |
| ---|--|--|
| ---|---|---|
| venn-element-active | enable the "mouse-over venn diagram element triggers active" interaction | `interactions:[{ type: 'venn-element-active'}]` |
| venn-element-selected | enable the interaction "trigger selected when mouse clicked on venn diagram element", multiple options available | `interactions:[{ type: 'venn-element-selected'}]` |
| venn-element-single-selected | enable the interaction "trigger selected when mouse clicked on venn diagram element", single selected | `interactions:[{ type: 'venn-element-single-selected'}]` |
Expand Down
6 changes: 3 additions & 3 deletions docs/api/plots/venn.zh.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ const data = [
];
```

```sign
```plain
💡 注意:这里的数据是包含交集部分的数据量的。如上数据源,含有两个集合:`A` 和 `B`, 其中:`{ sets: ['A'], size: 5 }` 代表的是含有 A 集合的有 5 个(其实有 2 个是包含 B 集合的)
```

Expand Down Expand Up @@ -142,10 +142,10 @@ const data = [

| 交互 | 描述 | 配置方式 |
| ---|---|---|
| venn-element-active | 开启「鼠标移入 venn 图元素时触发 active」的交互 | `interactions:[{ type: 'venn-element-active' }]` |
| venn-element-active | 开启「鼠标移入 venn 图元素时触发 active」的交互 | `interactions:[{ type: 'venn-element-active' }]`|
| venn-element-selected | 开启「鼠标点击 venn 图元素时触发 selected」的交互,可多选 | `interactions:[{ type: 'venn-element-selected' }]` |
| venn-element-single-selected | 开启「鼠标点击 venn 图元素时触发 selected」的交互,单选 | `interactions:[{ type: 'venn-element-single-selected' }]` |
| venn-element-highlight | 开启「鼠标点击 venn 图元素时触发 高亮」的交互 | `interactions:[{ type: 'venn-element-highlight' }]` |
| venn-element-highlight | 开启「鼠标点击 venn 图元素时触发 高亮」的交互 | `interactions:[{ type: 'venn-element-highlight' }]`|

`markdown:docs/common/interactions.zh.md`

Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
"scripts": {
"start": "npm run site:clean && npm run site:develop",
"site:develop": "cross-env PORT=8080 gatsby develop --open -H 0.0.0.0",
"site:build": "npm run site:clean && gatsby build --prefix-paths",
"site:build": "NODE_OPTIONS=--max_old_space_size=8192 npm run site:clean && gatsby build --prefix-paths",
"site:clean": "gatsby clean",
"site:deploy": "npm run build && npm run site:build && gh-pages -d public",
"fix": "eslint --ext .ts ./src ./__tests__ --fix && prettier --write ./src ./__tests__ && lint-md --fix ./examples ./docs",
Expand Down

0 comments on commit ce2a4ea

Please sign in to comment.