143 lines
4.6 KiB
JavaScript
143 lines
4.6 KiB
JavaScript
module.exports = {
|
||
base: '/',
|
||
locales: {
|
||
'/': {
|
||
lang: 'zh-CN'
|
||
}
|
||
},
|
||
title: 'AngesZhuの窝窝',
|
||
description: '做一些沉淀、记录和分享',
|
||
// dest: 'public',
|
||
head: [
|
||
['link', { rel: 'icon', href: '/favicon.ico' }],
|
||
['meta', { name: 'viewport', content: 'width=device-width,initial-scale=1,user-scalable=no' }],
|
||
['script', {}, `
|
||
var _hmt = _hmt || [];
|
||
(function() {
|
||
var hm = document.createElement("script");
|
||
hm.src = "https://hm.baidu.com/hm.js?xxxxxxxxxxxxxxxx";
|
||
var s = document.getElementsByTagName("script")[0];
|
||
s.parentNode.insertBefore(hm, s);
|
||
})();`]
|
||
],
|
||
markdown: {
|
||
lineNumbers: true,
|
||
},
|
||
themeConfig: {
|
||
nav: [
|
||
{text: '主页', link: '/', icon: 'reco-home'},
|
||
{text: '语言相关', icon: 'reco-api',
|
||
items:[
|
||
{text:'基础 | Python', link: '/code/python'},
|
||
{text:'框架 | Hintapi', link: '/code/python'},
|
||
{text:'框架 | Indexpy', link: '/code/python'},
|
||
{text:'插件 | DjangoSimpleAPI', link: '/code/python'},
|
||
{text:'基础 | Java | 基础', link: '/code/java'}
|
||
]},
|
||
{text: '自动化测试', link: '/auto', icon: 'reco-coding'},
|
||
{text: '测试开发', link: '/testdev', icon: 'reco-other'},
|
||
{text: '质量体系', link: '/quality', icon: 'reco-blog'},
|
||
{ text: '回顾', link: '/review', icon: 'reco-tag' },
|
||
{ text: '关于', link: '/about', icon: 'reco-account' },
|
||
],
|
||
type: 'blog',
|
||
blogConfig: {
|
||
category: {
|
||
location: 2, // 在导航栏菜单中所占的位置,默认2
|
||
text: '分类' // 默认 “分类”
|
||
},
|
||
tag: {
|
||
location: 3, // 在导航栏菜单中所占的位置,默认3
|
||
text: '标签' // 默认 “标签”
|
||
},
|
||
socialLinks: [
|
||
{ icon: 'reco-github', link: 'https://github.com/AngesZhu' },
|
||
{ icon: 'reco-gitlab', link: 'http://gitea.angeszhu.cn/' },
|
||
{ icon: 'reco-wechat', link: 'https://conimi.com/files/images/Torrk_wechat.jpg' },
|
||
{ icon: 'reco-bilibili', link: 'https://space.bilibili.com/2379690' },
|
||
]
|
||
},
|
||
logo: '/logo.png',
|
||
authorAvatar: '/logo.png',
|
||
search: true,
|
||
searchMaxSuggestions: 10,
|
||
subSidebar: 'auto',
|
||
sidebar: {
|
||
'/code/python': [
|
||
{
|
||
title: 'Python基础', // 必要的
|
||
collapsable: false, // 可选的, 默认值是 true,
|
||
sidebarDepth: 2, // 可选的, 默认值是 1
|
||
children: [
|
||
'python/base','python/advanced','python/algorithm',
|
||
]
|
||
},
|
||
],
|
||
'/code/python': [
|
||
{
|
||
title: 'Python进阶', // 必要的
|
||
collapsable: false, // 可选的, 默认值是 true,
|
||
sidebarDepth: 2, // 可选的, 默认值是 1
|
||
children: [
|
||
'python/base','python/advanced','python/algorithm',
|
||
]
|
||
},
|
||
],
|
||
'/code/java': [
|
||
{
|
||
title: 'Java语言', // 必要的
|
||
collapsable: false, // 可选的, 默认值是 true,
|
||
sidebarDepth: 2, // 可选的, 默认值是 1
|
||
children: [
|
||
'java/base',
|
||
]
|
||
},
|
||
]
|
||
},
|
||
sidebarDepth: 2,
|
||
lastUpdated: '上次更新',
|
||
author: 'AngesZhu',
|
||
// 备案号
|
||
record: '沪ICP备20012553号',
|
||
recordLink: 'https://beian.miit.gov.cn/',
|
||
startYear: '2017',
|
||
friendLink: [
|
||
{
|
||
title: '午后南杂',
|
||
desc: 'Enjoy when you can, and endure when you must.',
|
||
email: '1156743527@qq.com',
|
||
link: 'https://www.recoluan.com'
|
||
},
|
||
],
|
||
},
|
||
plugins: [
|
||
// 更新刷新插件
|
||
['@vuepress/pwa', {
|
||
serviceWorker: true,
|
||
updatePopup: {
|
||
message: "发现新内容可用",
|
||
buttonText: "刷新"
|
||
}
|
||
}],
|
||
["vuepress-plugin-nuggets-style-copy", {
|
||
copyText: "copy",
|
||
tip: {
|
||
content: "复制成功!"
|
||
}
|
||
}],
|
||
['@vuepress/last-updated',
|
||
{
|
||
transformer: (timestamp, lang) => {
|
||
return (new Date(timestamp)).toUTCString()
|
||
//或者用下面这段
|
||
// const moment = require('moment')
|
||
// moment.locale(lang)
|
||
// return moment(timestamp).toLocaleString()
|
||
}
|
||
}],
|
||
['@vuepress-reco/vuepress-plugin-pagation', {
|
||
perPage: 18
|
||
}],
|
||
]
|
||
}
|