Former-commit-id: efb63bd6ac8568cfa08c159f01d757bea99b3034 [formerly efb63bd6ac8568cfa08c159f01d757bea99b3034 [formerly efb63bd6ac8568cfa08c159f01d757bea99b3034 [formerly efb63bd6ac8568cfa08c159f01d757bea99b3034 [formerly 2a33ad8bc58661ebd328c1099b184ba6c266b560 [formerly 1c4a86c7733795c1fbfe71e1d64098bfe5b2688c]]]]] Former-commit-id: f3153c8fe2140270443d518dfb9ba4ef904b3f4b Former-commit-id: 194bc9afdce19e28a58a28f07ddbfd6c0bdb74d1 Former-commit-id: df2339a96eb73a2962cb6a4459b470250489cfb8 [formerly d21cc0f21196e38816a7224f097ba7aa69fba32f] Former-commit-id: b4b864a78de2c3b802ef49d81b01dd53a7a1f8ca Former-commit-id: e57ff5c3c1127e9f550358565e7cc88a8096acd8 Former-commit-id: dfe9f01d5cffd2d2fffe3258c92180b4d047e4f9 Former-commit-id: 2bc7be2ae35d3d3b5b6621a4ac3dae14a049ea8f Former-commit-id: 338d723b8fb071168ddafcedeeb842fc15044344
95 lines
2.0 KiB
JavaScript
95 lines
2.0 KiB
JavaScript
module.exports = {
|
|
base: '/d2-admin/',
|
|
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/FairyEver/d2-admin',
|
|
// 自定义仓库链接文字
|
|
repoLabel: '查看源码',
|
|
// 文档不是放在仓库的根目录下
|
|
docsDir: 'docs',
|
|
// 默认是 false, 设置为 true 来启用
|
|
editLinks: true,
|
|
// 多国语言
|
|
locales: {
|
|
'/': {
|
|
selectText: 'Languages',
|
|
label: 'English',
|
|
editLinkText: 'Edit this page on GitHub',
|
|
lastUpdated: 'Last update'
|
|
},
|
|
'/zh/': {
|
|
selectText: '选择语言',
|
|
label: '简体中文',
|
|
editLinkText: '在 GitHub 上编辑此页',
|
|
lastUpdated: '最后更新',
|
|
nav: [
|
|
{ text: '指南', link: '/zh/guide/' },
|
|
{ text: '插件', link: '/zh/plugins/' },
|
|
{ text: '组件', link: '/zh/components/' },
|
|
{ text: '下载', link: 'https://github.com/FairyEver/d2-admin/releases' }
|
|
],
|
|
sidebar: {
|
|
'/zh/guide/': sideBarGuide('指南'),
|
|
'/zh/plugins/': sideBarPlugins('插件'),
|
|
'/zh/components/': sideBarComponents('组件')
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
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',
|
|
'container',
|
|
'count-up',
|
|
'highlight',
|
|
'icon-select',
|
|
'icon-svg',
|
|
'icon',
|
|
'markdown'
|
|
]
|
|
}
|
|
]
|
|
}
|