diff --git a/docs/react/contributing.zh-CN.md b/docs/react/contributing.zh-CN.md index caec320460..aa2917b2eb 100644 --- a/docs/react/contributing.zh-CN.md +++ b/docs/react/contributing.zh-CN.md @@ -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)。 diff --git a/site/theme/static/markdown.less b/site/theme/static/markdown.less index e98c7000f9..fa5d4d6707 100644 --- a/site/theme/static/markdown.less +++ b/site/theme/static/markdown.less @@ -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; + } + } } } } diff --git a/site/theme/template/Layout/Header/Navigation.tsx b/site/theme/template/Layout/Header/Navigation.tsx index 74c3f2ff23..fad92abeee 100644 --- a/site/theme/template/Layout/Header/Navigation.tsx +++ b/site/theme/template/Layout/Header/Navigation.tsx @@ -68,6 +68,8 @@ export default ({ ); } + const isGitee = document.location.host.indexOf('gitee') !== -1; + return ( - {isZhCN && ( + {isZhCN && !isGitee && ( 国内镜像