doc: add course link to site nav

This commit is contained in:
愚道 2018-09-12 11:46:40 +08:00 committed by 偏右
parent 8b5e08be67
commit 76cf0816dc

View File

@ -159,11 +159,23 @@ export default class Header extends React.Component {
rel="noopener noreferrer"
>
<FormattedMessage id="app.header.menu.pro" />
<span style={{ display: 'inline-block', position: 'relative', top: -2, width: 6, marginLeft: 8 }}>
<Badge dot />
</span>
</a>
</Menu.Item>
{ isZhCN ? (
<Menu.Item key="course">
<a
href="https://www.yuque.com/ant-design/course"
className="header-link"
target="_blank"
rel="noopener noreferrer"
>
教程
<span style={{ display: 'inline-block', position: 'relative', top: -2, width: 6, marginLeft: 8 }}>
<Badge dot />
</span>
</a>
</Menu.Item>) : null
}
</Menu>,
];