From 14f9f95864d6b80e6ee175c91de18291dece5577 Mon Sep 17 00:00:00 2001 From: kevin <31396322+lxfu1@users.noreply.github.com> Date: Sat, 30 May 2020 14:55:41 +0800 Subject: [PATCH] docs: Added Ant Design Charts link (#24496) * Added Ant Design Charts link * Modified position of Ant Design Charts Co-authored-by: liufu.lf --- README-pt_BR.md | 1 + README-zh_CN.md | 1 + README.md | 1 + docs/react/introduce.en-US.md | 1 + docs/react/introduce.zh-CN.md | 1 + docs/spec/visual.zh-CN.md | 1 + site/theme/en-US.js | 1 + site/theme/template/Layout/Footer.tsx | 5 +++++ site/theme/template/Layout/Header/More.tsx | 10 ++++++++++ site/theme/zh-CN.js | 1 + 10 files changed, 23 insertions(+) diff --git a/README-pt_BR.md b/README-pt_BR.md index 810280ebe1..591d00c3df 100644 --- a/README-pt_BR.md +++ b/README-pt_BR.md @@ -112,6 +112,7 @@ Veja [i18n](https://ant.design/docs/react/i18n). - [Página inicial](https://ant.design/) - [Componentes](https://ant.design/components/button) - [Ant Design Pro](http://pro.ant.design/) +- [Ant Design Charts](https://charts.ant.design) - [Change Log](CHANGELOG.en-US.md) - [rc-components](http://react-component.github.io/) - [Mobile UI](http://mobile.ant.design) diff --git a/README-zh_CN.md b/README-zh_CN.md index a8c8ac19bc..0e360f5418 100644 --- a/README-zh_CN.md +++ b/README-zh_CN.md @@ -116,6 +116,7 @@ import 'antd/dist/antd.css'; // or 'antd/dist/antd.less' - [首页](https://ant.design/) - [组件库](https://ant.design/docs/react/introduce) - [Ant Design Pro](http://pro.ant.design/) +- [Ant Design Charts](https://charts.ant.design) - [更新日志](CHANGELOG.en-US.md) - [React 底层基础组件](http://react-component.github.io/) - [移动端组件](http://mobile.ant.design) diff --git a/README.md b/README.md index 5afcc58cdf..cc6c8bc8af 100644 --- a/README.md +++ b/README.md @@ -112,6 +112,7 @@ Dozens of languages supported in `antd`, see [i18n](https://ant.design/docs/reac - [Home page](https://ant.design/) - [Components](https://ant.design/components/button/) - [Ant Design Pro](http://pro.ant.design/) +- [Ant Design Charts](https://charts.ant.design) - [Change Log](CHANGELOG.en-US.md) - [rc-components](http://react-component.github.io/) - [Mobile UI](http://mobile.ant.design) diff --git a/docs/react/introduce.en-US.md b/docs/react/introduce.en-US.md index 6bb82ecfdf..1f2b2f48bd 100644 --- a/docs/react/introduce.en-US.md +++ b/docs/react/introduce.en-US.md @@ -109,6 +109,7 @@ import 'antd/dist/antd.css'; // or 'antd/dist/antd.less' - [Home page](/) - [Components](/components/button/) - [Ant Design Pro](https://pro.ant.design/) +- [Ant Design Charts](https://charts.ant.design) - [Change Log](/changelog) - [rc-components](http://react-component.github.io/) - [Mobile UI](http://mobile.ant.design) diff --git a/docs/react/introduce.zh-CN.md b/docs/react/introduce.zh-CN.md index 0996cb34e4..7e145197c3 100644 --- a/docs/react/introduce.zh-CN.md +++ b/docs/react/introduce.zh-CN.md @@ -109,6 +109,7 @@ import 'antd/dist/antd.css'; // or 'antd/dist/antd.less' - [首页](/) - [组件库](/components/button) - [Ant Design Pro](https://pro.ant.design/) +- [Ant Design Charts](https://charts.ant.design) - [更新日志](/changelog) - [React 底层基础组件](http://react-component.github.io/) - [移动端组件](http://mobile.ant.design) diff --git a/docs/spec/visual.zh-CN.md b/docs/spec/visual.zh-CN.md index 210ab4b14d..1aa09c5977 100644 --- a/docs/spec/visual.zh-CN.md +++ b/docs/spec/visual.zh-CN.md @@ -13,6 +13,7 @@ title: 可视化 - [G2 可视化引擎](https://g2.antv.vision/zh) - [G2Plot 开箱即用的图表库](https://g2plot.antv.vision/zh) 🔥 +- [G2Plot React 版](https://charts.ant.design) - [G6 图可视化引擎](https://g6.antv.vision/zh) - [L7 地理空间数据可视分析引擎](https://l7.antv.vision/zh) - [F2 移动端可视化方案](https://f2.antv.vision/zh) diff --git a/site/theme/en-US.js b/site/theme/en-US.js index f3fc9dc2ab..981a4c553f 100644 --- a/site/theme/en-US.js +++ b/site/theme/en-US.js @@ -12,6 +12,7 @@ module.exports = { 'app.header.menu.more': 'More', 'app.header.menu.mobile': 'Mobile', 'app.header.menu.pro.v4': 'Ant Design Pro v4', + 'app.header.menu.charts': 'Ant Design Charts', 'app.header.menu.ecosystem': 'Ecosystem', 'app.header.lang': '中文', 'app.content.edit-page': 'Edit this page on GitHub!', diff --git a/site/theme/template/Layout/Footer.tsx b/site/theme/template/Layout/Footer.tsx index a175541ec0..f4c6509847 100644 --- a/site/theme/template/Layout/Footer.tsx +++ b/site/theme/template/Layout/Footer.tsx @@ -58,6 +58,11 @@ class Footer extends React.Component { url: 'https://pro.ant.design', openExternal: true, }, + { + title: 'Ant Design Charts', + url: 'https://charts.ant.design', + openExternal: true, + }, { title: 'Ant Design Mobile', url: 'https://mobile.ant.design', diff --git a/site/theme/template/Layout/Header/More.tsx b/site/theme/template/Layout/Header/More.tsx index d9f4f0e02d..14ab31b319 100644 --- a/site/theme/template/Layout/Header/More.tsx +++ b/site/theme/template/Layout/Header/More.tsx @@ -7,6 +7,16 @@ import { SharedProps } from './interface'; export function getEcosystemGroup({ isZhCN }: SharedProps): React.ReactElement { return ( }> + + + + +