Skip to content

Commit

Permalink
docs: fix typos in elements.zh.md and CONTRIBUTING.en-US.md (#5598)
Browse files Browse the repository at this point in the history
* docs: fix typos in elements.zh.md

* docs: fix typos in CONTRIBUTING.en-US.md
  • Loading branch information
Donovan-Ye authored Mar 27, 2024
1 parent fff59f2 commit f5ec528
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion CONTRIBUTING.en-US.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ There are many ways you can contribute to G6:

Before starting to contribute, make sure to:

1. Fork the repository and create your branch from `v5s`.
1. Fork the repository and create your branch from `v5`.
2. If you're adding code, add tests that cover the new functionality/bug fix.
3. Ensure the test suite passes locally.
4. If you've changed APIs, update the documentation.
Expand Down
4 changes: 2 additions & 2 deletions packages/site/docs/manual/tutorial/elements.zh.md
Original file line number Diff line number Diff line change
Expand Up @@ -171,7 +171,7 @@ const degreeCalculator = (data, options, userGraphCore) => {
};
```

另外,我们希望可以用颜色表示节点的类别,如果数据中有表示节点类别的字段,后续可以直击诶使用。在这个例子中,我们利用 @antv/algorithm 提供的聚类算法,根据图结构计算节点聚类。同样把它写成一个数据处理器:
另外,我们希望可以用颜色表示节点的类别,如果数据中有表示节点类别的字段,后续可以直接使用。在这个例子中,我们利用 @antv/algorithm 提供的聚类算法,根据图结构计算节点聚类。同样把它写成一个数据处理器:

```javascript
const clusteringNodes = (data, options = {}, userGraphCore) => {
Expand Down Expand Up @@ -355,7 +355,7 @@ const graph = new Graph({
<summary style="color: #873bf4; cursor: pointer;">点击展开完整代码</summary>
```html
<!DOCTYPE html>
<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8" />
Expand Down

0 comments on commit f5ec528

Please sign in to comment.