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 site docs #5897

Merged
merged 4 commits into from
Jun 21, 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.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions packages/site/docs/manual/getting-started/quick-start.en.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,8 @@ Copy the following code into an HTML file and then open this file in a browser:
<script src="https://unpkg.com/@antv/g6@5/dist/g6.min.js"></script>

<script>
const { Graph } = G6;

fetch('https://assets.antv.antgroup.com/g6/graph.json')
.then((res) => res.json())
.then((data) => {
Expand Down Expand Up @@ -78,6 +80,8 @@ fetch('https://assets.antv.antgroup.com/g6/graph.json').then((res) => res.json()
4. Finally, create an instance of the graph, pass in the configuration object, and call the `render` method to render the graph:

```js
const { Graph } = G6;

const graph = new Graph({
container: 'container',
autoFit: 'view',
Expand Down
4 changes: 4 additions & 0 deletions packages/site/docs/manual/getting-started/quick-start.zh.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,8 @@ order: 0
<script src="https://unpkg.com/@antv/g6@5/dist/g6.min.js"></script>

<script>
const { Graph } = G6;

fetch('https://assets.antv.antgroup.com/g6/graph.json')
.then((res) => res.json())
.then((data) => {
Expand Down Expand Up @@ -78,6 +80,8 @@ fetch('https://assets.antv.antgroup.com/g6/graph.json').then((res) => res.json()
4. 最后创建一个图实例,传入配置对象,并调用 `render` 方法渲染图:

```js
const { Graph } = G6;

const graph = new Graph({
container: 'container',
autoFit: 'view',
Expand Down