Browse Source
docs: optimize site of docs (#23642 )
* docs: optimize site of docs
* fix: gitee link
* fix lint
pull/23648/head
xrkffgg
5 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with
21 additions and
2 deletions
docs/react/contributing.zh-CN.md
site/theme/static/markdown.less
site/theme/template/Layout/Header/Navigation.tsx
@ -71,4 +71,4 @@ Ant Design 团队会关注所有的 pull request,我们会 review 以及合并
## 加入社区
如果你贡献度度 足够活跃,希望和 Ant Design 团队一起参与维护工作,你可以[申请成为社区协作者](https://github.com/ant-design/ant-design/wiki/Collaborators#how-to-apply-for-being-a-collaborator)。
如果你贡献度足够活跃,希望和 Ant Design 团队一起参与维护工作,你可以[申请成为社区协作者](https://github.com/ant-design/ant-design/wiki/Collaborators#how-to-apply-for-being-a-collaborator)。
@ -78,6 +78,7 @@
.markdown pre {
margin: 1em 0;
.ant-row-rtl & {
direction: rtl;
text-align: right;
}
}
@ -137,6 +138,8 @@
overflow: auto;
color: @site-text-color;
font-size: @font-size-base - 1px;
direction: ltr;
text-align: left;
background: #f5f5f5;
border: none;
}
@ -149,6 +152,7 @@
.markdown > table {
width: 100%;
margin: 8px 0 16px;
direction: ltr;
empty-cells: show;
border: 1px solid @site-border-color-split;
border-collapse: collapse;
@ -169,6 +173,13 @@
border: 1px solid @site-border-color-split;
}
.markdown table td > a:not(:last-child) {
margin-right: 0 !important;
&::after {
position: relative !important;
}
}
.markdown blockquote {
margin: 1em 0;
padding-left: 0.8em;
@ -442,6 +453,12 @@
> h2 {
margin-top: 0;
padding-top: 4px;
direction: ltr;
span {
.ant-row-rtl & {
float: right;
}
}
}
}
}
@ -68,6 +68,8 @@ export default ({
) ;
}
const isGitee = document . location . host . indexOf ( 'gitee' ) !== - 1 ;
return (
< Menu
className = { classNames ( 'menu-site' ) }
@ -95,7 +97,7 @@ export default ({
< FormattedMessage id = "app.header.menu.resource" / >
< / Link >
< / Menu.Item >
{ isZhCN && (
{ isZhCN && ! isGitee && (
< Menu.Item key = "mirror" >
< a href = "https://ant-design.gitee.io" > 国 内 镜 像 < / a >
< / Menu.Item >