VuePress config All In One
docs/.vuepress/config.js
const {
title,
description,
} = require('../../package')
module.exports = {
// https://v1.vuepress.vuejs.org/config/#title
// title: " ",
title,
// title: title,
// https://v1.vuepress.vuejs.org/config/#description
description,
// description: description,
// https://v1.vuepress.vuejs.org/config/#head
head: [
['meta', { name: 'theme-color', content: '#3eaf7c' }],
['meta', { name: 'apple-mobile-web-app-capable', content: 'yes' }],
['meta', { name: 'apple-mobile-web-app-status-bar-style', content: 'black' }]
],
// https://v1.vuepress.vuejs.org/theme/default-theme-config.html
themeConfig: {
repo: '',
editLinks: false,
docsDir: '',
editLinkText: '',
lastUpdated: false,
nav: [
{
text: 'Guide',
link: '/guide/',
},
// {
// text: 'Config',
// link: '/config/'
// },
// {
// text: 'VuePress',
// link: 'https://v1.vuepress.vuejs.org'
// },
],
sidebar: {
'/guide/': [
{
title: 'Guide',
collapsable: false,
children: [
'',
'github',
],
}
],
}
},
// host: '0.0.0.0',
// port: 8080,
// temp: '/path/to/@vuepress/core/.temp',
// dest: '.vuepress/dist',
// locales: undefined,
// https://v1.vuepress.vuejs.org/zh/guide/i18n.html
// locales: { [path: string]: Object },
// shouldPrefetch: () => true,
// https://v1.vuepress.vuejs.org/zh/plugin/
plugins: [
'@vuepress/plugin-back-to-top',
'@vuepress/plugin-medium-zoom',
]
}
i18n
refs
https://v1.vuepress.vuejs.org/zh/config/
https://v1.vuepress.vuejs.org/zh/guide/i18n.html
©xgqfrms 2012-2020
www.cnblogs.com 发布文章使用:只允许注册用户才可以访问!