Skip to content

Commit

Permalink
chore: update version (#5817)
Browse files Browse the repository at this point in the history
* chore: update version

* chore: add site build script

* chore(site): update site case

* chore(site): adjust cases

* chore(site): disable api doc
  • Loading branch information
Aarebecca committed Jun 5, 2024
1 parent 472fa89 commit c1be9ab
Show file tree
Hide file tree
Showing 6 changed files with 14 additions and 14 deletions.
2 changes: 1 addition & 1 deletion packages/g6/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@antv/g6",
"version": "5.0.0-beta.39",
"version": "5.0.0-beta.40",
"description": "A Graph Visualization Framework in JavaScript",
"keywords": [
"antv",
Expand Down
7 changes: 3 additions & 4 deletions packages/site/.dumirc.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,12 +13,12 @@ export default defineConfig({
{ name: 'keywords', content: 'G6' },
{
name: 'description',
content: 'A collection of charts made with the Grammar of Graphics',
content: 'A Graph Visualization Framework in JavaScript',
},
],
themeConfig: {
title: 'G6',
description: 'A collection of charts made with the Grammar of Graphics',
description: 'A Graph Visualization Framework in JavaScript',
defaultLanguage: 'zh', // 默认语言
isAntVSite: false, // 是否是 AntV 的大官网
siteUrl: homepage, // 官网地址
Expand All @@ -31,8 +31,7 @@ export default defineConfig({
showLanguageSwitcher: true, // 是否显示官网语言切换
showWxQrcode: true, // 是否显示头部菜单的微信公众号
showChartResize: true, // 是否在 demo 页展示图表视图切换
showAPIDoc: true, // 是否在 demo 页展示API文档
themeSwitcher: 'g2',
showAPIDoc: false, // 是否在 demo 页展示API文档
prefersColor: {
default: 'light',
switch: false,
Expand Down
2 changes: 1 addition & 1 deletion packages/site/examples/feature/default/demo/meta.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
},
"demos": [
{
"filename": "switch.js",
"filename": "theme.js",
"title": {
"zh": "主题切换",
"en": "Switch Theme"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ const themes = {
},
};

fetch('http://127.0.0.1:5500/20000.json')
fetch('https://assets.antv.antgroup.com/g6/20000.json')
.then((res) => res.json())
.then((data) => {
const graph = new Graph({
Expand All @@ -58,7 +58,7 @@ fetch('http://127.0.0.1:5500/20000.json')
theme: 'light',
data,
node: {
style: { size: 8 },
style: { size: 4 },
palette: {
type: 'group',
field: 'cluster',
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { Graph } from '@antv/g6';

fetch('https://site-data-pre.alipay.com/g6/music-festival.json')
fetch('https://assets.antv.antgroup.com/g6/music-festival.json')
.then((res) => res.json())
.then((data) => {
const map = new Map();
Expand Down Expand Up @@ -71,7 +71,7 @@ fetch('https://site-data-pre.alipay.com/g6/music-festival.json')
sortBy: 'order',
cols: 5,
},
behaviors: ['scroll-canvas'],
behaviors: [{ type: 'scroll-canvas', direction: 'y' }],
plugins: [
{
type: 'background',
Expand Down
9 changes: 5 additions & 4 deletions packages/site/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@
"author": "https://github.com/orgs/antvis/people",
"scripts": {
"build": "npm run doc && dumi build",
"build:memo": "node --expose-gc --max-old-space-size=8192 ./node_modules/dumi/bin/dumi build",
"deploy": "gh-pages -d dist -b v5-site",
"dev": "dumi dev",
"doc": "ts-node ./scripts/generate-api.ts && ts-node ./scripts/generate-doc.ts",
Expand All @@ -43,7 +44,7 @@
"@antv/g": "^6.0.6",
"@antv/g-svg": "^2.0.7",
"@antv/g-webgl": "^2.0.10",
"@antv/g2": "^5.1.20",
"@antv/g2": "^5.1.21",
"@antv/g6": "workspace:*",
"@antv/g6-extension-3d": "workspace:*",
"@antv/g6-extension-react": "workspace:*",
Expand All @@ -52,7 +53,7 @@
"@antv/layout-gpu": "^1.1.5",
"@antv/layout-wasm": "^1.4.0",
"@antv/util": "^3.3.7",
"antd": "^5.17.4",
"antd": "^5.18.0",
"dumi": "~2.2.17",
"insert-css": "^2.0.0",
"lodash": "^4.17.21",
Expand All @@ -62,8 +63,8 @@
},
"devDependencies": {
"@manypkg/get-packages": "^2.2.1",
"@microsoft/api-documenter": "^7.25.2",
"@microsoft/api-extractor": "^7.46.2",
"@microsoft/api-documenter": "^7.25.3",
"@microsoft/api-extractor": "^7.47.0",
"@microsoft/api-extractor-model": "^7.29.2",
"@microsoft/tsdoc": "^0.15.0",
"@rushstack/node-core-library": "^4.3.0",
Expand Down

0 comments on commit c1be9ab

Please sign in to comment.