Skip to content

Commit

Permalink
docs: update g6 version and react-node usage (#5260)
Browse files Browse the repository at this point in the history
Aarebecca authored Dec 12, 2023
1 parent 96016b5 commit 151a576
Showing 5 changed files with 18 additions and 13 deletions.
2 changes: 1 addition & 1 deletion README.en-US.md
Original file line number Diff line number Diff line change
@@ -69,7 +69,7 @@ G6 concentrates on the principle of 'good by default'. In addition, the custom m
## Installation (5.0 Alpha)

```bash
$ npm install @antv/g6@5.0.0-alpha.8
$ npm install @antv/g6@5.0.0-beta.28
```

## Usage (5.0 Alpha)
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -57,7 +57,7 @@ GIF 未完整加载,[点此看原图](https://mdn.alipayobjects.com/huamei_qa8
## 安装 (5.0 Alpha)

```bash
$ npm install @antv/g6@5.0.0-alpha.8
$ npm install @antv/g6@5.0.0-beta.28
```

## 使用 (5.0 Alpha)
23 changes: 14 additions & 9 deletions packages/react-node/README.md
Original file line number Diff line number Diff line change
@@ -7,11 +7,22 @@ Using React Component to Define Your G6 Graph Node

## Usage

TODO
```bash
pnpm install @antv/g6-react-node@2.0.0-beta.1
```

## Options
```jsx
import { createReactNode, createReactGNode } from '@antv/g6-react-node';

const ReactNode = createReactNode({
// ... React Component
});

const ReactGNode = createReactGNode({
// ... JSX Component
});
```

TODO

## Development

@@ -27,12 +38,6 @@ $ pnpm run build

# build library source code in watch mode
$ pnpm run build:watch

# build docs
$ pnpm run docs:build

# check your project for potential problems
$ pnpm run doctor
```

## LICENSE
2 changes: 1 addition & 1 deletion packages/site/docs/manual/tutorial/quick-start.en.md
Original file line number Diff line number Diff line change
@@ -81,7 +81,7 @@ Using G6 in vanilla HTML only requires importing the G6 JS file, as shown below:

```bash
# Using npm
npm install --save @antv/g6@5.0.0
npm install --save @antv/g6@5.0.0-beta.28

# Using yarn
yarn add @antv/g6@5.0.0
2 changes: 1 addition & 1 deletion packages/site/docs/manual/tutorial/quick-start.zh.md
Original file line number Diff line number Diff line change
@@ -83,7 +83,7 @@ order: 1

```bash
# 使用 npm 安装
npm install --save @antv/g6@5.0.0
npm install --save @antv/g6@5.0.0-beta.28

# 使用 yarn 安装
yarn add @antv/g6@5.0.0

0 comments on commit 151a576

Please sign in to comment.