Skip to content
Closed
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
338 changes: 0 additions & 338 deletions .dumi/theme/locales/en.json

This file was deleted.

330 changes: 0 additions & 330 deletions .dumi/theme/locales/zh.json

This file was deleted.

66 changes: 0 additions & 66 deletions .dumi/theme/slots/Detail/index.tsx

This file was deleted.

154 changes: 0 additions & 154 deletions .dumirc.ts

This file was deleted.

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
```
110 changes: 110 additions & 0 deletions astro.config.mjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,110 @@
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: '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: {
enabled: true,
},
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,
},
});
Loading
Loading