g6/packages/site/gatsby-config.js
2020-12-04 20:54:45 +08:00

359 lines
7.1 KiB
JavaScript
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

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