Files
mes-ui-d2/docs/.vuepress/config.js
liyang f424800d07 no message
Former-commit-id: 53ddb060b465b25db113212fc8d2fe11abd71676 [formerly 53ddb060b465b25db113212fc8d2fe11abd71676 [formerly 53ddb060b465b25db113212fc8d2fe11abd71676 [formerly 53ddb060b465b25db113212fc8d2fe11abd71676 [formerly 693a2abe46fd9c72441f508c884e009295f2351a [formerly 061cd46abe708e44c7de1fe9dc2074f9f49158a1]]]]]
Former-commit-id: ee7070a82a84846d6beb54d4a2db29c4cd56d1a1
Former-commit-id: 3dc539f72f0d62a3f922ea3cc3023d527833e713
Former-commit-id: 0e472118cd8b61b413276e10c47b72c8be072094 [formerly fa8440206963a9b4d13d49319e0499719b34efbe]
Former-commit-id: d756e98a1e3376e7d68a85bd54e545200e98a9fa
Former-commit-id: bcdb68859b81a4a5c388cc0bfd1052e717e4b618
Former-commit-id: 87a2a72545619ac0ae01e0b3017e1f13a37d6131
Former-commit-id: b493401bee885e5bdaa3b370bf5340f006ea644a
Former-commit-id: 2fbf1eab67a39dcea6dd69fa215763161ef4670a
2018-06-24 17:51:54 +08:00

95 lines
2.0 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: 'https://github.com/FairyEver/d2-admin/releases' }
],
sidebar: {
'/zh/guide/': sideBarGuide('指南'),
'/zh/plugins/': sideBarPlugins('插件'),
'/zh/components/': sideBarComponents('组件')
}
}
}
}
}
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'
]
}
]
}