[vuepress] Update config

Signed-off-by: Kang Huaishuai <khs1994@khs1994.com>
This commit is contained in:
Kang Huaishuai
2020-10-13 22:24:30 +08:00
parent ff1f48a793
commit fc8b8867af
5 changed files with 63 additions and 22 deletions

3
.vuepress/.gitignore vendored Normal file
View File

@@ -0,0 +1,3 @@
/*
!.gitignore
!config.js

View File

@@ -1,15 +1,6 @@
const resolve = require("vuepress-theme-hope/resolve");
module.exports = resolve({
themeConfig: {
blog: false,
comment: {
type: "disable", // 使用 Valine
appId: "...", // your appId
appKey: "...", // your appKey
},
pageInfo: false
},
title: 'Docker 从入门到实践',
base: '/',
head: [['script', {}, `
@@ -39,13 +30,57 @@ module.exports = resolve({
]
],
plugins: {
sitemap: {
hostname: 'https://vuepress.mirror.docker-practice.com'
},
// sitemap: {
// hostname: 'https://vuepress.mirror.docker-practice.com'
// },
// 'git-log': {
// additionalArgs: '--no-merge',
// onlyFirstAndLastCommit: true,
// },
},
themeConfig: {
blog: false,
// comment: false,
comment: {
type: "disable", // 使用 Valine
appId: "...", // your appId
appKey: "...", // your appKey
},
pageInfo: [
// 'Author',
'ReadTime',
'Word',
],
footer: {
content: "",
display: true,
copyright: false,
},
searchPlaceholder: 'Search',
repo: 'yeasy/docker_practice',
repoLabel: 'GitHub',
hostname: 'https://vuepress.mirror.docker-practice.com',
// author: 'yeasy',
markdown: {
// lineNumbers: true,
// sub: true,
// footnote: true
enableAll: true
},
themeColor: {
blue: '#2196f3',
red: '#f26d6d',
green: '#3eaf7c',
orange: '#fb9b5f'
},
//
showAds: true,
docsRepo: 'yeasy/docker_practice',
docsDir: '/',
docsBranch: 'master',
editLinks: true,
nav: [
{