Files
mes-ui-d2/docs/.vuepress/config.js
liyang 94adf2a3c9 统计
Former-commit-id: 6c1b4093c4f8bdcfdac6cc4d10f2ab960bb27dc2 [formerly 6c1b4093c4f8bdcfdac6cc4d10f2ab960bb27dc2 [formerly 6c1b4093c4f8bdcfdac6cc4d10f2ab960bb27dc2 [formerly 6c1b4093c4f8bdcfdac6cc4d10f2ab960bb27dc2 [formerly c49ad75049e981563111952c20322d7ad26d03a4 [formerly 170c4b528d201c01bb377360f5cc91d59a2a1230]]]]]
Former-commit-id: e3b130ca612a22b638347a0f27730f8f947fdcfe
Former-commit-id: d9e29c12f7e67d443a04b459b6411e99b8e9da9c
Former-commit-id: df7e3625163e4d118b8905ea5ee05e9eb3d339a9 [formerly d1895a028d95b7ff995f01c51a30a90354d3a82c]
Former-commit-id: 66e9b1314af56c0ce6dee4f6a568c8fb2a84cabb
Former-commit-id: d6e8cc4fe7a1958d99ac5a8c8d1d195490892d8f
Former-commit-id: bd76453f0e37d7194d0fd7e6d4f8e1eb28fb1fc7
Former-commit-id: 9fee4faba466a3917bd82d577cc41f4b1fcffdd6
Former-commit-id: 5e9931649cc5009441d97ea434a38b3fe97e3b36
2018-07-06 12:29:21 +08:00

121 lines
2.9 KiB
JavaScript

module.exports = {
locales: {
'/': {
lang: 'en-US',
title: 'D2 Admin',
description: 'Elegant management system front-end integration'
},
'/zh/': {
lang: 'zh-CN',
title: 'D2 Admin',
description: '优雅的管理系统前端集成方案'
}
},
head: [
['link', { rel: 'icon', href: `/logo@2x.png` }],
['script', {}, 'var _hmt = _hmt || [];(function() {var hm = document.createElement("script");hm.src = "https://hm.baidu.com/hm.js?be9d34853430c136b5d62c3081d556a5";var s = document.getElementsByTagName("script")[0];s.parentNode.insertBefore(hm, s);})();']
],
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'
]
}
]
}