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

Lines changed: 39 additions & 0 deletions
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

Lines changed: 4 additions & 1 deletion
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

Lines changed: 2 additions & 0 deletions
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

Lines changed: 0 additions & 41 deletions
This file was deleted.

docs/api/area.md

Lines changed: 6 additions & 2 deletions
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

Lines changed: 6 additions & 2 deletions
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

Lines changed: 6 additions & 2 deletions
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

Lines changed: 6 additions & 2 deletions
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

Lines changed: 6 additions & 2 deletions
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

Lines changed: 6 additions & 2 deletions
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

0 commit comments

Comments
 (0)