Former-commit-id: 6c3fc3b60bab166503e647681ccf7ad23caafbbf [formerly 6c3fc3b60bab166503e647681ccf7ad23caafbbf [formerly 6c3fc3b60bab166503e647681ccf7ad23caafbbf [formerly 6c3fc3b60bab166503e647681ccf7ad23caafbbf [formerly afda7e86d003381e89192eb77b7d910c17f247db [formerly 87ab6577e57c5fb40e7fb05d3625b5267b509085]]]]] Former-commit-id: 8fcc29180fcac3a9cba291a1df22cdc27ec34563 Former-commit-id: cdf9288304e16582aece03599b69ac18b5d89db7 Former-commit-id: 3401e43a9f77898235ff6685c1499eb4e335f9a2 [formerly 7392681409ac9c22b37212bbd6896ffcf25bd049] Former-commit-id: 3c5687734a7cc58299983f9c7bd37cc620b76b37 Former-commit-id: fac2d3c92ede0d208576bc91bd231bd165e3ae9e Former-commit-id: 09915cbb35205822417403a1ca32cf7e20a27db5 Former-commit-id: 013e5d09572467fa21a5ce33e5b2fc6daeb00fff Former-commit-id: da0ec4f303afe242c06eef33069bfdd02334aa62
225 lines
6.6 KiB
JavaScript
225 lines
6.6 KiB
JavaScript
module.exports = {
|
|
// base: '/d2-admin-doc/lastest/', // 发布到 http://app.d3collection.cn/d2-admin-doc/lastest/
|
|
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',
|
|
// 文档不是放在仓库的根目录下
|
|
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: '学习',
|
|
items: [
|
|
{ text: '教程', link: '/zh/learn-guide/' },
|
|
{ text: '相关知识', link: '/zh/learn-knowledge/' },
|
|
{ text: '升级指引', link: '/zh/learn-update/' }
|
|
]
|
|
},
|
|
{
|
|
text: '模块',
|
|
items: [
|
|
{ text: '组件', link: '/zh/sys-components/' },
|
|
{ text: '插件', link: '/zh/sys-plugins/' },
|
|
{ text: 'vuex', link: '/zh/sys-vuex/' },
|
|
{ text: '路由', link: '/zh/sys-route/' },
|
|
{ text: '菜单', link: '/zh/sys-menu/' },
|
|
{ text: '异步请求', link: '/zh/sys-ajax/' },
|
|
{ text: '多页面', link: '/zh/sys-multi-page/' },
|
|
{ text: '数据持久化', link: '/zh/sys-db/' },
|
|
{ text: 'CSS 实用类', link: '/zh/sys-css/' },
|
|
{ text: 'JS Util', link: '/zh/sys-util/' },
|
|
{ text: 'cli3 和 webpack', link: '/zh/sys-cli3-webpack/' }
|
|
]
|
|
},
|
|
{
|
|
text: '生态',
|
|
items: [
|
|
{ text: 'D2 Admin start kit', link: '/zh/ecosystem-d2-admin-start-kit/' },
|
|
{ text: 'D2 Admin ICE', link: '/zh/ecosystem-d2-admin-ice/' },
|
|
{ text: 'D2 CRUD', link: '/zh/ecosystem-d2-crud/' },
|
|
{ text: 'D2 Ribbons', link: '/zh/ecosystem-d2-ribbons/' }
|
|
]
|
|
},
|
|
{ text: '文章', link: '/zh/article/' },
|
|
{
|
|
text: '其它',
|
|
items: [
|
|
{ text: '更新日志', link: '/zh/change-log/' },
|
|
{ text: '参与者名单', link: '/zh/collaborator/' },
|
|
{ text: '借鉴 D2Admin 的项目', link: '/zh/plagiarize/' },
|
|
{
|
|
text: '交流',
|
|
items: [
|
|
{ text: '微信公众号', link: '/zh/communication-we/' },
|
|
{ text: '交流群', link: '/zh/communication-group-chat/' }
|
|
]
|
|
},
|
|
{
|
|
text: '关注我们',
|
|
items: [
|
|
{ text: '掘金', link: 'https://juejin.im/user/57a48b632e958a006691b946/posts' },
|
|
{ text: 'CSDN', link: 'https://blog.csdn.net/fairyever' },
|
|
{ text: 'segmentfault', link: 'https://segmentfault.com/blog/liyang-note-book' },
|
|
{ text: '知乎', link: 'https://www.zhihu.com/people/fairy-ever/activities' }
|
|
]
|
|
},
|
|
{
|
|
text: 'D2 在其它地方',
|
|
items: [
|
|
{ text: 'awesome-vue', link: 'https://github.com/vuejs/awesome-vue' },
|
|
{ text: 'ant design scaffolds', link: 'http://scaffold.ant.design/#/scaffolds/d2-admin' },
|
|
{ text: 'ice vue scaffold', link: 'https://alibaba.github.io/ice/scaffold?type=vue' },
|
|
{ text: 'awesomes.cn', link: 'https://www.awesomes.cn/repo/d2-projects/d2-admin' },
|
|
{ text: 'oschina.net', link: 'https://www.oschina.net/p/D2admin' },
|
|
{ text: 'ctolib.com', link: 'https://www.ctolib.com/FairyEver-d2-admin.html' }
|
|
]
|
|
}
|
|
]
|
|
},
|
|
{ text: '常见问题', link: '/zh/question/' },
|
|
{
|
|
text: '旧版文档',
|
|
items: [
|
|
{ text: '1.1.11', link: 'http://app.d3collection.cn/d2-admin-doc/1.1.11/zh/' }
|
|
]
|
|
}
|
|
],
|
|
sidebar: {
|
|
'/zh/learn-guide/': sideBarLearnGuide(),
|
|
'/zh/learn-update/': sideBarLearnUpdate(),
|
|
'/zh/sys-components/': sideBarSysComponents(),
|
|
'/zh/sys-plugins/': sideBarSysPlugins(),
|
|
'/zh/article/': sideBarArticle('版本发布', 'Cookbook'),
|
|
'/zh/ecosystem-d2-crud/': sideBarEcosystemD2Crud()
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
function sideBarLearnGuide () {
|
|
return [
|
|
{
|
|
collapsable: false,
|
|
children: [
|
|
'',
|
|
'getting-started'
|
|
]
|
|
}
|
|
]
|
|
}
|
|
|
|
function sideBarLearnUpdate () {
|
|
return [
|
|
{
|
|
collapsable: false,
|
|
children: [
|
|
'',
|
|
'ice-1.2.6-to-1.2.7.md'
|
|
]
|
|
}
|
|
]
|
|
}
|
|
|
|
function sideBarSysComponents () {
|
|
return [
|
|
{
|
|
collapsable: false,
|
|
children: [
|
|
'container',
|
|
'icon',
|
|
'icon-svg',
|
|
'icon-select',
|
|
'markdown',
|
|
'highlight',
|
|
'count-up',
|
|
'charts'
|
|
]
|
|
}
|
|
]
|
|
}
|
|
|
|
function sideBarSysPlugins () {
|
|
return [
|
|
{
|
|
collapsable: false,
|
|
children: [
|
|
'data-export',
|
|
'data-import',
|
|
'i18n',
|
|
'mock',
|
|
'error',
|
|
'log',
|
|
'console'
|
|
]
|
|
}
|
|
]
|
|
}
|
|
|
|
function sideBarArticle (titleUpdate, titleCookbook) {
|
|
return [
|
|
{
|
|
title: titleCookbook,
|
|
collapsable: false,
|
|
children: [
|
|
'cookbook/what-is-cookbook',
|
|
'cookbook/combinable-questionnaire'
|
|
]
|
|
},
|
|
{
|
|
title: titleUpdate,
|
|
collapsable: false,
|
|
children: [
|
|
'update/1.2.0',
|
|
'update/ice-1.1.2',
|
|
'update/1.1.5',
|
|
'update/1.1.4',
|
|
'update/0.0.0'
|
|
]
|
|
}
|
|
]
|
|
}
|
|
|
|
function sideBarEcosystemD2Crud () {
|
|
return [
|
|
{
|
|
collapsable: false,
|
|
children: [
|
|
'',
|
|
'guide',
|
|
'api',
|
|
'example'
|
|
]
|
|
}
|
|
]
|
|
} |