amis/examples/components/DocNavCN.ts
RickCole 54e56402d2
文档拆分组件部分 (#1502)
* 文档样式一点小优化

* 文档拆分组件部分
2021-02-01 20:44:49 +08:00

199 lines
5.2 KiB
TypeScript

import makeMarkdownRenderer from './MdRenderer';
export default [
{
// prefix: ({classnames: cx}) => <li className={cx('AsideNav-divider')} />,
label: '📌 开始',
children: [
{
label: '介绍',
path: '/zh-CN/docs/index',
getComponent: () =>
// @ts-ignore
import('../../docs/zh-CN/index.md').then(makeMarkdownRenderer)
},
{
label: '快速开始',
path: '/zh-CN/docs/start/getting-started',
getComponent: () =>
// @ts-ignore
import('../../docs/zh-CN/start/getting-started.md').then(
makeMarkdownRenderer
)
},
{
label: '常见问题',
path: '/zh-CN/docs/start/faq',
getComponent: () =>
// @ts-ignore
import('../../docs/zh-CN/start/faq.md').then(makeMarkdownRenderer)
}
]
},
{
label: '💡 概念',
children: [
{
label: '配置与组件',
path: '/zh-CN/docs/concepts/schema',
getComponent: () =>
// @ts-ignore
import('../../docs/zh-CN/concepts/schema.md').then(
makeMarkdownRenderer
)
},
{
label: '数据域与数据链',
path: '/zh-CN/docs/concepts/datascope-and-datachain',
getComponent: () =>
// @ts-ignore
import('../../docs/zh-CN/concepts/datascope-and-datachain.md').then(
makeMarkdownRenderer
)
},
{
label: '模板',
path: '/zh-CN/docs/concepts/template',
getComponent: () =>
// @ts-ignore
import('../../docs/zh-CN/concepts/template.md').then(
makeMarkdownRenderer
)
},
{
label: '数据映射',
path: '/zh-CN/docs/concepts/data-mapping',
getComponent: () =>
// @ts-ignore
import('../../docs/zh-CN/concepts/data-mapping.md').then(
makeMarkdownRenderer
)
},
{
label: '表达式',
path: '/zh-CN/docs/concepts/expression',
getComponent: () =>
// @ts-ignore
import('../../docs/zh-CN/concepts/expression.md').then(
makeMarkdownRenderer
)
},
{
label: '联动',
path: '/zh-CN/docs/concepts/linkage',
getComponent: () =>
// @ts-ignore
import('../../docs/zh-CN/concepts/linkage.md').then(
makeMarkdownRenderer
)
},
{
label: '行为',
path: '/zh-CN/docs/concepts/action',
getComponent: () =>
// @ts-ignore
import('../../docs/zh-CN/concepts/action.md').then(
makeMarkdownRenderer
)
},
{
label: '样式',
path: '/zh-CN/docs/concepts/style',
getComponent: () =>
// @ts-ignore
import('../../docs/zh-CN/concepts/style.md').then(
makeMarkdownRenderer
)
}
]
},
{
label: '类型',
children: [
{
label: 'SchemaNode',
path: '/zh-CN/docs/types/schemanode',
getComponent: () =>
// @ts-ignore
import('../../docs/zh-CN/types/schemanode.md').then(
makeMarkdownRenderer
)
},
{
label: 'API',
path: '/zh-CN/docs/types/api',
getComponent: () =>
// @ts-ignore
import('../../docs/zh-CN/types/api.md').then(makeMarkdownRenderer)
},
{
label: 'Definitions',
path: '/zh-CN/docs/types/definitions',
getComponent: () =>
// @ts-ignore
import('../../docs/zh-CN/types/definitions.md').then(
makeMarkdownRenderer
)
}
]
},
{
label: '💎 高级',
children: [
{
label: '工作原理',
path: '/zh-CN/docs/extend/internal',
getComponent: () =>
// @ts-ignore
import('../../docs/zh-CN/extend/internal.md').then(
makeMarkdownRenderer
)
},
{
label: '自定义组件 - SDK',
path: '/zh-CN/docs/extend/custom-sdk',
getComponent: () =>
// @ts-ignore
import('../../docs/zh-CN/extend/custom-sdk.md').then(
makeMarkdownRenderer
)
},
{
label: '自定义组件 - React',
path: '/zh-CN/docs/extend/custom-react',
getComponent: () =>
// @ts-ignore
import('../../docs/zh-CN/extend/custom-react.md').then(
makeMarkdownRenderer
)
},
{
label: '扩展现有组件',
path: '/zh-CN/docs/extend/addon',
getComponent: () =>
// @ts-ignore
import('../../docs/zh-CN/extend/addon.md').then(makeMarkdownRenderer)
},
{
label: '移动端定制',
path: '/zh-CN/docs/extend/mobile',
getComponent: () =>
// @ts-ignore
import('../../docs/zh-CN/extend/mobile.md').then(makeMarkdownRenderer)
},
{
label: '多语言',
path: '/zh-CN/docs/extend/i18n',
getComponent: () =>
// @ts-ignore
import('../../docs/zh-CN/extend/i18n.md').then(makeMarkdownRenderer)
}
]
}
];