Former-commit-id: 7cf67090ff0fd9449e24dc122ffeb6c900c45403 [formerly 7cf67090ff0fd9449e24dc122ffeb6c900c45403 [formerly 7cf67090ff0fd9449e24dc122ffeb6c900c45403 [formerly 7cf67090ff0fd9449e24dc122ffeb6c900c45403 [formerly 1019ccb07daf3bf27a77c0d87a3908bb5d2a72ec [formerly 206e3f837d4f674b6caf7001f29a630b1bc53726]]]]] Former-commit-id: 1088def8b1b43c3027be7969076a4c7cd8685fbf Former-commit-id: 3bb2cb26bc39a167a2451c96a4b5026d3a1f93bf Former-commit-id: 071f661e87e77dd171c2765ca4e0749710450258 [formerly 9597dd71a51cf4fbe318f87927147643752e2c2c] Former-commit-id: c7f3fb4d0e6f177fdb9655408dff44dabb58032b Former-commit-id: f11fd7ae236e6cc7cc8e4c79238fd2962c0c9380 Former-commit-id: 6592bd7b89143c32e6302454319c8412a46ab7b4 Former-commit-id: 04ad104d09e731652ce64630871652575eb97802 Former-commit-id: b806baefc5d0065ed91c8d030a5f4a602c3c5b61
110 lines
2.3 KiB
JavaScript
110 lines
2.3 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/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: '/zh/others/' },
|
|
{ text: '下载', link: 'https://github.com/FairyEver/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',
|
|
'container',
|
|
'count-up',
|
|
'highlight',
|
|
'icon-select',
|
|
'icon-svg',
|
|
'icon',
|
|
'markdown'
|
|
]
|
|
}
|
|
]
|
|
}
|
|
|
|
function sideBarOthers (title) {
|
|
return [
|
|
{
|
|
title,
|
|
collapsable: false,
|
|
children: [
|
|
'',
|
|
'css'
|
|
]
|
|
}
|
|
]
|
|
}
|