Skip to content

Commit 248f18b

Browse files
committed
docs: upgrade to dumi v2
1 parent c759d60 commit 248f18b

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

56 files changed

+13104
-4992
lines changed

.dumirc.ts

+39
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
import { defineConfig } from 'dumi'
2+
3+
export default defineConfig({
4+
themeConfig: {
5+
// name: 'G2Plot React',
6+
logo: 'https://raw.githubusercontent.com/open-data-plan/g2plot-react/master/assets/logo.svg',
7+
nav: [
8+
{
9+
title: 'Guide',
10+
link: '/guide',
11+
},
12+
{
13+
title: 'API',
14+
link: '/api',
15+
},
16+
{
17+
title: 'Changelog',
18+
link: '/changelog',
19+
},
20+
{
21+
title: 'G2Plot',
22+
link: 'https://g2plot.antv.vision/',
23+
},
24+
],
25+
},
26+
locales: [{ id: 'en-US', name: 'English' }],
27+
resolve: {
28+
docDirs: ['docs'],
29+
entryFile: './src/index.ts',
30+
},
31+
analytics: {
32+
ga: 'UA-81696369-2',
33+
},
34+
// dynamicImport: {},
35+
// ssr: {},
36+
apiParser: {},
37+
exportStatic: {},
38+
mfsu: false,
39+
})

.eslintrc

+4-1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
11
{
2-
"extends": ["@opd/eslint-config-pangu"]
2+
"extends": ["@opd/eslint-config-pangu"],
3+
"rules": {
4+
"react/react-in-jsx-scope": "off"
5+
}
36
}

.gitignore

+2
Original file line numberDiff line numberDiff line change
@@ -69,4 +69,6 @@ dist
6969
es/.umi
7070
lib/.umi
7171

72+
.dumi
73+
7274
.now

config/config.js

-41
This file was deleted.

docs/api/area.md

+6-2
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,11 @@
33
## Usage
44

55
```tsx | pure
6-
import { AreaChart } from '@opd/g2plot-react'
6+
77
```
88

9-
<API src="../../src/plots/area/index.tsx" />
9+
## API
10+
11+
<API id="AreaChart"></API>
12+
13+
> Visit [G2Plot](https://g2plot.antv.antgroup.com/api/plot-api) form more detail

docs/api/bar.md

+6-2
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,11 @@
33
## Usage
44

55
```tsx | pure
6-
import { BarChart } from '@opd/g2plot-react'
6+
77
```
88

9-
<API src="../../src/plots/bar/index.tsx" />
9+
## API
10+
11+
<API id="BarChart"></API>
12+
13+
> Visit [G2Plot](https://g2plot.antv.antgroup.com/api/plot-api) form more detail

docs/api/bidirectional-bar.md

+6-2
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,11 @@
33
## Usage
44

55
```tsx | pure
6-
import { BidirectionalBarChart } from '@opd/g2plot-react'
6+
77
```
88

9-
<API src="../../src/plots/bidirectional-bar/index.tsx" />
9+
## API
10+
11+
<API id="BidirectionalBarChart"></API>
12+
13+
> Visit [G2Plot](https://g2plot.antv.antgroup.com/api/plot-api) form more detail

docs/api/box.md

+6-2
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,11 @@
33
## Usage
44

55
```tsx | pure
6-
import { BoxChart } from '@opd/g2plot-react'
6+
77
```
88

9-
<API src="../../src/plots/box/index.tsx" />
9+
## API
10+
11+
<API id="BoxChart"></API>
12+
13+
> Visit [G2Plot](https://g2plot.antv.antgroup.com/api/plot-api) form more detail

docs/api/bullet.md

+6-2
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,11 @@
33
## Usage
44

55
```tsx | pure
6-
import { BulletChart } from '@opd/g2plot-react'
6+
77
```
88

9-
<API src="../../src/plots/bullet/index.tsx" />
9+
## API
10+
11+
<API id="BulletChart"></API>
12+
13+
> Visit [G2Plot](https://g2plot.antv.antgroup.com/api/plot-api) form more detail

docs/api/chord.md

+6-2
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,11 @@
33
## Usage
44

55
```tsx | pure
6-
import { ChordChart } from '@opd/g2plot-react'
6+
77
```
88

9-
<API src="../../src/plots/chord/index.tsx" />
9+
## API
10+
11+
<API id="ChordChart"></API>
12+
13+
> Visit [G2Plot](https://g2plot.antv.antgroup.com/api/plot-api) form more detail

docs/api/circle-packing.md

+6-2
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,11 @@
33
## Usage
44

55
```tsx | pure
6-
import { CirclePackingChart } from '@opd/g2plot-react'
6+
77
```
88

9-
<API src="../../src/plots/circle-packing/index.tsx" />
9+
## API
10+
11+
<API id="CirclePackingChart"></API>
12+
13+
> Visit [G2Plot](https://g2plot.antv.antgroup.com/api/plot-api) form more detail

docs/api/column.md

+6-2
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,11 @@
33
## Usage
44

55
```tsx | pure
6-
import { ColumnChart } from '@opd/g2plot-react'
6+
77
```
88

9-
<API src="../../src/plots/column/index.tsx" />
9+
## API
10+
11+
<API id="ColumnChart"></API>
12+
13+
> Visit [G2Plot](https://g2plot.antv.antgroup.com/api/plot-api) form more detail

docs/api/dual-axes.md

+6-2
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,11 @@
33
## Usage
44

55
```tsx | pure
6-
import { DualAxesChart } from '@opd/g2plot-react'
6+
77
```
88

9-
<API src="../../src/plots/dual-axes/index.tsx" />
9+
## API
10+
11+
<API id="DualAxesChart"></API>
12+
13+
> Visit [G2Plot](https://g2plot.antv.antgroup.com/api/plot-api) form more detail

docs/api/facet.md

+6-2
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,11 @@
33
## Usage
44

55
```tsx | pure
6-
import { FacetChart } from '@opd/g2plot-react'
6+
77
```
88

9-
<API src="../../src/plots/facet/index.tsx" />
9+
## API
10+
11+
<API id="FacetChart"></API>
12+
13+
> Visit [G2Plot](https://g2plot.antv.antgroup.com/api/plot-api) form more detail

docs/api/funnel.md

+6-2
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,11 @@
33
## Usage
44

55
```tsx | pure
6-
import { FunnelChart } from '@opd/g2plot-react'
6+
77
```
88

9-
<API src="../../src/plots/funnel/index.tsx" />
9+
## API
10+
11+
<API id="FunnelChart"></API>
12+
13+
> Visit [G2Plot](https://g2plot.antv.antgroup.com/api/plot-api) form more detail

docs/api/gauge.md

+6-2
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,11 @@
33
## Usage
44

55
```tsx | pure
6-
import { GaugeChart } from '@opd/g2plot-react'
6+
77
```
88

9-
<API src="../../src/plots/gauge/index.tsx" />
9+
## API
10+
11+
<API id="GaugeChart"></API>
12+
13+
> Visit [G2Plot](https://g2plot.antv.antgroup.com/api/plot-api) form more detail

docs/api/heatmap.md

+6-2
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,11 @@
33
## Usage
44

55
```tsx | pure
6-
import { HeatmapChart } from '@opd/g2plot-react'
6+
77
```
88

9-
<API src="../../src/plots/heatmap/index.tsx" />
9+
## API
10+
11+
<API id="HeatmapChart"></API>
12+
13+
> Visit [G2Plot](https://g2plot.antv.antgroup.com/api/plot-api) form more detail

docs/api/histogram.md

+6-2
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,11 @@
33
## Usage
44

55
```tsx | pure
6-
import { HistogramChart } from '@opd/g2plot-react'
6+
77
```
88

9-
<API src="../../src/plots/histogram/index.tsx" />
9+
## API
10+
11+
<API id="HistogramChart"></API>
12+
13+
> Visit [G2Plot](https://g2plot.antv.antgroup.com/api/plot-api) form more detail

docs/api/index.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -25,4 +25,4 @@ export default () => {
2525

2626
view `G2Plot` [docs](https://g2plot.antv.vision/en/docs/manual/introduction)
2727

28-
<API src="../../src/components/base/index.tsx" />
28+
<API id="BaseChart"></API>

docs/api/line.md

+6-2
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,11 @@
33
## Usage
44

55
```tsx | pure
6-
import { LineChart } from '@opd/g2plot-react'
6+
77
```
88

9-
<API src="../../src/plots/line/index.tsx" />
9+
## API
10+
11+
<API id="LineChart"></API>
12+
13+
> Visit [G2Plot](https://g2plot.antv.antgroup.com/api/plot-api) form more detail

docs/api/liquid.md

+6-2
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,11 @@
33
## Usage
44

55
```tsx | pure
6-
import { LiquidChart } from '@opd/g2plot-react'
6+
77
```
88

9-
<API src="../../src/plots/liquid/index.tsx" />
9+
## API
10+
11+
<API id="LiquidChart"></API>
12+
13+
> Visit [G2Plot](https://g2plot.antv.antgroup.com/api/plot-api) form more detail

docs/api/mix.md

+6-2
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,11 @@
33
## Usage
44

55
```tsx | pure
6-
import { MixChart } from '@opd/g2plot-react'
6+
77
```
88

9-
<API src="../../src/plots/mix/index.tsx" />
9+
## API
10+
11+
<API id="MixChart"></API>
12+
13+
> Visit [G2Plot](https://g2plot.antv.antgroup.com/api/plot-api) form more detail

docs/api/multi-view.md

-11
This file was deleted.

docs/api/pie.md

+6-2
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,11 @@
33
## Usage
44

55
```tsx | pure
6-
import { PieChart } from '@opd/g2plot-react'
6+
77
```
88

9-
<API src="../../src/plots/pie/index.tsx" />
9+
## API
10+
11+
<API id="PieChart"></API>
12+
13+
> Visit [G2Plot](https://g2plot.antv.antgroup.com/api/plot-api) form more detail

docs/api/progress.md

+6-2
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,11 @@
33
## Usage
44

55
```tsx | pure
6-
import { ProgressChart } from '@opd/g2plot-react'
6+
77
```
88

9-
<API src="../../src/plots/progress/index.tsx" />
9+
## API
10+
11+
<API id="ProgressChart"></API>
12+
13+
> Visit [G2Plot](https://g2plot.antv.antgroup.com/api/plot-api) form more detail

docs/api/radar.md

+6-2
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,11 @@
33
## Usage
44

55
```tsx | pure
6-
import { RadarChart } from '@opd/g2plot-react'
6+
77
```
88

9-
<API src="../../src/plots/radar/index.tsx" />
9+
## API
10+
11+
<API id="RadarChart"></API>
12+
13+
> Visit [G2Plot](https://g2plot.antv.antgroup.com/api/plot-api) form more detail

0 commit comments

Comments
 (0)