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-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: [
|
|
|
|
{
|
2019-12-02 19:58:02 +08:00
|
|
|
slug: 'docs/manual/introduction',
|
2019-11-04 19:36:02 +08:00
|
|
|
title: {
|
2020-07-14 21:14:23 +08:00
|
|
|
zh: '使用文档',
|
|
|
|
en: 'Manual',
|
2020-02-14 10:10:54 +08:00
|
|
|
},
|
2019-11-05 15:55:54 +08:00
|
|
|
},
|
|
|
|
{
|
2019-12-02 19:58:02 +08:00
|
|
|
slug: 'docs/api/Graph',
|
2019-11-05 15:55:54 +08:00
|
|
|
title: {
|
2020-07-14 21:14:23 +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',
|
|
|
|
},
|
|
|
|
},
|
2019-11-04 19:36:02 +08:00
|
|
|
],
|
|
|
|
docs: [
|
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
|
|
|
},
|
|
|
|
{
|
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
|
|
|
},
|
2019-11-06 18:21:43 +08:00
|
|
|
{
|
|
|
|
slug: 'manual/middle/states',
|
|
|
|
title: {
|
|
|
|
zh: '交互与事件',
|
2020-02-14 10:10:54 +08:00
|
|
|
en: 'Behavior & Event',
|
2019-11-06 18:21:43 +08:00
|
|
|
},
|
2020-02-14 10:10:54 +08:00
|
|
|
order: 4,
|
2019-11-06 18:21:43 +08:00
|
|
|
},
|
|
|
|
{
|
|
|
|
slug: 'manual/middle/elements',
|
|
|
|
title: {
|
2020-05-12 19:45:29 +08:00
|
|
|
zh: '节点/边/Combo',
|
|
|
|
en: 'Graph Elements',
|
2020-02-14 10:10:54 +08:00
|
|
|
},
|
2019-11-06 18:21:43 +08:00
|
|
|
},
|
|
|
|
{
|
|
|
|
slug: 'manual/middle/elements/nodes',
|
|
|
|
title: {
|
2019-11-16 18:00:49 +08:00
|
|
|
zh: '内置节点',
|
2020-05-12 19:45:29 +08:00
|
|
|
en: 'Built-in Node',
|
2019-11-06 18:21:43 +08:00
|
|
|
},
|
2020-05-18 13:21:46 +08:00
|
|
|
order: 1,
|
2019-11-06 18:21:43 +08:00
|
|
|
},
|
|
|
|
{
|
|
|
|
slug: 'manual/middle/elements/edges',
|
|
|
|
title: {
|
2019-11-16 18:00:49 +08:00
|
|
|
zh: '内置边',
|
2020-05-12 19:45:29 +08:00
|
|
|
en: 'Built-in Edge',
|
|
|
|
},
|
|
|
|
order: 2,
|
|
|
|
},
|
|
|
|
{
|
|
|
|
slug: 'manual/middle/elements/combos',
|
|
|
|
title: {
|
|
|
|
zh: '内置 Combo',
|
|
|
|
en: 'Built-in Combo',
|
2019-11-06 18:21:43 +08:00
|
|
|
},
|
2020-05-21 16:09:47 +08:00
|
|
|
order: 3,
|
2019-11-06 18:21:43 +08:00
|
|
|
},
|
2019-11-04 19:36:02 +08:00
|
|
|
{
|
2019-11-05 15:55:54 +08:00
|
|
|
slug: 'manual/advanced',
|
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: 'Advanced',
|
2019-11-04 19:36:02 +08:00
|
|
|
},
|
2020-02-14 10:10:54 +08:00
|
|
|
order: 5,
|
2019-11-05 20:06:36 +08:00
|
|
|
},
|
2020-04-20 11:07:50 +08:00
|
|
|
{
|
|
|
|
slug: 'manual/advanced/keyconcept',
|
|
|
|
title: {
|
|
|
|
zh: '概念解释',
|
|
|
|
en: 'Concepts',
|
|
|
|
},
|
|
|
|
order: 0,
|
|
|
|
},
|
2020-07-02 14:30:56 +08:00
|
|
|
{
|
|
|
|
slug: 'manual/advanced/theory',
|
|
|
|
title: {
|
|
|
|
zh: '深度原理解析',
|
|
|
|
en: 'Theory Blog',
|
|
|
|
},
|
|
|
|
order: 1,
|
|
|
|
},
|
2019-11-05 20:06:36 +08:00
|
|
|
{
|
|
|
|
slug: 'api/nodeEdge',
|
|
|
|
title: {
|
2020-05-21 10:32:57 +08:00
|
|
|
zh: '节点/边/Combo',
|
|
|
|
en: 'Node & Edge & Combo',
|
2019-11-07 20:26:07 +08:00
|
|
|
},
|
2020-05-18 13:21:46 +08:00
|
|
|
order: 3,
|
2019-11-08 19:43:55 +08:00
|
|
|
},
|
2019-11-16 17:22:09 +08:00
|
|
|
{
|
|
|
|
slug: 'api/layout',
|
|
|
|
title: {
|
|
|
|
zh: 'Layout',
|
2020-02-14 10:10:54 +08:00
|
|
|
en: 'Layout',
|
2019-11-16 17:22:09 +08:00
|
|
|
},
|
2020-02-14 10:10:54 +08:00
|
|
|
order: 4,
|
2019-11-16 17:22:09 +08:00
|
|
|
},
|
2019-11-04 19:36:02 +08:00
|
|
|
],
|
|
|
|
examples: [
|
|
|
|
{
|
|
|
|
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
|
|
|
},
|
|
|
|
{
|
|
|
|
slug: 'case',
|
|
|
|
icon: 'case',
|
|
|
|
title: {
|
|
|
|
zh: '复杂案例',
|
2020-02-14 10:10:54 +08:00
|
|
|
en: 'Case',
|
|
|
|
},
|
|
|
|
},
|
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
|
|
|
};
|