docs: 调整官网文档结构

This commit is contained in:
shihui 2022-01-10 14:15:58 +08:00
parent 593fee9674
commit b38cc46df4
20 changed files with 79 additions and 20 deletions

View File

@ -1,5 +1,5 @@
---
title: 地球模式
title: Earth Mode
order: 1
---

View File

@ -1,6 +1,6 @@
---
title: Amap Plugin
order: 3
order: 2
---
`markdown:docs/api/amapPlugin/plugin.zh.md`

View File

@ -1,6 +1,6 @@
---
title: 高德插件
order: 3
order: 2
---
`markdown:docs/common/style.md`

View File

@ -0,0 +1,5 @@
---
title: Control
order: 2
---
How to use the map control

View File

@ -0,0 +1,9 @@
---
title: 组件
order: 2
---
如何使用组件
## 使用
<playground path='tutorial/control/demo/amap.ts' rid='basic-bar-demo'></playground>

View File

@ -0,0 +1,5 @@
---
title: Layer
order: 2
---
How to use the map control

View File

@ -0,0 +1,5 @@
---
title: 图层
order: 2
---
图层初始化与交互

View File

@ -0,0 +1,6 @@
---
title: Map
order: 0
---
how to use L7 Initialize third-party maps

View File

@ -0,0 +1,7 @@
---
title: 地图
order: 0
---
介绍如何初始化一个第三方底图

View File

@ -0,0 +1,5 @@
---
title: Marker
order: 2
---
add Rich text annotation to scene

View File

@ -0,0 +1,5 @@
---
title: Marker
order: 2
---
通过添加dom实现富文本地图标注

View File

@ -90,8 +90,32 @@ module.exports = {
},
order: 4
},
{
slug: 'tutorial/examples',
icon: 'map',
title: {
zh: '教程示例',
en: 'Tutorial demo'
},
},
// ****** api
{
slug: 'api/map',
title: {
zh: '地图 Map',
en: 'Map'
},
order: 1
},
{
slug: 'api/map/earth',
title: {
zh: '地球模式',
en: 'Earth Mode'
},
order: 2
},
{
slug: 'api/base',
title: {
@ -212,14 +236,6 @@ module.exports = {
},
order: 3
},
{
slug: 'api/earth',
title: {
zh: '地球模式',
en: 'Earth Mode'
},
order: 3
},
{
slug: 'api/wind',
title: {
@ -243,14 +259,6 @@ module.exports = {
en: 'demos'
},
order: 5
},
{
slug: 'api/amapPlugin',
title: {
zh: '地图插件',
en: 'map plugin'
},
order: 5
}
],
examples: [
@ -375,6 +383,10 @@ module.exports = {
'@antv/l7-maps': 'latest'
}
},
mdPlayground: {
// markdown 文档中的 playground 若干设置
splitPaneMainSize: '50%',
},
docsearchOptions: {
apiKey: '97db146dbe490416af81ef3a8923bcaa',
indexName: 'antv_l7'

View File

@ -76,7 +76,7 @@
"eslint": "^6.6.0",
"eslint-config-egg": "^7.5.1",
"eslint-plugin-html": "^6.0.0",
"gatsby": "2.25.0",
"gatsby": "2.32.13",
"gatsby-plugin-google-analytics": "^2.1.27",
"gatsby-remark-prettier": "^1.0.0",
"geotiff": "1.0.0-beta.10",