Skip to content
Open
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
8 changes: 6 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,6 @@ typings/

# gatsby files
.cache/
public

# Mac files
.DS_Store
Expand All @@ -74,10 +73,15 @@ _site



# dumi production
# Site production
/dist

# @antv/site generated files
/.antv-site
/.astro

# dumi tmp_production
.dumi/tmp
.dumi/tmp-production
.idea
pnpm-lock.yaml
18 changes: 10 additions & 8 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,26 +1,28 @@
# AntV New Site 📈
# AntV Site

New AntV site built on [@antv/dumi-theme-antv](https://github.com/antvis/dumi-theme-antv).
The AntV full-stack visualization website is built with
[`@antv/site`](https://github.com/antvis/site).

![prettier code style](https://img.shields.io/badge/code_style-prettier-ff69b4.svg?style=flat-square)

## Install & Preview

```bash
npm install
npm start
pnpm install
pnpm start
```

Visit https://127.0.0.1:8000
The development server prints its local URL after startup.

## Prettier
## Validation

```bash
npm run format
pnpm check
pnpm build
```

## Deploy to antv.vision

```bash
npm run deploy
pnpm deploy
```
117 changes: 117 additions & 0 deletions astro.config.mjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,117 @@
import { defineConfig } from '@antv/site';

export default defineConfig({
site: {
title: 'AntV',
origin: 'https://antv.antgroup.com',
repository: 'https://github.com/antvis/antvis.github.io',
defaultLocale: 'zh',
Comment on lines +4 to +8
locales: ['zh', 'en'],
favicon:
'https://mdn.alipayobjects.com/huamei_qa8qxu/afts/img/A*7svFR6wkPMoAAAAAAAAAAAAADmJ7AQ/original',
logo: 'https://mdn.alipayobjects.com/huamei_qa8qxu/afts/img/A*A-lcQbVTpjwAAAAAAAAAAAAADmJ7AQ/original',
description: {
zh: 'AntV 是蚂蚁集团全新一代数据可视化解决方案,提供简单方便、专业可靠、无限可能的数据可视化最佳实践。',
en: 'AntV is Ant Group’s next-generation data visualization solution, providing simple, reliable, and extensible visualization practices.',
},
},
content: {
docs: './docs',
examples: null,
edit: {
branch: 'master',
path: 'docs',
},
sidebar: {
'specification/principles': {
zh: '设计价值观',
en: 'Design Values',
order: 0,
},
'specification/language': {
zh: '设计语言',
en: 'Language',
order: 1,
},
'specification/strategy': {
zh: '设计策略',
en: 'Strategies',
order: 2,
},
'specification/graph': {
zh: '图表设计指引',
en: 'Visualization Guides',
order: 3,
},
'specification/module': {
zh: '组件设计指引',
en: 'Component Guides',
order: 4,
},
'specification/tool': {
zh: '工具',
en: 'Tools',
order: 6,
},
},
},
navigation: [
{
text: { zh: '产品', en: 'Products' },
href: '#products',
},
{
text: { zh: '设计语言', en: 'Design' },
href: '/specification/principles/basic',
},
],
search: {
enabled: false,
},
home: {
eyebrow: {
zh: 'AntV 企业级数据可视化',
en: 'Enterprise data visualization by AntV',
},
title: {
zh: '让 AI 栩栩如生',
en: 'Make AI come alive',
},
description: {
zh: '蚂蚁企业级数据可视化解决方案,让人们在数据世界里获得视觉化思考能力。',
en: 'Enterprise visualization technology that helps people think visually in a world of data.',
},
showStats: false,
actions: [],
features: [],
},
qa: {
path: 'result',
defaultStack: 'g2',
previewProducts: ['g2', 'g6', 's2'],
},
slots: {
home: {
hero: ['./site/Home.astro'],
},
},
theme: {
tokens: {
'--brand': '#691eff',
'--brand-strong': '#5312d6',
'--brand-button': '#5a16c9',
'--brand-soft': '#f0e8ff',
'--brand-faint': '#faf7ff',
},
},
footer: {
description: {
zh: '从底层渲染到智能分析,构建开放、可靠的全栈数据可视化技术。',
en: 'An open visualization stack spanning rendering, visual analysis, and intelligent tooling.',
},
},
demo: {
height: 480,
},
output: './dist',
});
5 changes: 5 additions & 0 deletions docs/specification/principles/basic.en.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
---
title: Design Values
order: 0
---

The design values of AntV for data visualization are derived from the Ant Design design system (<a href='https://ant.design/docs/spec/introduce-cn' target='_blank'>Ant Design</a>) and serve as guiding principles with characteristics of data visualization. While adhering to the design values of Ant Design, it offers a further interpretation in the field of data visualization.

AntV's design language initially defined four design values: "Accuracy, Clarity, Effectiveness, and Beauty". After several years of extensive project practice in internal business and with the changes in users' demands for data analysis, new requirements have been put forward for charts.
Expand Down
68 changes: 22 additions & 46 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,16 @@
"private": true,
"description": "Ant Visualization solution home page",
"version": "1.0.0",
"type": "module",
"packageManager": "pnpm@10.34.5",
"engines": {
"node": ">=22.12.0"
},
"author": "AntV Team",
"keywords": [
"dumi",
"antvis",
"antv"
"antv",
"visualization"
],
"homepage": "https://antv.antgroup.com",
"repository": {
Expand All @@ -17,54 +22,25 @@
"bugs": {
"url": "https://github.com/antvis/antvis.github.io/issues"
},
"dependencies": {
"ahooks": "^3.9.5",
"@tanstack/react-query": "^5.90.2",
"@ant-design/icons": "^4.8.3",
"@antv/dumi-theme-antv": "^0.8.6",
"@antv/g2plot": "^2.3.1",
"@antv/g6": "3.3.7",
"@antv/util": "^3.3.1",
"antd": "5.10.2",
"chroma-js": "^2.1.0",
"classnames": "^2.2.6",
"dumi": "~2.4.21",
"gh-pages": "^3.1.0",
"husky": "^8.0.2",
"lodash": "^4.17.20",
"prettier": "^2.0.0",
"pretty-quick": "^3.1.3",
"react": "^18.3.1",
"react-dom": "^18.3.1",
"react-github-btn": "^1.4.0"
},
"devDependencies": {
"@types/classnames": "^2.2.9",
"@types/lodash": "^4.14.189",
"@types/parse-github-url": "^1.0.0",
"@types/react": "^18.3.26",
"@types/react-dom": "^18.3.7",
"@types/react-github-button": "^0.1.0",
"@types/react-helmet": "^6.0.0",
"typescript": "latest"
"@antv/g2": "^5.4.8",
"@antv/g6": "5.1.1",
"@antv/s2": "^2.7.2",
"@antv/site": "^0.1.0",
"@astrojs/check": "0.9.10",
"@tabler/icons": "^3.46.0",
"astro": "7.2.0",
"gh-pages": "^6.3.0",
"typescript": "5.9.3"
},
"license": "MIT",
"scripts": {
"start": "npm run develop",
"build": "dumi build",
"dev": "dumi dev",
"deploy": " npm run build && npm run gh-pages",
"start": "astro dev",
"dev": "astro dev",
"build": "astro build",
"check": "astro check",
"deploy": "pnpm run build && pnpm run gh-pages",
"gh-pages": "gh-pages -d dist",
"copy-mirror-action": "mkdir -p public/.github/workflows && cp .github/workflows/mirror.yml public/.github/workflows",
"format": "prettier --write \"**/*.{ts,tsx,js,jsx,json,md,less}\"",
"pretty-quick": "pretty-quick",
"tsc": "tsc",
"serve": "dumi preview",
"type-check": "tsc --noEmit"
},
"husky": {
"hooks": {
"pre-commit": "pretty-quick --staged"
}
"preview": "astro preview"
}
}
1 change: 1 addition & 0 deletions public/CNAME
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
antv.vision
Loading
Loading