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',
|
|
|
|
},
|
|
|
|
},
|
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: {
|
2019-11-13 15:34:21 +08:00
|
|
|
zh: '文档',
|
2020-02-14 10:10:54 +08:00
|
|
|
en: 'Docs',
|
|
|
|
},
|
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: {
|
2019-11-13 15:34:21 +08:00
|
|
|
zh: 'API',
|
2020-02-14 10:10:54 +08:00
|
|
|
en: 'API',
|
|
|
|
},
|
2019-11-04 19:36:02 +08:00
|
|
|
},
|
|
|
|
{
|
2019-11-15 15:04:15 +08:00
|
|
|
slug: 'examples/tree/compactBox',
|
2019-11-04 19:36:02 +08:00
|
|
|
title: {
|
|
|
|
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: {
|
|
|
|
zh: '节点与边',
|
2020-02-14 10:10:54 +08:00
|
|
|
en: 'Graph Element',
|
|
|
|
},
|
2019-11-06 18:21:43 +08:00
|
|
|
},
|
|
|
|
{
|
|
|
|
slug: 'manual/middle/elements/nodes',
|
|
|
|
title: {
|
2019-11-16 18:00:49 +08:00
|
|
|
zh: '内置节点',
|
2020-02-14 10:10:54 +08:00
|
|
|
en: 'Default Node',
|
2019-11-06 18:21:43 +08:00
|
|
|
},
|
2020-02-14 10:10:54 +08:00
|
|
|
order: 2,
|
2019-11-06 18:21:43 +08:00
|
|
|
},
|
|
|
|
{
|
|
|
|
slug: 'manual/middle/elements/edges',
|
|
|
|
title: {
|
2019-11-16 18:00:49 +08:00
|
|
|
zh: '内置边',
|
2020-02-14 10:10:54 +08:00
|
|
|
en: 'Default Edge',
|
2019-11-06 18:21:43 +08:00
|
|
|
},
|
2020-02-14 10:10:54 +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
|
|
|
},
|
2019-11-13 15:34:21 +08:00
|
|
|
{
|
|
|
|
slug: 'manual/cases',
|
|
|
|
title: {
|
2019-11-16 16:06:19 +08:00
|
|
|
zh: '综合应用',
|
2020-02-14 10:10:54 +08:00
|
|
|
en: 'Cases',
|
2019-11-13 15:34:21 +08:00
|
|
|
},
|
2020-02-14 10:10:54 +08:00
|
|
|
order: 6,
|
2019-11-13 15:34:21 +08:00
|
|
|
},
|
2019-11-05 20:06:36 +08:00
|
|
|
{
|
|
|
|
slug: 'api',
|
|
|
|
title: {
|
|
|
|
zh: 'API 文档',
|
2020-02-14 10:10:54 +08:00
|
|
|
en: 'API Doc',
|
|
|
|
},
|
2019-11-05 20:06:36 +08:00
|
|
|
},
|
|
|
|
{
|
|
|
|
slug: 'api/nodeEdge',
|
|
|
|
title: {
|
|
|
|
zh: '节点和边',
|
2020-02-14 10:10:54 +08:00
|
|
|
en: 'Node & Edge',
|
2019-11-07 20:26:07 +08:00
|
|
|
},
|
2020-02-14 10:10:54 +08:00
|
|
|
order: 4,
|
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-08 19:43:55 +08:00
|
|
|
{
|
|
|
|
slug: 'api/properties',
|
|
|
|
title: {
|
|
|
|
zh: '属性配置项',
|
2020-02-14 10:10:54 +08:00
|
|
|
en: 'Properties',
|
2019-11-08 19:43:55 +08:00
|
|
|
},
|
2020-02-14 10:10:54 +08:00
|
|
|
order: 10,
|
|
|
|
},
|
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
|
|
|
},
|
|
|
|
{
|
|
|
|
slug: 'shape',
|
|
|
|
icon: 'shape',
|
|
|
|
title: {
|
|
|
|
zh: '元素',
|
2020-02-14 10:10:54 +08:00
|
|
|
en: 'Shape',
|
|
|
|
},
|
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',
|
|
|
|
},
|
|
|
|
},
|
|
|
|
],
|
|
|
|
},
|
2019-11-04 19:36:02 +08:00
|
|
|
};
|