Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

docs: fix typos in elements.zh.md and CONTRIBUTING.en-US.md #5598

Merged
merged 2 commits into from
Mar 27, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
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