Former-commit-id: fc20d69b5548d5899a8f54fc03193f32e419c8fd [formerly fc20d69b5548d5899a8f54fc03193f32e419c8fd [formerly fc20d69b5548d5899a8f54fc03193f32e419c8fd [formerly fc20d69b5548d5899a8f54fc03193f32e419c8fd [formerly cb687a6e66643e377dde4768f3f2be8c6138a783 [formerly d77724be8832c78b89fc3b7e4ca1024e306129f9]]]]] Former-commit-id: f77e8ee5ecc2a00588c94f7976567dac60cef9dd Former-commit-id: 0192b02c0910e5f606169b005c638e85bb47df04 Former-commit-id: d0aa5be596cc6294f299e007cf24a00e28be519d [formerly 8814787ff250e863dcebf58007c01a7644ab4ddb] Former-commit-id: de9795dfd96ec8ccdd199ca6d1c997bdd04a6a5a Former-commit-id: 7d19f19aa7bbdd466f3ed999a2b76abdbfdddc37 Former-commit-id: e869c34bbd0b3cbacea23afd0ece7c1625db57f4 Former-commit-id: 66c132c34e76e05887d0125df77c655ccb477949 Former-commit-id: 1bebdd6e747bfad39238675d8033707c7dca2c50
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'
|
|
]
|
|
}
|
|
]
|
|
}
|