Files
mes-ui-d2/docs/.vuepress/config.js
liyang 201beb1e8f no message
Former-commit-id: fcd0f531054a6057a3c512f063e9ef0848f34521 [formerly fcd0f531054a6057a3c512f063e9ef0848f34521 [formerly fcd0f531054a6057a3c512f063e9ef0848f34521 [formerly fcd0f531054a6057a3c512f063e9ef0848f34521 [formerly feabe1b687bb927dcc4f7f88c9cbeef514b74c03 [formerly bdc1de3744f7c23a4bf83e425989eb25e97d83fd]]]]]
Former-commit-id: 651395f538ef6ef8e476d4631026bb1c087ddfe0
Former-commit-id: 2f720c700ed940ebd60e94e35cfb1cb744a75a30
Former-commit-id: 1e27c9940936266f51d99be6ae725f7eae473788 [formerly 4e6a0c4825f58214736623a71375fc601632e6c9]
Former-commit-id: 46563ce020316852e0fed720571a7ded2f08d3b3
Former-commit-id: 40dc457788d10e9c4493fef575817312209af5ad
Former-commit-id: cb7d592da92458d8602dbb9a922624f2b57e4f6b
Former-commit-id: 3d5c3fb3465166486e8728fc174d484b63a7823a
Former-commit-id: 598f9e65f3a46f73e6600108973de38c66829498
2018-06-25 23:02:25 +08:00

117 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',
'container',
'count-up',
'highlight',
'icon-select',
'icon-svg',
'icon',
'markdown'
]
}
]
}
function sideBarOthers (title) {
return [
{
title,
collapsable: false,
children: [
'',
'css'
]
}
]
}