Skip to content
This repository has been archived by the owner on Sep 9, 2020. It is now read-only.

feat:New Chinese document example | 新增中文文档示例 #21

Open
wants to merge 4 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
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
58 changes: 51 additions & 7 deletions .vuepress/config.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@

module.exports = {
title: "Wails",
description:
"The lightweight framework for building web-like desktop apps using Go",
base: '/',
markdown: {
lineNumbers: true
},
Expand All @@ -14,10 +12,19 @@ module.exports = {
}
]
],
themeConfig: {
sidebar: {
"/": ["home", "quick_start", "/reference/", "/tutorials/", "/development/", "/releases/", "project_status"]
locales: {
'/': {
lang: 'en-US',
title: 'Wails',
description: `The lightweight framework for building web-like desktop apps using Go`
},
'/zh/': {
lang: 'zh-CN',
title: 'Wails',
description: '使用Go构建类似于Web的桌面应用程序的轻量级框架'
}
},
themeConfig: {
repo: "wailsapp/wails",
// repoLabel: 'Contribute!',
// if your docs are in a different repo from your main project:
Expand All @@ -30,6 +37,43 @@ module.exports = {
editLinks: true,
// custom text for edit link. Defaults to "Edit this page"
// editLinkText: 'Help us improve this page!',
nav: [{ text: "Wails", link: "/home.html#wails" }, { text: "Quick Start", link: "/quick_start" }, { text: "Tutorials", link: "/tutorials/" }, { text: "Project Status", link: "/project_status" }, { text: "Twitter", link: "https://twitter.com/wailsapp" }, { text: "Slack", link: "https://gophers.slack.com/messages/CJ4P9F7MZ/" }, { text: "Slack Invite", link: "https://invite.slack.golangbridge.org/" }]
locales: {
'/': {
label: 'English',
repoLabel: 'Source',
editLinkText: 'Edit this page on GitHub',
lastUpdated: 'Last Updated',
nav: [
{ text: "Wails", link: "/home.html#wails" },
{ text: "Quick Start", link: "/quick_start" },
{ text: "Tutorials", link: "/tutorials/" },
{ text: "Project Status", link: "/project_status" },
{ text: "Twitter", link: "https://twitter.com/wailsapp" },
{ text: "Slack", link: "https://gophers.slack.com/messages/CJ4P9F7MZ/" },
{ text: "Slack Invite", link: "https://invite.slack.golangbridge.org/" }
],
sidebar: {
"/": ["home", "quick_start", "/reference/", "/tutorials/", "/development/", "/releases/", "project_status"]
},
},
'/zh/': {
label: '简体中文',
repoLabel: '查看源码',
editLinkText: '帮助我们改善此页面!',
lastUpdated: '最后更新时间',
nav: [
{ text: "Wails", link: "/zh/home.html#wails" },
{ text: "快速开始", link: "/zh/quick_start" },
{ text: "教程", link: "/zh/tutorials/" },
{ text: "项目状态", link: "/zh/project_status" },
{ text: "Twitter", link: "https://twitter.com/wailsapp" },
{ text: "Slack", link: "https://gophers.slack.com/messages/CJ4P9F7MZ/" },
{ text: "Slack 邀请", link: "https://invite.slack.golangbridge.org/" }
],
sidebar: {
"/zh/": ["/zh/home", "/zh/quick_start", "/zh/reference/", "/zh/tutorials/", "/zh/development/", "/zh/releases/", "/zh/project_status"]
},
}
}
}
};
Loading