antv-l7/gatsby-config.js

410 lines
7.9 KiB
JavaScript
Raw Normal View History

2019-11-21 13:44:32 +08:00
module.exports = {
plugins: [
{
resolve: '@antv/gatsby-theme-antv',
options: {
GATrackingId: 'UA-148148901-7',
},
},
2019-11-21 13:44:32 +08:00
],
siteMetadata: {
title: 'L7',
isAntVSite: false,
description:
'Large-scale WebGL-powered Geospatial data visualization analysis framework',
2019-11-21 12:36:59 +08:00
siteUrl: 'https://l7.antv.vision',
2019-11-21 13:44:32 +08:00
githubUrl: 'https://github.com/antvis/L7',
2020-11-16 15:19:41 +08:00
showChartResize: true, // 是否在demo页展示图表视图切换
showAPIDoc: true, // 是否在demo页展示API文档
2019-11-21 13:44:32 +08:00
navs: [
{
slug: 'docs/api',
title: {
zh: '文档',
en: 'Document',
2019-11-21 13:44:32 +08:00
},
redirect: 'api/l7',
2019-11-21 13:44:32 +08:00
},
2019-11-22 12:08:33 +08:00
{
slug: 'docs/tutorial',
title: {
zh: '教程',
en: 'Tutorial',
},
2019-11-22 12:08:33 +08:00
},
2019-11-21 13:44:32 +08:00
{
slug: 'examples',
title: {
zh: '图表演示',
en: 'Examples',
},
},
2019-11-21 13:44:32 +08:00
],
ecosystems: [
{
name: {
zh: 'L7 React 组件',
en: 'L7 For React',
},
url: 'http://antv.vision/L7-react/',
},
{
name: {
zh: 'L7 Plot 图表',
en: 'L7Plot',
},
url: 'https://l7plot.antv.vision/',
},
{
name: {
zh: 'L7 地理围栏绘制组件库',
en: 'L7Draw',
},
url: 'http://antv.vision/L7-draw/',
},
{
name: {
zh: 'L7 行政区划可视化库',
en: 'L7Boundary',
},
url: 'http://antv.vision/L7-boundary/',
},
{
name: {
2021-11-23 17:56:44 +08:00
zh: 'Dipper 地理可视分开发框架',
en: 'Dipper',
},
url: 'http://antv.vision/Dipper',
},
],
2019-11-21 13:44:32 +08:00
docs: [
2021-12-29 17:05:50 +08:00
// ****** tutorial
// quickStart 0
// demo 1
// data 2
2019-11-22 18:21:59 +08:00
{
2019-11-25 11:47:02 +08:00
slug: 'tutorial/map',
2019-11-22 18:21:59 +08:00
title: {
zh: '地图',
en: 'Map',
2019-11-21 13:44:32 +08:00
},
order: 3,
2019-11-21 13:44:32 +08:00
},
{
2021-12-29 17:05:50 +08:00
slug: 'tutorial/interactive',
2019-11-21 13:44:32 +08:00
title: {
2021-12-29 17:05:50 +08:00
zh: '交互',
en: 'interactive',
2019-11-21 13:44:32 +08:00
},
order: 4,
2019-11-21 13:44:32 +08:00
},
2022-01-10 14:15:58 +08:00
{
2022-01-11 21:13:26 +08:00
slug: 'tutorial/demo',
2022-01-10 14:15:58 +08:00
icon: 'map',
title: {
zh: '教程示例',
en: 'Tutorial demo',
2022-01-10 14:15:58 +08:00
},
order: 5,
2022-01-10 14:15:58 +08:00
},
2021-12-29 17:05:50 +08:00
// ****** api
2022-01-10 14:15:58 +08:00
{
slug: 'api/map',
title: {
zh: '地图 Map',
en: 'Map',
2022-01-10 14:15:58 +08:00
},
order: 1,
2022-01-10 14:15:58 +08:00
},
{
slug: 'api/map/earth',
title: {
zh: '地球模式',
en: 'Earth Mode',
2022-01-10 14:15:58 +08:00
},
order: 3,
2022-01-10 14:15:58 +08:00
},
2020-05-15 21:07:04 +08:00
{
2021-12-29 17:05:50 +08:00
slug: 'api/base',
2020-05-15 21:07:04 +08:00
title: {
2021-12-29 17:05:50 +08:00
zh: '图层 base',
en: 'Layer',
2020-05-15 21:07:04 +08:00
},
order: 2,
2020-05-15 21:07:04 +08:00
},
{
slug: 'api/source',
title: {
zh: '数据 Source',
en: 'Source',
},
order: 2,
},
2020-04-18 10:51:09 +08:00
{
2021-12-29 17:05:50 +08:00
slug: 'api/point_layer',
2020-04-18 10:51:09 +08:00
title: {
2021-12-29 17:05:50 +08:00
zh: '点图层',
en: 'PointLayer',
2020-04-18 10:51:09 +08:00
},
order: 3,
2020-04-18 10:51:09 +08:00
},
2020-03-08 14:48:52 +08:00
{
2021-12-29 17:05:50 +08:00
slug: 'api/line_layer',
2020-03-08 14:48:52 +08:00
title: {
2021-12-29 17:05:50 +08:00
zh: '线图层',
en: 'LineLayer',
2020-03-08 14:48:52 +08:00
},
order: 4,
2020-03-08 14:48:52 +08:00
},
2019-11-21 13:44:32 +08:00
{
2021-12-29 17:05:50 +08:00
slug: 'api/polygon_layer',
2019-11-21 13:44:32 +08:00
title: {
2021-12-29 17:05:50 +08:00
zh: '面图层',
en: 'PolygonLayer',
2019-11-21 13:44:32 +08:00
},
order: 5,
2019-11-21 13:44:32 +08:00
},
2019-12-14 22:15:28 +08:00
{
2021-12-29 17:05:50 +08:00
slug: 'api/heatmap_layer',
2019-12-14 22:15:28 +08:00
title: {
2021-12-29 17:05:50 +08:00
zh: '热力图层',
en: 'HeatMapLayer',
2019-12-14 22:15:28 +08:00
},
order: 6,
2019-12-14 22:15:28 +08:00
},
{
2021-12-29 17:05:50 +08:00
slug: 'api/imagelayer',
2019-12-14 22:15:28 +08:00
title: {
2021-12-29 17:05:50 +08:00
zh: '图片图层',
en: 'ImageLayer',
2019-12-14 22:15:28 +08:00
},
order: 7,
2019-12-14 22:15:28 +08:00
},
{
2021-12-29 17:05:50 +08:00
slug: 'api/raster',
2019-12-14 22:15:28 +08:00
title: {
2021-12-29 17:05:50 +08:00
zh: '栅格图层',
en: 'RasterLayer',
2019-12-14 22:15:28 +08:00
},
order: 8,
2022-01-14 15:35:42 +08:00
},
{
slug: 'api/component',
title: {
zh: '组件 Component',
en: 'Component',
2022-01-14 15:35:42 +08:00
},
order: 8,
2022-01-14 15:35:42 +08:00
},
{
slug: 'api/renderer',
title: {
zh: '第三方引擎接入',
en: 'import other gl',
2022-01-14 15:35:42 +08:00
},
order: 8,
2019-12-14 22:15:28 +08:00
},
{
2021-12-29 17:05:50 +08:00
slug: 'api/cityBuilding',
2019-12-14 22:15:28 +08:00
title: {
2021-12-29 17:05:50 +08:00
zh: '城市图层',
en: 'CityBuildLayer',
2019-12-14 22:15:28 +08:00
},
order: 9,
2019-12-14 22:15:28 +08:00
},
2020-01-07 21:15:23 +08:00
{
2022-01-14 15:35:42 +08:00
slug: 'api/wind',
2020-01-07 21:15:23 +08:00
title: {
2022-01-14 15:35:42 +08:00
zh: '风场图层',
en: 'WindLayer',
2020-01-07 21:15:23 +08:00
},
order: 9,
2022-01-14 15:35:42 +08:00
},
{
slug: 'api/mini',
title: {
zh: '小程序',
en: 'mini',
2022-01-14 15:35:42 +08:00
},
order: 9,
2020-01-07 21:15:23 +08:00
},
2021-12-29 17:05:50 +08:00
{
slug: 'api/district',
title: {
zh: '行政区划',
en: 'District',
2020-01-07 21:15:23 +08:00
},
order: 11,
2020-01-07 21:15:23 +08:00
},
2019-12-31 19:17:29 +08:00
{
2021-12-29 17:05:50 +08:00
slug: 'api/draw',
2019-12-31 19:17:29 +08:00
title: {
2021-12-29 17:05:50 +08:00
zh: '绘制组件',
en: 'Draw Component',
2019-12-31 19:17:29 +08:00
},
order: 12,
2019-12-31 19:17:29 +08:00
},
2019-11-21 13:44:32 +08:00
{
2021-12-29 17:05:50 +08:00
slug: 'api/react',
2019-11-21 13:44:32 +08:00
title: {
2021-12-29 17:05:50 +08:00
zh: 'React 组件',
en: 'React Component',
2019-11-21 13:44:32 +08:00
},
order: 13,
2021-11-20 16:04:47 +08:00
},
{
slug: 'api/mini/demos',
title: {
zh: '案例集合',
en: 'demos',
2021-11-20 16:04:47 +08:00
},
order: 14,
},
2019-11-21 13:44:32 +08:00
],
examples: [
{
slug: 'gallery',
icon: 'gallery',
title: {
2019-12-27 15:33:00 +08:00
zh: '官方精品库',
en: 'Featured',
2022-01-11 21:13:26 +08:00
},
order: 0,
2019-11-21 13:44:32 +08:00
},
{
slug: 'point',
icon: 'point',
title: {
zh: '点图层',
en: 'Point Layer',
2022-01-11 21:13:26 +08:00
},
order: 1,
2019-11-21 13:44:32 +08:00
},
{
slug: 'line',
icon: 'line',
title: {
zh: '线图层',
en: 'Line Layer',
2022-01-11 21:13:26 +08:00
},
order: 2,
2019-11-21 13:44:32 +08:00
},
{
slug: 'polygon',
icon: 'polygon',
title: {
zh: '面图层',
en: 'Polygon Layer',
2022-01-11 21:13:26 +08:00
},
order: 3,
2022-01-11 21:13:26 +08:00
},
{
slug: 'earth',
icon: 'map',
title: {
zh: '地球模式',
en: 'Earth Mode',
2022-01-11 21:13:26 +08:00
},
order: 4,
2022-01-11 21:13:26 +08:00
},
2019-11-21 13:44:32 +08:00
{
slug: 'heatmap',
icon: 'heatmap',
title: {
zh: '热力图',
en: 'HeatMap Layer',
2019-11-21 13:44:32 +08:00
},
order: 6,
2019-11-21 13:44:32 +08:00
},
{
slug: 'raster',
icon: 'raster',
title: {
zh: '栅格图层',
en: 'Raster Layer',
2022-01-11 21:13:26 +08:00
},
order: 7,
2019-11-21 13:44:32 +08:00
},
2022-01-14 15:35:42 +08:00
{
slug: 'wind',
icon: 'raster',
title: {
zh: '风场图层',
en: 'Wind Layer',
2022-01-14 15:35:42 +08:00
},
order: 7,
2022-01-14 15:35:42 +08:00
},
2022-01-05 12:15:27 +08:00
{
slug: 'engine',
icon: 'map',
title: {
zh: '第三方引擎',
en: 'other engine',
2022-01-11 21:13:26 +08:00
},
order: 8,
2022-01-05 12:15:27 +08:00
},
{
slug: 'react',
icon: 'map',
title: {
zh: 'React 组件',
en: 'React Demo',
2022-01-11 21:13:26 +08:00
},
order: 9,
2022-01-05 12:15:27 +08:00
},
{
slug: 'amapPlugin',
icon: 'map',
title: {
zh: '高德地图插件',
en: 'amapPlugin',
2022-01-11 21:13:26 +08:00
},
order: 10,
},
{
slug: 'choropleth',
icon: 'map',
title: {
zh: '行政区划 🌟',
en: 'Choropleth',
},
order: 11,
2022-01-05 12:15:27 +08:00
},
{
slug: 'draw',
icon: 'map',
title: {
zh: '绘制组件',
en: 'L7 Draw',
2022-01-11 21:13:26 +08:00
},
order: 12,
2022-01-05 12:15:27 +08:00
},
2019-11-21 13:44:32 +08:00
{
slug: 'tutorial',
icon: 'map',
title: {
zh: '教程示例',
en: 'Tutorial demo',
},
},
2019-11-21 13:44:32 +08:00
],
playground: {
container:
'<div style="height: 100vh;justify-content: center; position: relative" id="map"/>',
dependencies: {
2020-01-19 20:22:30 +08:00
'@antv/l7': 'latest',
'@antv/l7-maps': 'latest',
},
},
2022-01-10 14:15:58 +08:00
mdPlayground: {
// markdown 文档中的 playground 若干设置
splitPaneMainSize: '50%',
},
docsearchOptions: {
apiKey: '97db146dbe490416af81ef3a8923bcaa',
indexName: 'antv_l7',
},
},
2019-11-21 13:44:32 +08:00
};