Skip to content
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
build: 修改在线文档配置
  • Loading branch information
dunwu committed Apr 10, 2022
commit c05920a45071da1bb5b4b0190bc9e5a47d50c109
23 changes: 10 additions & 13 deletions docs/.vuepress/config.js
Original file line number Diff line number Diff line change
Expand Up @@ -61,15 +61,15 @@ module.exports = {

docsDir: 'docs', // 编辑的文件夹
editLinks: true, // 编辑链接
editLinkText: '编辑',
editLinkText: '📝 帮助改善此页面!',

// 以下配置是Vdoing主题改动的和新增的配置
sidebar: { mode: 'structuring', collapsable: false }, // 侧边栏 'structuring' | { mode: 'structuring', collapsable: Boolean} | 'auto' | 自定义 温馨提示:目录页数据依赖于结构化的侧边栏数据,如果你不设置为'structuring',将无法使用目录页

// sidebarOpen: false, // 初始状态是否打开侧边栏,默认true
updateBar: {
// 最近更新栏
showToArticle: false // 显示到文章页底部,默认true
showToArticle: true // 显示到文章页底部,默认true
// moreArticle: '/archives' // “更多文章”跳转的页面,默认'/archives'
},
// titleBadge: false, // 文章标题前的图标是否显示,默认true
Expand Down Expand Up @@ -122,10 +122,14 @@ module.exports = {

// 插件
plugins: [
// [require('./plugins/love-me'), { // 鼠标点击爱心特效
// color: '#11a8cd', // 爱心颜色,默认随机色
// excludeClassName: 'theme-vdoing-content' // 要排除元素的class, 默认空''
// }],
[
require('./plugins/love-me'),
{
// 鼠标点击爱心特效
color: '#11a8cd', // 爱心颜色,默认随机色
excludeClassName: 'theme-vdoing-content' // 要排除元素的class, 默认空''
}
],

['fulltext-search'], // 全文搜索

Expand All @@ -147,13 +151,6 @@ module.exports = {
// ]
// }],

[
'vuepress-plugin-baidu-tongji', // 百度统计
{
hm: baiduCode || '01293bffa6c3962016c08ba685c79d78'
}
],

[
'one-click-copy',
{
Expand Down