Skip to content

Commit

Permalink
docs: refactor structure (#5241)
Browse files Browse the repository at this point in the history
  • Loading branch information
pearmini committed Jul 26, 2023
1 parent ceb5c35 commit 9b012cb
Show file tree
Hide file tree
Showing 78 changed files with 178 additions and 177 deletions.
41 changes: 17 additions & 24 deletions site/.dumirc.ts
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ export default defineConfig({
showWxQrcode: true, // 是否显示头部菜单的微信公众号
showChartResize: true, // 是否在 demo 页展示图表视图切换
showAPIDoc: true, // 是否在 demo 页展示API文档
showSpecTab: true, // 是否展示 Spec 页面
showSpecTab: true, // 是否展示 component 页面
es5: false, // 案例代码是否编译到 es5
versions: {
// 历史版本以及切换下拉菜单
Expand All @@ -51,16 +51,16 @@ export default defineConfig({
{
slug: 'docs/manual/introduction',
title: {
zh: '教程',
en: 'Tutorials',
zh: '文档',
en: 'Docs',
},
order: 3,
},
{
slug: 'docs/spec/overview',
title: {
zh: '文档',
en: 'Documentation',
zh: '选项',
en: 'Spec',
},
order: 2,
},
Expand All @@ -80,13 +80,6 @@ export default defineConfig({
},
order: 0,
},
// {
// slug: 'theme',
// title: {
// zh: '主题',
// en: 'Theme',
// },
// },
],
ecosystems: [
// 头部的菜单中的「周边生态」
Expand All @@ -101,28 +94,28 @@ export default defineConfig({
docs: [
// manual
{
slug: 'manual/single-view',
slug: 'manual/introduction',
title: {
zh: '基础',
en: 'General',
zh: '简介',
en: 'Introduction',
},
order: 3,
order: 1,
},
{
slug: 'manual/theme',
slug: 'manual/core',
title: {
zh: '风格',
en: 'Style',
zh: '核心概念',
en: 'Core Concepts',
},
order: 10,
order: 2,
},
{
slug: 'manual/more',
slug: 'manual/extra-topics',
title: {
zh: '更多',
en: 'More',
zh: '进阶主题',
en: 'Extra Topics',
},
order: 11,
order: 3,
},
// docs
{
Expand Down
6 changes: 0 additions & 6 deletions site/docs/manual/animation.en.md

This file was deleted.

6 changes: 0 additions & 6 deletions site/docs/manual/color.en.md

This file was deleted.

6 changes: 6 additions & 0 deletions site/docs/manual/core/animation.en.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---
title: Animation
order: 7
---

<embed src="@/docs/manual/core/animation.zh.md"></embed>
File renamed without changes.
6 changes: 6 additions & 0 deletions site/docs/manual/core/annotation.en.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---
title: Label
order: 10
---

<embed src="@/docs/manual/core/annotation.zh.md"></embed>
File renamed without changes.
6 changes: 6 additions & 0 deletions site/docs/manual/core/api.en.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---
title: API
order: 2
---

<embed src="@/docs/manual/core/api.zh.md"></embed>
File renamed without changes.
6 changes: 6 additions & 0 deletions site/docs/manual/core/chart.en.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---
title: Chart
order: 1
---

<embed src="@/docs/manual/core/chart.zh.md"></embed>
File renamed without changes.
6 changes: 6 additions & 0 deletions site/docs/manual/core/component.en.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---
title: Component
order: 9
---

<embed src="@/docs/manual/core/component.zh.md"></embed>
File renamed without changes.
6 changes: 6 additions & 0 deletions site/docs/manual/core/composition.en.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---
title: Composition
order: 5
---

<embed src="@/docs/manual/core/view-composition.zh.md"></embed>
6 changes: 6 additions & 0 deletions site/docs/manual/core/coordinate.en.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---
title: Coordinate
order: 8
---

<embed src="@/docs/manual/core/coordinate.zh.md"></embed>
File renamed without changes.
6 changes: 6 additions & 0 deletions site/docs/manual/core/data.en.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---
title: Data
order: 5
---

<embed src="@/docs/manual/core/data.zh.md"></embed>
File renamed without changes.
6 changes: 6 additions & 0 deletions site/docs/manual/core/interaction.en.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---
title: Interaction
order: 8
---

<embed src="@/docs/manual/core/interaction.zh.md"></embed>
File renamed without changes.
6 changes: 6 additions & 0 deletions site/docs/manual/core/label.en.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---
title: Label
order: 10
---

<embed src="@/docs/manual/core/label.zh.md"></embed>
File renamed without changes.
6 changes: 6 additions & 0 deletions site/docs/manual/core/mark.en.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---
title: Mark
order: 4
---

<embed src="@/docs/manual/core/mark.zh.md"></embed>
File renamed without changes.
6 changes: 6 additions & 0 deletions site/docs/manual/core/scale.en.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---
title: Scale
order: 7
---

<embed src="@/docs/manual/core/scale.zh.md"></embed>
File renamed without changes.
6 changes: 6 additions & 0 deletions site/docs/manual/core/size.en.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---
title: Size
order: 3
---

<embed src="@/docs/manual/core/size.zh.md"></embed>
File renamed without changes.
6 changes: 6 additions & 0 deletions site/docs/manual/core/theme.en.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---
title: Theme
order: 9
---

<embed src="@/docs/manual/core/theme.zh.md"></embed>
File renamed without changes.
6 changes: 6 additions & 0 deletions site/docs/manual/core/tooltip.en.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---
title: Tooltip
order: 11
---

<embed src="@/docs/manual/core/tooltip.zh.md"></embed>
File renamed without changes.
6 changes: 6 additions & 0 deletions site/docs/manual/core/transform.en.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---
title: Transform
order: 6
---

<embed src="@/docs/manual/core/transform.zh.md"></embed>
File renamed without changes.
File renamed without changes.
6 changes: 0 additions & 6 deletions site/docs/manual/customization.en.md

This file was deleted.

6 changes: 0 additions & 6 deletions site/docs/manual/event.en.md

This file was deleted.

6 changes: 6 additions & 0 deletions site/docs/manual/extra-topics/color.en.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---
title: Event
order: 9
---

<embed src="@/docs/manual/extra-topics/color.zh.md"></embed>
File renamed without changes.
6 changes: 6 additions & 0 deletions site/docs/manual/extra-topics/customization.en.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---
title: Customization
order: 8
---

<embed src="@/docs/manual/extra-topics/customization.zh.md"></embed>
File renamed without changes.
6 changes: 6 additions & 0 deletions site/docs/manual/extra-topics/event.en.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---
title: Event
order: 9
---

<embed src="@/docs/manual/extra-topics/event.zh.md"></embed>
File renamed without changes.
6 changes: 6 additions & 0 deletions site/docs/manual/extra-topics/experimental-spec-api.en.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---
title: Experimental Spec API
order: 1
---

<embed src="@/docs/manual/extra-topics/experimental-spec-api.zh.md"></embed>
6 changes: 6 additions & 0 deletions site/docs/manual/extra-topics/migration-from-g2v4.en.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---
title: G2 5.0 Migration Guide
order: 3
---

<embed src="@/docs/manual/extra-topics/migration-from-g2v4.zh.md"></embed>
6 changes: 6 additions & 0 deletions site/docs/manual/extra-topics/pattern.en.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---
title: Pattern
order: 10
---

<embed src="@/docs/manual/extra-topics/pattern.zh.md"></embed>
File renamed without changes.
6 changes: 6 additions & 0 deletions site/docs/manual/extra-topics/use-in-framework.en.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---
title: Use In Framework
order: 1
---

<embed src="@/docs/manual/extra-topics/use-in-framework.zh.md"></embed>
6 changes: 0 additions & 6 deletions site/docs/manual/getting-started.en.md

This file was deleted.

6 changes: 0 additions & 6 deletions site/docs/manual/interaction.en.md

This file was deleted.

6 changes: 0 additions & 6 deletions site/docs/manual/introduction.en.md

This file was deleted.

6 changes: 6 additions & 0 deletions site/docs/manual/introduction/getting-started.en.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---
title: Getting Started
order: 3
---

<embed src="@/docs/manual/introduction/getting-started.zh.md"></embed>
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
title: 快速上手
order: 2
title: 开始使用
order: 3
---

目前有两种使用 G2 的方式:
Expand Down
6 changes: 6 additions & 0 deletions site/docs/manual/introduction/what-is-g2.en.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---
title: What is G2?
order: 1
---

<embed src="@/docs/manual/introduction/what-is-g2.zh.md"></embed>
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
title: 简介
title: 什么是 G2
order: 1
---

Expand Down
4 changes: 4 additions & 0 deletions site/docs/manual/introduction/why-g2.en.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
---
title: Why G2?
order: 2
---
4 changes: 4 additions & 0 deletions site/docs/manual/introduction/why-g2.zh.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
---
title: 为什么选 G2?
order: 2
---
6 changes: 0 additions & 6 deletions site/docs/manual/more/experimental-spec-api.en.md

This file was deleted.

6 changes: 0 additions & 6 deletions site/docs/manual/more/migration-from-g2v4.en.md

This file was deleted.

6 changes: 0 additions & 6 deletions site/docs/manual/more/use-in-framework.en.md

This file was deleted.

6 changes: 0 additions & 6 deletions site/docs/manual/single-view/annotation.en.md

This file was deleted.

6 changes: 0 additions & 6 deletions site/docs/manual/single-view/api.en.md

This file was deleted.

6 changes: 0 additions & 6 deletions site/docs/manual/single-view/chart.en.md

This file was deleted.

6 changes: 0 additions & 6 deletions site/docs/manual/single-view/component.en.md

This file was deleted.

Loading

0 comments on commit 9b012cb

Please sign in to comment.