Former-commit-id: 79a6a379ed14df1eb8b7f7966b7cd7eedc5a4336 [formerly 79a6a379ed14df1eb8b7f7966b7cd7eedc5a4336 [formerly 79a6a379ed14df1eb8b7f7966b7cd7eedc5a4336 [formerly 79a6a379ed14df1eb8b7f7966b7cd7eedc5a4336 [formerly f54bcceebb4f512d7f7bfedecaeef292e3eb6128 [formerly 8ec2e4a218a8a63613db4eb0b9d9e43fdd4f2422]]]]] Former-commit-id: 399773ddbfdea96372c459bdb893689865444046 Former-commit-id: 32e5c98556271adbdd74ad5ebfc1dc78aa341145 Former-commit-id: 214e00baaf0907b41b7a122b0d706bea8201bc0a [formerly ae2816e2b4d1a5e8646234733cc18b2c210661a4] Former-commit-id: 89378c3a0e0a8568ab4241d7244ca29d3f1f1f20 Former-commit-id: 9941ba3e42ae1216c2455f425aad7670c3d1bc97 Former-commit-id: c7c4cee80e3e46c655d6fc3ff7867b88f6f6e080 Former-commit-id: 1b99399cf84ec410045474cde9a4ab7e8d4410a2 Former-commit-id: cef858a6b5adf8ab4f0c82c12af78efd28f631bd
118 lines
2.6 KiB
JavaScript
118 lines
2.6 KiB
JavaScript
module.exports = {
|
|
// base: '/d2-admin-doc/',
|
|
locales: {
|
|
'/': {
|
|
lang: 'en-US',
|
|
title: 'D2 Admin',
|
|
description: 'Elegant management system front-end integration'
|
|
},
|
|
'/zh/': {
|
|
lang: 'zh-CN',
|
|
title: 'D2 Admin',
|
|
description: '优雅的管理系统前端集成方案'
|
|
}
|
|
},
|
|
themeConfig: {
|
|
// 项目仓库地址
|
|
repo: 'https://github.com/d2-projects/d2-admin',
|
|
// 自定义仓库链接文字
|
|
repoLabel: '查看源码',
|
|
// 文档不是放在仓库的根目录下
|
|
docsDir: 'docs',
|
|
// 默认是 false, 设置为 true 来启用
|
|
editLinks: true,
|
|
// 多国语言
|
|
locales: {
|
|
'/': {
|
|
selectText: 'Languages',
|
|
label: 'English',
|
|
editLinkText: 'Edit this page on GitHub',
|
|
lastUpdated: 'Last update',
|
|
nav: [
|
|
{ text: 'preview', link: 'https://fairyever.gitee.io/d2-admin-preview/#/index' },
|
|
{ text: 'download', link: 'https://github.com/d2-projects/d2-admin/releases' }
|
|
]
|
|
},
|
|
'/zh/': {
|
|
selectText: '选择语言',
|
|
label: '简体中文',
|
|
editLinkText: '在 GitHub 上编辑此页',
|
|
lastUpdated: '最后更新',
|
|
nav: [
|
|
{ text: '指南', link: '/zh/guide/' },
|
|
{ text: '插件', link: '/zh/plugins/' },
|
|
{ text: '组件', link: '/zh/components/' },
|
|
{ text: '其它', link: '/zh/others/' },
|
|
{ text: '预览', link: 'https://fairyever.gitee.io/d2-admin-preview/#/index' },
|
|
{ text: '下载', link: 'https://github.com/d2-projects/d2-admin/releases' }
|
|
],
|
|
sidebar: {
|
|
'/zh/guide/': sideBarGuide('指南'),
|
|
'/zh/plugins/': sideBarPlugins('插件'),
|
|
'/zh/components/': sideBarComponents('组件'),
|
|
'/zh/others/': sideBarOthers('其它')
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
function sideBarGuide (title) {
|
|
return [
|
|
{
|
|
title,
|
|
collapsable: false,
|
|
children: [
|
|
'',
|
|
'question',
|
|
'pr',
|
|
'change-log'
|
|
]
|
|
}
|
|
]
|
|
}
|
|
|
|
function sideBarPlugins () {
|
|
return [
|
|
'',
|
|
'data-export',
|
|
'data-import',
|
|
'i18n',
|
|
'mock'
|
|
]
|
|
}
|
|
|
|
function sideBarComponents (title) {
|
|
return [
|
|
{
|
|
title,
|
|
collapsable: false,
|
|
children: [
|
|
'',
|
|
'charts',
|
|
'charts-new',
|
|
'container',
|
|
'count-up',
|
|
'highlight',
|
|
'icon-select',
|
|
'icon-svg',
|
|
'icon',
|
|
'markdown'
|
|
]
|
|
}
|
|
]
|
|
}
|
|
|
|
function sideBarOthers (title) {
|
|
return [
|
|
{
|
|
title,
|
|
collapsable: false,
|
|
children: [
|
|
'',
|
|
'css'
|
|
]
|
|
}
|
|
]
|
|
}
|