mirror of
https://github.com/ant-design/ant-design.git
synced 2024-11-28 05:05:48 +08:00
729f568723
* feat: test * chore: empty --------- Co-authored-by: afc163 <afc163@gmail.com>
61 lines
1.3 KiB
JavaScript
61 lines
1.3 KiB
JavaScript
const chineseMirror =
|
|
typeof location !== 'undefined' && location.hostname.includes('.antgroup.com');
|
|
|
|
module.exports = {
|
|
categoryOrder: {
|
|
'Ant Design': 0,
|
|
全局样式: 1,
|
|
'Global Styles': 1,
|
|
设计模式: 2,
|
|
'Design Patterns': 2,
|
|
'设计模式 - 探索': 3,
|
|
'Design Patterns (Research)': 3,
|
|
Components: 100,
|
|
组件: 100,
|
|
},
|
|
typeOrder: {
|
|
// Component
|
|
Overview: -1,
|
|
General: 0,
|
|
Layout: 1,
|
|
Navigation: 2,
|
|
'Data Entry': 3,
|
|
'Data Display': 4,
|
|
Feedback: 5,
|
|
Other: 6,
|
|
Deprecated: 7,
|
|
|
|
组件总览: -1,
|
|
通用: 0,
|
|
布局: 1,
|
|
导航: 2,
|
|
数据录入: 3,
|
|
数据展示: 4,
|
|
反馈: 5,
|
|
其他: 6,
|
|
废弃: 7,
|
|
|
|
// Design
|
|
原则: 1,
|
|
Principles: 1,
|
|
全局规则: 2,
|
|
重型组件: 8,
|
|
ProComponents: 8,
|
|
'Global Rules': 2,
|
|
模板文档: 3,
|
|
'Template Document': 3,
|
|
},
|
|
docVersions: {
|
|
'3.x': 'http://3x.ant.design',
|
|
'2.x': 'http://2x.ant.design',
|
|
'1.x': 'http://1x.ant.design',
|
|
'0.12.x': 'http://012x.ant.design',
|
|
'0.11.x': 'http://011x.ant.design',
|
|
'0.10.x': 'http://010x.ant.design',
|
|
'0.9.x': 'http://09x.ant.design',
|
|
},
|
|
docNewVersions: {
|
|
'5.x': chineseMirror ? 'https://ant-design.antgroup.com' : 'https://ant.design',
|
|
},
|
|
};
|