Skip to content

Commit

Permalink
🚧 modify gatsby.config.js
Browse files Browse the repository at this point in the history
  • Loading branch information
pomelo-nwu committed Dec 6, 2019
1 parent 94bca82 commit af9b099
Show file tree
Hide file tree
Showing 3 changed files with 35 additions and 14 deletions.
41 changes: 31 additions & 10 deletions packages/graphin-site/gatsby-config.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,13 @@ module.exports = {
en: 'Documentation',
},
},
{
slug: 'examples',
title: {
zh: '组件演示',
en: 'Examples',
},
},
{
slug: 'docs/api/graphin',
title: {
Expand All @@ -38,13 +45,6 @@ module.exports = {
en: 'GraphinStudio',
},
},
{
slug: 'examples',
title: {
zh: '组件演示',
en: 'Examples',
},
},
],
docs: [
{
Expand Down Expand Up @@ -85,10 +85,31 @@ module.exports = {
examples: [
{
slug: 'render',
icon: 'render', // 图标名可以去 https://antv.alipay.com/zh-cn/g2/3.x/demo/index.html 打开控制台查看图标类名
title: {
zh: '渲染',
en: 'render data',
zh: '数据渲染',
en: 'render',
},
},
{
slug: 'layout',
title: {
zh: '内置布局',
en: 'layout',
},
},
{
slug: 'shape',
// icon: 'layout', // 图标名可以去 https://antv.alipay.com/zh-cn/g2/3.x/demo/index.html 打开控制台查看图标类名
title: {
zh: '节点与边',
en: 'shape',
},
},
{
slug: 'case',
title: {
zh: '应用场景',
en: 'Case',
},
},
],
Expand Down
6 changes: 3 additions & 3 deletions packages/graphin-site/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,15 +19,15 @@
"url": "https://github.com/antvis/graphin"
},
"devDependencies": {
"@antv/gatsby-theme-antv": "^0.10.5",
"react-i18next": "^11.0.1",
"@antv/gatsby-theme-antv": "^0.10.9",
"gatsby": "^2.17.7",
"gh-pages": "^2.1.1"
},
"dependencies": {
"react-i18next": "^11.0.1",
"@antv/graphin": "^1.0.1",
"antd": "^3.25.3",
"react": "^16.11.0",
"react-dom": "^16.12.0"
}
}
}
2 changes: 1 addition & 1 deletion packages/graphin-site/site/pages/index.zh.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ const IndexPage = () => {
const coverImage = (
<img
alt="graphin"
style={{ width: '100%', height: '100%', marginTop: '20%' }}
style={{ width: '100%', marginTop: '20%' }}
src="https://gw.alipayobjects.com/mdn/rms_00edcb/afts/img/A*Gix7Rry3-5wAAAAAAAAAAABkARQnAQ"
/>
);
Expand Down

0 comments on commit af9b099

Please sign in to comment.