Commit b6a067c2 authored by Jinjiang's avatar Jinjiang

[docs][zh] updated config

parent ca77b660
module.exports = {
locales: {
'/': {
lang: 'en-US',
title: 'Vue Loader',
description: 'Webpack loader for single-file Vue components',
description: 'Webpack loader for single-file Vue components'
},
'/zh/': {
lang: 'zh-CN',
title: 'Vue Loader',
description: '处理 Vue 单文件组件的 Webpack loader'
}
},
serviceWorker: true,
theme: 'vue',
themeConfig: {
repo: 'vuejs/vue-loader',
docsDir: 'docs',
locales: {
'/': {
label: 'English',
selectText: 'Languages',
editLinkText: 'Edit this page on GitHub',
nav: [
{
text: 'Guide',
......@@ -38,5 +53,44 @@ module.exports = {
'/guide/linting',
'/guide/testing'
]
},
'/zh/': {
label: '简体中文',
selectText: '选择语言',
editLinkText: '在 GitHub 上编辑此页',
nav: [
{
text: '指南',
link: '/zh/guide/'
},
{
text: '单文件组件规范',
link: '/zh/spec.html'
},
{
text: '选项手册',
link: '/zh/options.html'
},
{
text: '如何从 v14 迁移',
link: '/zh/migrating.md'
}
],
sidebar: [
'/zh/',
'/zh/guide/',
'/zh/guide/asset-url',
'/zh/guide/pre-processors',
'/zh/guide/scoped-css',
'/zh/guide/css-modules',
'/zh/guide/hot-reload',
'/zh/guide/functional',
'/zh/guide/custom-blocks',
'/zh/guide/extract-css',
'/zh/guide/linting',
'/zh/guide/testing'
]
}
}
}
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment