2020-02-11 13:19:34 +08:00
|
|
|
|
const { version, homepage, repository } = require('./package.json');
|
2019-11-04 19:36:02 +08:00
|
|
|
|
|
|
|
|
|
module.exports = {
|
|
|
|
|
plugins: [
|
|
|
|
|
{
|
|
|
|
|
resolve: '@antv/gatsby-theme-antv',
|
|
|
|
|
options: {
|
2020-02-14 10:10:54 +08:00
|
|
|
|
GATrackingId: 'UA-148148901-4',
|
|
|
|
|
},
|
2020-08-17 14:51:02 +08:00
|
|
|
|
},
|
2019-11-04 19:36:02 +08:00
|
|
|
|
],
|
|
|
|
|
// Customize your site metadata:
|
|
|
|
|
siteMetadata: {
|
|
|
|
|
title: 'G6',
|
|
|
|
|
description: 'A collection of charts made with the Grammar of Graphics',
|
2020-02-11 13:19:34 +08:00
|
|
|
|
siteUrl: homepage,
|
2019-11-04 19:36:02 +08:00
|
|
|
|
githubUrl: repository.url,
|
2020-11-13 21:53:34 +08:00
|
|
|
|
showAPIDoc: true,
|
2020-11-16 14:33:45 +08:00
|
|
|
|
isAntVSite: false,
|
2020-02-11 13:19:34 +08:00
|
|
|
|
versions: {
|
|
|
|
|
[version]: 'https://g6.antv.vision',
|
|
|
|
|
'3.2.x': 'https://g6-v3-2.antv.vision',
|
|
|
|
|
},
|
2019-11-04 19:36:02 +08:00
|
|
|
|
navs: [
|
2020-11-20 15:44:55 +08:00
|
|
|
|
{
|
|
|
|
|
slug: 'docs/design/overview',
|
|
|
|
|
title: {
|
|
|
|
|
zh: '设计体系',
|
|
|
|
|
en: 'Design System',
|
|
|
|
|
},
|
|
|
|
|
},
|
2020-09-25 10:23:48 +08:00
|
|
|
|
{
|
2020-09-25 16:49:41 +08:00
|
|
|
|
slug: 'graphmarker',
|
2020-09-25 10:23:48 +08:00
|
|
|
|
title: {
|
|
|
|
|
zh: '交互式文档',
|
|
|
|
|
en: 'GraphMarker',
|
|
|
|
|
},
|
|
|
|
|
},
|
2019-11-04 19:36:02 +08:00
|
|
|
|
{
|
2019-12-02 19:58:02 +08:00
|
|
|
|
slug: 'docs/manual/introduction',
|
2019-11-04 19:36:02 +08:00
|
|
|
|
title: {
|
2020-09-03 19:27:40 +08:00
|
|
|
|
zh: '教程',
|
2020-07-14 21:14:23 +08:00
|
|
|
|
en: 'Manual',
|
2020-02-14 10:10:54 +08:00
|
|
|
|
},
|
2019-11-05 15:55:54 +08:00
|
|
|
|
},
|
|
|
|
|
{
|
2020-11-12 21:37:32 +08:00
|
|
|
|
slug: 'docs/api/Graph',
|
2019-11-05 15:55:54 +08:00
|
|
|
|
title: {
|
2020-09-03 19:27:40 +08:00
|
|
|
|
zh: 'API',
|
2020-02-14 10:10:54 +08:00
|
|
|
|
en: 'API',
|
|
|
|
|
},
|
2019-11-04 19:36:02 +08:00
|
|
|
|
},
|
|
|
|
|
{
|
2020-04-07 17:22:34 +08:00
|
|
|
|
slug: 'examples',
|
2019-11-04 19:36:02 +08:00
|
|
|
|
title: {
|
2020-07-14 21:14:23 +08:00
|
|
|
|
zh: '图表示例',
|
2020-02-14 10:10:54 +08:00
|
|
|
|
en: 'Examples',
|
|
|
|
|
},
|
|
|
|
|
},
|
2020-07-27 15:04:00 +08:00
|
|
|
|
{
|
|
|
|
|
slug: 'https://www.yuque.com/antv/g6-blog',
|
|
|
|
|
title: {
|
|
|
|
|
zh: '博客',
|
|
|
|
|
en: 'blog',
|
|
|
|
|
},
|
|
|
|
|
},
|
2019-11-04 19:36:02 +08:00
|
|
|
|
],
|
|
|
|
|
docs: [
|
2020-11-20 17:55:17 +08:00
|
|
|
|
// ===========Design===================
|
2020-11-20 20:55:39 +08:00
|
|
|
|
{
|
|
|
|
|
slug: 'design/global',
|
|
|
|
|
title: {
|
|
|
|
|
zh: '全局规范',
|
|
|
|
|
en: 'Global',
|
|
|
|
|
},
|
|
|
|
|
order: 3,
|
|
|
|
|
},
|
2020-11-20 17:55:17 +08:00
|
|
|
|
{
|
|
|
|
|
slug: 'design/component',
|
|
|
|
|
title: {
|
|
|
|
|
zh: '组件设计',
|
|
|
|
|
en: 'Component Design',
|
|
|
|
|
},
|
|
|
|
|
order: 4,
|
|
|
|
|
},
|
2019-11-13 15:34:21 +08:00
|
|
|
|
{
|
|
|
|
|
slug: 'manual/FAQ',
|
|
|
|
|
title: {
|
|
|
|
|
zh: 'FAQ',
|
2020-02-14 10:10:54 +08:00
|
|
|
|
en: 'FAQ',
|
2019-11-13 15:34:21 +08:00
|
|
|
|
},
|
2020-02-14 10:10:54 +08:00
|
|
|
|
order: 2,
|
2019-11-13 15:34:21 +08:00
|
|
|
|
},
|
2019-11-04 19:36:02 +08:00
|
|
|
|
{
|
|
|
|
|
slug: 'manual/tutorial',
|
|
|
|
|
title: {
|
|
|
|
|
zh: '入门教程',
|
2020-02-14 10:10:54 +08:00
|
|
|
|
en: 'Tutorial',
|
2019-11-04 19:36:02 +08:00
|
|
|
|
},
|
2020-02-14 10:10:54 +08:00
|
|
|
|
order: 3,
|
2019-11-04 19:36:02 +08:00
|
|
|
|
},
|
2020-07-27 15:04:00 +08:00
|
|
|
|
// ===========Concepts===================
|
2019-11-04 19:36:02 +08:00
|
|
|
|
{
|
2019-11-05 15:55:54 +08:00
|
|
|
|
slug: 'manual/middle',
|
2019-11-04 19:36:02 +08:00
|
|
|
|
title: {
|
2019-11-13 15:34:21 +08:00
|
|
|
|
zh: '核心概念',
|
2020-02-14 10:10:54 +08:00
|
|
|
|
en: 'Middle',
|
2019-11-04 19:36:02 +08:00
|
|
|
|
},
|
2020-02-14 10:10:54 +08:00
|
|
|
|
order: 4,
|
2019-11-04 19:36:02 +08:00
|
|
|
|
},
|
2020-08-25 19:14:43 +08:00
|
|
|
|
|
2019-11-06 18:21:43 +08:00
|
|
|
|
{
|
2020-08-28 17:10:03 +08:00
|
|
|
|
slug: 'manual/middle/elements',
|
2019-11-06 18:21:43 +08:00
|
|
|
|
title: {
|
2020-08-28 17:10:03 +08:00
|
|
|
|
zh: '图元素:节点/边/Combo',
|
|
|
|
|
en: 'Graph Elements',
|
2019-11-06 18:21:43 +08:00
|
|
|
|
},
|
2020-07-27 15:04:00 +08:00
|
|
|
|
order: 2,
|
2019-11-06 18:21:43 +08:00
|
|
|
|
},
|
2020-07-27 15:04:00 +08:00
|
|
|
|
|
2019-11-06 18:21:43 +08:00
|
|
|
|
{
|
2020-08-28 17:10:03 +08:00
|
|
|
|
slug: 'manual/middle/elements/shape',
|
2019-11-06 18:21:43 +08:00
|
|
|
|
title: {
|
2020-08-28 17:10:03 +08:00
|
|
|
|
zh: '图形 Shape(选读)',
|
|
|
|
|
en: 'Shape',
|
2020-02-14 10:10:54 +08:00
|
|
|
|
},
|
2020-08-28 17:10:03 +08:00
|
|
|
|
order: 1,
|
2019-11-06 18:21:43 +08:00
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
slug: 'manual/middle/elements/nodes',
|
|
|
|
|
title: {
|
2020-07-27 15:04:00 +08:00
|
|
|
|
zh: '节点',
|
|
|
|
|
en: 'Node',
|
2019-11-06 18:21:43 +08:00
|
|
|
|
},
|
2020-08-28 17:10:03 +08:00
|
|
|
|
order: 2,
|
2020-07-27 15:04:00 +08:00
|
|
|
|
},
|
|
|
|
|
{
|
2020-08-25 19:14:43 +08:00
|
|
|
|
slug: 'manual/middle/elements/edges',
|
2020-07-27 15:04:00 +08:00
|
|
|
|
title: {
|
2020-08-25 19:14:43 +08:00
|
|
|
|
zh: '边',
|
|
|
|
|
en: 'Edge',
|
2020-07-27 15:04:00 +08:00
|
|
|
|
},
|
2020-08-28 17:10:03 +08:00
|
|
|
|
order: 3,
|
2019-11-06 18:21:43 +08:00
|
|
|
|
},
|
|
|
|
|
{
|
2020-08-25 19:14:43 +08:00
|
|
|
|
slug: 'manual/middle/elements/combos',
|
2019-11-06 18:21:43 +08:00
|
|
|
|
title: {
|
2020-08-25 19:14:43 +08:00
|
|
|
|
zh: 'Combo',
|
|
|
|
|
en: 'Combo',
|
|
|
|
|
},
|
2020-08-28 17:10:03 +08:00
|
|
|
|
order: 4,
|
2020-08-25 19:14:43 +08:00
|
|
|
|
},
|
2020-08-28 17:10:03 +08:00
|
|
|
|
|
2020-08-25 19:14:43 +08:00
|
|
|
|
{
|
|
|
|
|
slug: 'manual/middle/elements/nodes/built-in',
|
|
|
|
|
title: {
|
|
|
|
|
zh: '内置节点类型',
|
|
|
|
|
en: 'Built-in Nodes',
|
2020-05-12 19:45:29 +08:00
|
|
|
|
},
|
2020-07-27 15:04:00 +08:00
|
|
|
|
order: 1,
|
2020-05-12 19:45:29 +08:00
|
|
|
|
},
|
|
|
|
|
{
|
2020-07-27 15:04:00 +08:00
|
|
|
|
slug: 'manual/middle/elements/edges/built-in',
|
2020-05-12 19:45:29 +08:00
|
|
|
|
title: {
|
2020-07-27 15:04:00 +08:00
|
|
|
|
zh: '内置边类型',
|
|
|
|
|
en: 'Built-in Edges',
|
2019-11-06 18:21:43 +08:00
|
|
|
|
},
|
2020-08-25 19:14:43 +08:00
|
|
|
|
order: 1,
|
2019-11-06 18:21:43 +08:00
|
|
|
|
},
|
2019-11-04 19:36:02 +08:00
|
|
|
|
{
|
2020-08-25 19:14:43 +08:00
|
|
|
|
slug: 'manual/middle/elements/combos/built-in',
|
2019-11-04 19:36:02 +08:00
|
|
|
|
title: {
|
2020-08-25 19:14:43 +08:00
|
|
|
|
zh: '内置Combo',
|
|
|
|
|
en: 'Built-in Combos',
|
2019-11-04 19:36:02 +08:00
|
|
|
|
},
|
2020-08-25 19:14:43 +08:00
|
|
|
|
order: 1,
|
2019-11-05 20:06:36 +08:00
|
|
|
|
},
|
2020-08-28 17:10:03 +08:00
|
|
|
|
|
2020-04-20 11:07:50 +08:00
|
|
|
|
{
|
2020-08-25 19:14:43 +08:00
|
|
|
|
slug: 'manual/middle/elements/advanced-style',
|
2020-04-20 11:07:50 +08:00
|
|
|
|
title: {
|
2020-08-25 19:14:43 +08:00
|
|
|
|
zh: '高级样式',
|
|
|
|
|
en: 'Advanced Style',
|
2020-04-20 11:07:50 +08:00
|
|
|
|
},
|
2020-08-28 17:10:03 +08:00
|
|
|
|
order: 5,
|
2020-04-20 11:07:50 +08:00
|
|
|
|
},
|
2020-07-02 14:30:56 +08:00
|
|
|
|
{
|
2020-07-27 15:04:00 +08:00
|
|
|
|
slug: 'manual/middle/elements/methods',
|
2020-07-02 14:30:56 +08:00
|
|
|
|
title: {
|
2020-08-25 19:14:43 +08:00
|
|
|
|
zh: '高级操作',
|
|
|
|
|
en: 'Advanced operation',
|
2020-07-02 14:30:56 +08:00
|
|
|
|
},
|
2020-08-28 17:10:03 +08:00
|
|
|
|
order: 6,
|
2020-07-27 15:04:00 +08:00
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
{
|
|
|
|
|
slug: 'manual/middle/layout',
|
|
|
|
|
title: {
|
|
|
|
|
zh: '图布局',
|
|
|
|
|
en: 'Graph Layouts',
|
|
|
|
|
},
|
2020-08-28 17:10:03 +08:00
|
|
|
|
order: 3,
|
2020-07-27 15:04:00 +08:00
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
slug: 'manual/middle/states',
|
|
|
|
|
title: {
|
|
|
|
|
zh: '交互与事件',
|
|
|
|
|
en: 'Behavior & Event',
|
|
|
|
|
},
|
2020-08-28 17:10:03 +08:00
|
|
|
|
order: 4,
|
2020-07-27 15:04:00 +08:00
|
|
|
|
},
|
2020-10-13 14:05:04 +08:00
|
|
|
|
{
|
|
|
|
|
slug: 'manual/middle/plugins',
|
|
|
|
|
title: {
|
|
|
|
|
zh: '分析组件',
|
|
|
|
|
en: 'Component',
|
|
|
|
|
},
|
|
|
|
|
order: 6,
|
|
|
|
|
},
|
2020-07-27 15:04:00 +08:00
|
|
|
|
// ==============================
|
|
|
|
|
{
|
|
|
|
|
slug: 'manual/advanced',
|
|
|
|
|
title: {
|
|
|
|
|
zh: '拓展阅读',
|
|
|
|
|
en: 'Further Reading',
|
|
|
|
|
},
|
|
|
|
|
order: 5,
|
2020-07-02 14:30:56 +08:00
|
|
|
|
},
|
2020-07-27 15:04:00 +08:00
|
|
|
|
// ==========API====================
|
2019-11-05 20:06:36 +08:00
|
|
|
|
{
|
2020-11-13 21:53:34 +08:00
|
|
|
|
slug: 'api/graphLayout',
|
2019-11-05 20:06:36 +08:00
|
|
|
|
title: {
|
2020-11-13 21:53:34 +08:00
|
|
|
|
zh: '图布局 Graph Layout',
|
|
|
|
|
en: 'Graph Layout',
|
2019-11-07 20:26:07 +08:00
|
|
|
|
},
|
2020-11-13 21:53:34 +08:00
|
|
|
|
order: 1,
|
2019-11-08 19:43:55 +08:00
|
|
|
|
},
|
2019-11-16 17:22:09 +08:00
|
|
|
|
{
|
2020-11-16 14:56:09 +08:00
|
|
|
|
slug: 'api/graphFunc',
|
2019-11-16 17:22:09 +08:00
|
|
|
|
title: {
|
2020-11-13 21:53:34 +08:00
|
|
|
|
zh: 'Graph 实例方法',
|
|
|
|
|
en: 'Graph Functions',
|
2019-11-16 17:22:09 +08:00
|
|
|
|
},
|
2020-11-13 21:53:34 +08:00
|
|
|
|
order: 2,
|
2019-11-16 17:22:09 +08:00
|
|
|
|
},
|
2020-08-10 19:08:49 +08:00
|
|
|
|
{
|
2020-11-13 21:53:34 +08:00
|
|
|
|
slug: 'api/treeGraphLayout',
|
2020-08-10 19:08:49 +08:00
|
|
|
|
title: {
|
2020-11-13 21:53:34 +08:00
|
|
|
|
zh: '树图布局 TreeGraph Layout',
|
|
|
|
|
en: 'TreeGraph Layout',
|
2020-08-10 19:08:49 +08:00
|
|
|
|
},
|
|
|
|
|
order: 4,
|
|
|
|
|
},
|
|
|
|
|
{
|
2020-11-13 21:53:34 +08:00
|
|
|
|
slug: 'api/items',
|
2020-08-10 19:08:49 +08:00
|
|
|
|
title: {
|
|
|
|
|
zh: '元素方法和配置',
|
2020-11-13 21:53:34 +08:00
|
|
|
|
en: 'Item Functions & Options',
|
2020-08-10 19:08:49 +08:00
|
|
|
|
},
|
2020-11-13 21:53:34 +08:00
|
|
|
|
order: 6,
|
2020-11-20 17:55:17 +08:00
|
|
|
|
},
|
2019-11-04 19:36:02 +08:00
|
|
|
|
],
|
|
|
|
|
examples: [
|
2020-11-17 22:40:12 +08:00
|
|
|
|
{
|
|
|
|
|
slug: 'case',
|
|
|
|
|
icon: 'gallery',
|
|
|
|
|
title: {
|
|
|
|
|
zh: '场景案例',
|
|
|
|
|
en: 'Case',
|
|
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
slug: 'gallery',
|
|
|
|
|
icon: 'gallery',
|
|
|
|
|
title: {
|
|
|
|
|
zh: '所有图表',
|
|
|
|
|
en: 'All Demos',
|
|
|
|
|
},
|
|
|
|
|
},
|
2019-11-04 19:36:02 +08:00
|
|
|
|
{
|
|
|
|
|
slug: 'tree',
|
|
|
|
|
icon: 'tree', // 图标名可以去 https://antv.alipay.com/zh-cn/g2/3.x/demo/index.html 打开控制台查看图标类名
|
|
|
|
|
title: {
|
|
|
|
|
zh: '树图',
|
2020-02-14 10:10:54 +08:00
|
|
|
|
en: 'Tree Graph',
|
|
|
|
|
},
|
2019-11-04 19:36:02 +08:00
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
slug: 'net',
|
|
|
|
|
icon: 'net',
|
|
|
|
|
title: {
|
|
|
|
|
zh: '一般图',
|
2020-02-14 10:10:54 +08:00
|
|
|
|
en: 'General Graph',
|
|
|
|
|
},
|
2019-11-04 19:36:02 +08:00
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
slug: 'graphql',
|
|
|
|
|
icon: 'graphql',
|
|
|
|
|
title: {
|
|
|
|
|
zh: '其他表达形式',
|
2020-02-14 10:10:54 +08:00
|
|
|
|
en: 'Net Charts',
|
|
|
|
|
},
|
2019-11-04 19:36:02 +08:00
|
|
|
|
},
|
|
|
|
|
{
|
2020-05-14 13:44:58 +08:00
|
|
|
|
slug: 'item',
|
2019-11-04 19:36:02 +08:00
|
|
|
|
icon: 'shape',
|
|
|
|
|
title: {
|
|
|
|
|
zh: '元素',
|
2020-05-14 13:44:58 +08:00
|
|
|
|
en: 'Item',
|
2020-02-14 10:10:54 +08:00
|
|
|
|
},
|
2019-11-04 19:36:02 +08:00
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
slug: 'interaction',
|
|
|
|
|
icon: 'interaction',
|
|
|
|
|
title: {
|
|
|
|
|
zh: '交互',
|
2020-02-14 10:10:54 +08:00
|
|
|
|
en: 'Interaction',
|
|
|
|
|
},
|
2019-11-04 19:36:02 +08:00
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
slug: 'scatter',
|
|
|
|
|
icon: 'scatter',
|
|
|
|
|
title: {
|
|
|
|
|
zh: '动画',
|
2020-02-14 10:10:54 +08:00
|
|
|
|
en: 'Animation',
|
|
|
|
|
},
|
2019-11-04 19:36:02 +08:00
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
slug: 'tool',
|
|
|
|
|
icon: 'tool',
|
|
|
|
|
title: {
|
2019-11-13 11:30:50 +08:00
|
|
|
|
zh: '组件',
|
2020-02-14 10:10:54 +08:00
|
|
|
|
en: 'Component',
|
|
|
|
|
},
|
2019-11-04 19:36:02 +08:00
|
|
|
|
},
|
2020-11-12 19:42:59 +08:00
|
|
|
|
{
|
|
|
|
|
slug: 'algorithm',
|
|
|
|
|
icon: 'gallery',
|
|
|
|
|
title: {
|
|
|
|
|
zh: '算法',
|
|
|
|
|
en: 'Algorithm',
|
|
|
|
|
},
|
|
|
|
|
},
|
2020-08-07 19:52:40 +08:00
|
|
|
|
{
|
|
|
|
|
slug: 'performance',
|
|
|
|
|
icon: 'net',
|
|
|
|
|
title: {
|
|
|
|
|
zh: '性能测试',
|
2020-08-17 14:51:02 +08:00
|
|
|
|
en: 'Performance',
|
|
|
|
|
},
|
|
|
|
|
},
|
2020-02-14 10:10:54 +08:00
|
|
|
|
],
|
2020-02-29 20:52:09 +08:00
|
|
|
|
docsearchOptions: {
|
|
|
|
|
apiKey: '9d1cd586972bb492b7b41b13a949ef30',
|
|
|
|
|
indexName: 'antv_g6',
|
|
|
|
|
},
|
2020-02-14 10:10:54 +08:00
|
|
|
|
},
|
2019-11-04 19:36:02 +08:00
|
|
|
|
};
|