Former-commit-id: fa2177d78f85c39d7c09579a1d5acb84b346fe08 [formerly fa2177d78f85c39d7c09579a1d5acb84b346fe08 [formerly fa2177d78f85c39d7c09579a1d5acb84b346fe08 [formerly fa2177d78f85c39d7c09579a1d5acb84b346fe08 [formerly 8390465d98a8307c523383de1cabf895f957f7f1 [formerly 158a4737b05965eefd5ff435f6ef3c4002ffbe83]]]]] Former-commit-id: a3db87b39113071027ee0544e885f1b231ad890d Former-commit-id: bba1db492cb6914aaa2f56c13281e5618b3d0e2e Former-commit-id: 42107d64ae5bfac3723614ed95326bb5f5419e41 [formerly d090d9ea1439d09653dbad558816ac70a1b91cf7] Former-commit-id: 6f3dbac2d65d17c6ac9a98aa92345bdd78fdeeb8 Former-commit-id: e597a369de513fb9af63bfcda5672d864f485de2 Former-commit-id: f4562f7f9dc40cca8641ffdc8dccd1d36f6abd5f Former-commit-id: ea6a1b96ebdff9832005176ea31989aa837237a9 Former-commit-id: 302ae6c7a185fa77043f63c6874131c8b6166750
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/FairyEver/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/FairyEver/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/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',
|
|
'charts-new',
|
|
'container',
|
|
'count-up',
|
|
'highlight',
|
|
'icon-select',
|
|
'icon-svg',
|
|
'icon',
|
|
'markdown'
|
|
]
|
|
}
|
|
]
|
|
}
|
|
|
|
function sideBarOthers (title) {
|
|
return [
|
|
{
|
|
title,
|
|
collapsable: false,
|
|
children: [
|
|
'',
|
|
'css'
|
|
]
|
|
}
|
|
]
|
|
}
|