You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
ant-design/.dumi/theme/themeConfig.ts

59 lines
1.3 KiB
TypeScript

const chineseMirror =
typeof location !== 'undefined' && location.hostname.includes('.antgroup.com');
export default {
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: {
'4.x': chineseMirror ? 'https://4x-ant-design.antgroup.com' : 'https://4x.ant.design',
'3.x': 'https://3x.ant.design',
'2.x': 'https://2x.ant.design',
'1.x': 'https://1x.ant.design',
'0.12.x': 'https://012x.ant.design',
'0.11.x': 'https://011x.ant.design',
'0.10.x': 'https://010x.ant.design',
'0.9.x': 'https://09x.ant.design',
},
};