From 107731a988cdf8d9b6ece78db95625ac9c90857a Mon Sep 17 00:00:00 2001 From: Tom Xu Date: Mon, 4 May 2020 13:12:42 +0800 Subject: [PATCH] docs: improve link path (#23844) --- components/list/demo/resposive.md | 4 ++-- components/rate/index.en-US.md | 2 +- components/rate/index.zh-CN.md | 2 +- docs/react/getting-started.en-US.md | 4 ++-- docs/react/introduce.en-US.md | 6 +++--- docs/react/introduce.zh-CN.md | 6 +++--- docs/spec/detail-page.md | 6 +++--- docs/spec/form-page.md | 6 +++--- docs/spec/introduce.en-US.md | 2 +- docs/spec/overview.en-US.md | 2 +- docs/spec/research-form.zh-CN.md | 10 +++++----- docs/spec/research-result.zh-CN.md | 2 +- 12 files changed, 26 insertions(+), 26 deletions(-) diff --git a/components/list/demo/resposive.md b/components/list/demo/resposive.md index becc2d0fae..d58bc5ad48 100644 --- a/components/list/demo/resposive.md +++ b/components/list/demo/resposive.md @@ -7,11 +7,11 @@ title: ## zh-CN -响应式的栅格列表。尺寸与 [Layout Grid](https://ant.design/components/grid-cn/#Col) 保持一致。 +响应式的栅格列表。尺寸与 [Layout Grid](/components/grid-cn/#Col) 保持一致。 ## en-US -Responsive grid list. The size property the is as same as [Layout Grid](https://ant.design/components/grid/#Col). +Responsive grid list. The size property the is as same as [Layout Grid](/components/grid/#Col). ```jsx import { List, Card } from 'antd'; diff --git a/components/rate/index.en-US.md b/components/rate/index.en-US.md index fc28fee776..609f62f2cd 100644 --- a/components/rate/index.en-US.md +++ b/components/rate/index.en-US.md @@ -18,7 +18,7 @@ Rate component. | allowClear | whether to allow clear when click again | boolean | true | | allowHalf | whether to allow semi selection | boolean | false | | autoFocus | get focus when component mounted | boolean | false | -| character | custom character of rate | ReactNode | [](https://ant.design/components/icon/) | +| character | custom character of rate | ReactNode | [](/components/icon/) | | className | custom class name of rate | string | | | count | star count | number | 5 | | defaultValue | default value | number | 0 | diff --git a/components/rate/index.zh-CN.md b/components/rate/index.zh-CN.md index 4289ce27fa..4d471557de 100644 --- a/components/rate/index.zh-CN.md +++ b/components/rate/index.zh-CN.md @@ -19,7 +19,7 @@ title: Rate | allowClear | 是否允许再次点击后清除 | boolean | true | | allowHalf | 是否允许半选 | boolean | false | | autoFocus | 自动获取焦点 | boolean | false | -| character | 自定义字符 | ReactNode | [](https://ant.design/components/icon-cn/) | +| character | 自定义字符 | ReactNode | [](/components/icon-cn/) | | className | 自定义样式类名 | string | | | count | star 总数 | number | 5 | | defaultValue | 默认值 | number | 0 | diff --git a/docs/react/getting-started.en-US.md b/docs/react/getting-started.en-US.md index 195e9a013e..bb11109003 100755 --- a/docs/react/getting-started.en-US.md +++ b/docs/react/getting-started.en-US.md @@ -5,7 +5,7 @@ title: Getting Started Ant Design React is dedicated to providing a **good development experience** for programmers. Make sure that you have installed [Node.js](https://nodejs.org/)(> 8.0.0) correctly. -If you try in local environment, Please refer to [Install and Initialization](https://ant.design/docs/react/use-with-create-react-app#Install-and-Initialization) section of "Use in create-react-app". +If you try in local environment, Please refer to [Install and Initialization](/docs/react/use-with-create-react-app#Install-and-Initialization) section of "Use in create-react-app". > Before delving into Ant Design React, a good knowledge base of [React](https://reactjs.org) and [JavaScript ES2015](http://babeljs.io/docs/learn-es2015/) is needed. @@ -31,7 +31,7 @@ Visit http://u.ant.design/codesandbox-repro to create a codesandbox. Don't forge Replace the content of `index.js` with the following code. As you can see, there is no difference between antd's components and typical React components. -If you already set up by [Install and Initialization](https://ant.design/docs/react/use-with-create-react-app#Install-and-Initialization) section of "Use in create-react-app", Please replace the content of /src/index.js +If you already set up by [Install and Initialization](/docs/react/use-with-create-react-app#Install-and-Initialization) section of "Use in create-react-app", Please replace the content of /src/index.js ```jsx import React from 'react'; diff --git a/docs/react/introduce.en-US.md b/docs/react/introduce.en-US.md index a5151e99c0..d335387fc9 100644 --- a/docs/react/introduce.en-US.md +++ b/docs/react/introduce.en-US.md @@ -36,7 +36,7 @@ Following the Ant Design specification, we developed a React UI library `antd` t ## Environment Support -- Modern browsers and Internet Explorer 11 (with [polyfills](https://ant.design/docs/react/getting-started#Compatibility)) +- Modern browsers and Internet Explorer 11 (with [polyfills](/docs/react/getting-started#Compatibility)) - Server-side Rendering - [Electron](https://www.electronjs.org/) @@ -122,8 +122,8 @@ import 'antd/dist/antd.css'; // or 'antd/dist/antd.less' ## Links -- [Home page](https://ant.design/) -- [Components](https://ant.design/components/button/) +- [Home page](/) +- [Components](/components/button/) - [Ant Design Pro](https://pro.ant.design/) - [Change Log](/changelog) - [rc-components](http://react-component.github.io/) diff --git a/docs/react/introduce.zh-CN.md b/docs/react/introduce.zh-CN.md index d0e573a18f..9b99f97149 100644 --- a/docs/react/introduce.zh-CN.md +++ b/docs/react/introduce.zh-CN.md @@ -36,7 +36,7 @@ title: Ant Design of React ## 支持环境 -- 现代浏览器和 IE11(需要 [polyfills](https://ant.design/docs/react/getting-started-cn#兼容性))。 +- 现代浏览器和 IE11(需要 [polyfills](/docs/react/getting-started-cn#兼容性))。 - 支持服务端渲染。 - [Electron](https://electronjs.org/) @@ -124,8 +124,8 @@ import 'antd/dist/antd.css'; // or 'antd/dist/antd.less' ## 链接 -- [首页](https://ant.design/) -- [组件库](https://ant.design/components/button-cn/) +- [首页](/) +- [组件库](/components/button-cn/) - [Ant Design Pro](https://pro.ant.design/) - [更新日志](/changelog) - [React 底层基础组件](http://react-component.github.io/) diff --git a/docs/spec/detail-page.md b/docs/spec/detail-page.md index bc6c8914d7..af8e7efc63 100644 --- a/docs/spec/detail-page.md +++ b/docs/spec/detail-page.md @@ -137,9 +137,9 @@ title: ### 会用到哪些模块或组件 -- [描述列表](https://ant.design/components/descriptions-cn/#header) -- [折叠面板](https://ant.design/components/collapse-cn/) -- [表格](https://ant.design/components/table-cn/) +- [描述列表](/components/descriptions-cn/#header) +- [折叠面板](/components/collapse-cn/) +- [表格](/components/table-cn/) ### 外部参考文章 diff --git a/docs/spec/form-page.md b/docs/spec/form-page.md index ada6a3e43a..0047344df8 100644 --- a/docs/spec/form-page.md +++ b/docs/spec/form-page.md @@ -152,7 +152,7 @@ A. 动态增减:建议条目表单数 <=3 项,并且每个输入框不需要 #### 前期准备 - 表单页的核心由表单项组成,设计前建议先熟悉表单基础规则; -- 梳理用户当前信息录入任务中所涉及的信息类型,并根据 [antd 数据录入规则](https://ant.design/docs/spec/data-entry-cn#header) 确定所使用的组件; +- 梳理用户当前信息录入任务中所涉及的信息类型,并根据 [antd 数据录入规则](/docs/spec/data-entry-cn#header) 确定所使用的组件; #### 布局方式 @@ -198,8 +198,8 @@ A. 动态增减:建议条目表单数 <=3 项,并且每个输入框不需要 ### 会用到哪些模块或组件 -- [数据录入组件](https://ant.design/components/form-cn/#header) -- [步骤条](https://ant.design/components/steps-cn/#header) +- [数据录入组件](/components/form-cn/#header) +- [步骤条](/components/steps-cn/#header) ### 相关页面 diff --git a/docs/spec/introduce.en-US.md b/docs/spec/introduce.en-US.md index 95921c222a..00c8bfc182 100644 --- a/docs/spec/introduce.en-US.md +++ b/docs/spec/introduce.en-US.md @@ -28,7 +28,7 @@ We provide comprehensive design guidelines, best practices, resources, and tools ## Front-end Implementation -[React](http://facebook.github.io/react/) is used to encapsulate a library of components which embody our design language. We welcome the community to implement [our design system](https://ant.design/docs/spec/introduce) in other front-end frameworks of their choice. +[React](http://facebook.github.io/react/) is used to encapsulate a library of components which embody our design language. We welcome the community to implement [our design system](/docs/spec/introduce) in other front-end frameworks of their choice. ```__react import { diff --git a/docs/spec/overview.en-US.md b/docs/spec/overview.en-US.md index f9f7766d3b..d629862eea 100644 --- a/docs/spec/overview.en-US.md +++ b/docs/spec/overview.en-US.md @@ -26,5 +26,5 @@ The complete design pattern will include examples of templates, components (ETC) We work with engineers to transform design patterns into reusable code that maximizes your productivity and communication efficiency. - [Ant Design Pro](https://pro.ant.design): Out-of-the-box solution with 20+ templates and 10+ business components -- [Ant Design Components](https://ant.design/docs/react/introduce): Ant Design's React UI library is a global component library with 50+ base components +- [Ant Design Components](/docs/react/introduce): Ant Design's React UI library is a global component library with 50+ base components - [Ant Design Library](http://library.ant.design/): Axure resource packs are included with the code to make your prototype look like a visual draft, including templates, components, and more. diff --git a/docs/spec/research-form.zh-CN.md b/docs/spec/research-form.zh-CN.md index ee9a024847..a3608c7bc9 100644 --- a/docs/spec/research-form.zh-CN.md +++ b/docs/spec/research-form.zh-CN.md @@ -175,8 +175,8 @@ Ant Design 标准注册模板 ### 前期准备 -- 表单页的核心由表单项组成,设计前建议先熟悉[表单基础规则](https://ant.design/components/form-cn/); -- 梳理用户当前信息录入任务中所涉及的信息类型,[并根据 Ant Design 数据录入规则](https://ant.design/docs/spec/data-entry-cn/) 确定所使用的组件。 +- 表单页的核心由表单项组成,设计前建议先熟悉[表单基础规则](/components/form-cn/); +- 梳理用户当前信息录入任务中所涉及的信息类型,[并根据 Ant Design 数据录入规则](/docs/spec/data-entry-cn/) 确定所使用的组件。 ### 布局方式 @@ -212,7 +212,7 @@ Ant Design 标准注册模板 -关于使用何种布局方式的判断,和[详情页](https://ant.design/docs/spec/detail-page-cn#%E8%AE%BE%E8%AE%A1%E5%BB%BA%E8%AE%AE)类似,应从信息的复杂度和关联性两个维度去梳理。随后可选择相匹配的模板,进行页面快速搭建。 +关于使用何种布局方式的判断,和[详情页](/docs/spec/detail-page-cn#%E8%AE%BE%E8%AE%A1%E5%BB%BA%E8%AE%AE)类似,应从信息的复杂度和关联性两个维度去梳理。随后可选择相匹配的模板,进行页面快速搭建。
@@ -220,8 +220,8 @@ Ant Design 标准注册模板 ### 会用到哪些模块或组件 -- [表单](https://ant.design/components/form-cn/#header) -- [步骤条](https://ant.design/components/steps-cn/#header) +- [表单](/components/form-cn/#header) +- [步骤条](/components/steps-cn/#header) ### 外部参考文章 diff --git a/docs/spec/research-result.zh-CN.md b/docs/spec/research-result.zh-CN.md index 68d6af0af8..a1bb92d943 100644 --- a/docs/spec/research-result.zh-CN.md +++ b/docs/spec/research-result.zh-CN.md @@ -110,7 +110,7 @@ title: 结果页 ### 会用到哪些模块或组件 -- [表单页](https://ant.design/components/form-cn/) +- [表单页](/components/form-cn/) ### 外部参考文章