Former-commit-id: fd4c157c24a3333d4f4a53d25faafc1657e6493a [formerly fd4c157c24a3333d4f4a53d25faafc1657e6493a [formerly fd4c157c24a3333d4f4a53d25faafc1657e6493a [formerly fd4c157c24a3333d4f4a53d25faafc1657e6493a [formerly 27ca102560b6cd814fb46dfb1cbb6c2999bc2f77 [formerly e57449d64d66fdb544fcfd72ecb37dc4d2a0bd81]]]]] Former-commit-id: dbb8e66e92c0648cdd85311bd9b0dcf167d2afb8 Former-commit-id: c30a3f0328fc625465a650c3407e7c6f315f065d Former-commit-id: 14282d9e0e66742a9e3798fe700388b17740d888 [formerly fadf80358f3ba7b22c9f5c89772b26a6de63dae1] Former-commit-id: 6f69f62f771964fc20b2d881830e76a2d94634f0 Former-commit-id: bc84a6f027fd36454b46944b708c2af924f4364d Former-commit-id: 3c3923b68cbea225df5a9719f2655ae51d470c1b Former-commit-id: ee5169fda2478d40a90c714effcfa197ca209be6 Former-commit-id: 0703f60f4588cb54aa708070c03dd1e84ed24ca3
95 lines
2.0 KiB
JavaScript
95 lines
2.0 KiB
JavaScript
module.exports = {
|
|
base: '/d2admin-vue-element/',
|
|
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/d2admin-vue-element',
|
|
// 自定义仓库链接文字
|
|
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/d2admin-vue-element/releases' }
|
|
],
|
|
sidebar: {
|
|
'/zh/guide/': sideBarGuide('指南'),
|
|
'/zh/plugins/': sideBarPlugins('插件'),
|
|
'/zh/components/': sideBarComponents('组件')
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
function sideBarGuide (title) {
|
|
return [
|
|
{
|
|
title,
|
|
collapsable: false,
|
|
children: [
|
|
'',
|
|
'q-a',
|
|
'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'
|
|
]
|
|
}
|
|
]
|
|
}
|