diff --git a/packages/site/docs/manual/getting-started/installation.en.md b/packages/site/docs/manual/getting-started/installation.en.md index 9257e30faa2..93edad92df5 100644 --- a/packages/site/docs/manual/getting-started/installation.en.md +++ b/packages/site/docs/manual/getting-started/installation.en.md @@ -7,13 +7,13 @@ order: 1 ```bash # npm -npm install @antv/g6@beta --save +npm install @antv/g6 --save # pnpm -pnpm add @antv/g6@5 +pnpm add @antv/g6 # yarn -yarn add @antv/g6@5 +yarn add @antv/g6 ``` Import G6 in the code: @@ -28,15 +28,14 @@ Visit [G6 npm Example](https://codesandbox.io/p/sandbox/using-g6-from-npm-d9spnr `@antv/g6` Available on multiple CDNs: -- unpkg: https://unpkg.com/@antv/g6@beta/dist/g6.min.js -- jsDelivr: https://cdn.jsdelivr.net/npm/@antv/g6@beta/dist/g6.min.js -- npmmirror: https://registry.npmmirror.com/@antv/g6/beta/files/dist/g6.min.js -- cdnjs: https://cdnjs.cloudflare.com/ajax/libs/antv-g6/5.0.0-beta.34/g6.min.js +- unpkg: https://unpkg.com/@antv/g6@5/dist/g6.min.js +- jsDelivr: https://cdn.jsdelivr.net/npm/@antv/g6@5/dist/g6.min.js +- npmmirror: https://registry.npmmirror.com/@antv/g6/5/files/dist/g6.min.js Import G6 using a `script` tag: ```html - + ``` Visit [G6 CDN Example](https://codesandbox.io/p/sandbox/using-g6-from-cdn-xt9ty6) to view the complete example code. diff --git a/packages/site/docs/manual/getting-started/installation.zh.md b/packages/site/docs/manual/getting-started/installation.zh.md index 6f456effc56..5d3caa2174c 100644 --- a/packages/site/docs/manual/getting-started/installation.zh.md +++ b/packages/site/docs/manual/getting-started/installation.zh.md @@ -7,13 +7,13 @@ order: 1 ```bash # npm -npm install @antv/g6@beta --save +npm install @antv/g6 --save # pnpm -pnpm add @antv/g6@5 +pnpm add @antv/g6 # yarn -yarn add @antv/g6@5 +yarn add @antv/g6 ``` 在代码中引入 G6: @@ -28,15 +28,14 @@ import { Graph } from '@antv/g6'; `@antv/g6` 在多个 CDN 上提供: -- unpkg: https://unpkg.com/@antv/g6@beta/dist/g6.min.js -- jsDelivr: https://cdn.jsdelivr.net/npm/@antv/g6@beta/dist/g6.min.js -- npmmirror: https://registry.npmmirror.com/@antv/g6/beta/files/dist/g6.min.js -- cdnjs: https://cdnjs.cloudflare.com/ajax/libs/antv-g6/5.0.0-beta.34/g6.min.js +- unpkg: https://unpkg.com/@antv/g6@latest/dist/g6.min.js +- jsDelivr: https://cdn.jsdelivr.net/npm/@antv/g6@5/dist/g6.min.js +- npmmirror: https://registry.npmmirror.com/@antv/g6/5/files/dist/g6.min.js 使用 `script` 标签引入 G6: ```html - + ``` 访问 [G6 CDN 示例](https://codesandbox.io/p/sandbox/using-g6-from-cdn-xt9ty6) 查看完整示例代码。 diff --git a/packages/site/docs/manual/getting-started/quick-start.en.md b/packages/site/docs/manual/getting-started/quick-start.en.md index fd607fa5f4d..a39ef29c45c 100644 --- a/packages/site/docs/manual/getting-started/quick-start.en.md +++ b/packages/site/docs/manual/getting-started/quick-start.en.md @@ -18,7 +18,7 @@ Copy the following code into an HTML file and then open this file in a browser:
- + + ``` 3. Use the `fetch` method to obtain the graph's data: diff --git a/packages/site/docs/manual/getting-started/quick-start.zh.md b/packages/site/docs/manual/getting-started/quick-start.zh.md index 271d24c3d55..8bab30092aa 100644 --- a/packages/site/docs/manual/getting-started/quick-start.zh.md +++ b/packages/site/docs/manual/getting-started/quick-start.zh.md @@ -18,7 +18,7 @@ order: 0
- + + ``` 3. 使用 `fetch` 方法获取图的数据: diff --git a/packages/site/docs/manual/getting-started/step-by-step.en.md b/packages/site/docs/manual/getting-started/step-by-step.en.md index 1f9eab5a9e6..42eff3bbae8 100644 --- a/packages/site/docs/manual/getting-started/step-by-step.en.md +++ b/packages/site/docs/manual/getting-started/step-by-step.en.md @@ -28,7 +28,7 @@ npm init -y Install G6: ```bash -npm install @antv/g6@beta --save +npm install @antv/g6 --save ``` Vite is a new type of front-end build tool that is based on ESModule and can quickly start up projects. diff --git a/packages/site/docs/manual/getting-started/step-by-step.zh.md b/packages/site/docs/manual/getting-started/step-by-step.zh.md index 8e33f4eb359..58254cf37e0 100644 --- a/packages/site/docs/manual/getting-started/step-by-step.zh.md +++ b/packages/site/docs/manual/getting-started/step-by-step.zh.md @@ -28,7 +28,7 @@ npm init -y 安装 G6: ```bash -npm install @antv/g6@beta --save +npm install @antv/g6 --save ``` Vite 是一个新型的前端构建工具,它基于 ESModule,可以快速启动项目。