diff options
Diffstat (limited to 'doc/docs/.vuepress/config.js')
-rwxr-xr-x | doc/docs/.vuepress/config.js | 78 |
1 files changed, 61 insertions, 17 deletions
diff --git a/doc/docs/.vuepress/config.js b/doc/docs/.vuepress/config.js index bd89428..70ea66a 100755 --- a/doc/docs/.vuepress/config.js +++ b/doc/docs/.vuepress/config.js | |||
@@ -46,31 +46,75 @@ module.exports = { | |||
46 | ['script', { src: '/js/yuescript.js' }], | 46 | ['script', { src: '/js/yuescript.js' }], |
47 | ], | 47 | ], |
48 | 48 | ||
49 | locales: { | ||
50 | '/': { | ||
51 | lang: 'en-US', | ||
52 | title: 'Yuescript', | ||
53 | description: 'A language that compiles to Lua' | ||
54 | }, | ||
55 | |||
56 | '/zh/': { | ||
57 | lang: 'zh-CN', | ||
58 | title: '月之脚本', | ||
59 | description: '一门编译到 Lua 的语言' | ||
60 | } | ||
61 | }, | ||
62 | |||
49 | /** | 63 | /** |
50 | * Theme configuration, here is the default theme configuration for VuePress. | 64 | * Theme configuration, here is the default theme configuration for VuePress. |
51 | * | 65 | * |
52 | * ref:https://v1.vuepress.vuejs.org/theme/default-theme-config.html | 66 | * ref:https://v1.vuepress.vuejs.org/theme/default-theme-config.html |
53 | */ | 67 | */ |
54 | themeConfig: { | 68 | themeConfig: { |
55 | repo: '', | 69 | locales: { |
56 | editLinks: false, | 70 | '/': { |
57 | docsDir: '', | 71 | selectText: 'Languages', |
58 | editLinkText: '', | 72 | label: 'English', |
59 | lastUpdated: false, | 73 | repo: '', |
60 | nav: [ | 74 | editLinks: false, |
61 | { | 75 | docsDir: '', |
62 | text: 'Document', | 76 | editLinkText: '', |
63 | link: '/doc/' | 77 | lastUpdated: false, |
78 | nav: [ | ||
79 | { | ||
80 | text: 'Document', | ||
81 | link: '/doc/' | ||
82 | }, | ||
83 | { | ||
84 | text: 'Try yue!', | ||
85 | link: '/try/', | ||
86 | }, | ||
87 | { | ||
88 | text: 'Github', | ||
89 | link: 'https://github.com/pigpigyyy/Yuescript' | ||
90 | } | ||
91 | ], | ||
64 | }, | 92 | }, |
65 | { | 93 | |
66 | text: 'Try yue!', | 94 | '/zh/': { |
67 | link: '/try/', | 95 | selectText: '选择语言', |
96 | label: '简体中文', | ||
97 | repo: '', | ||
98 | editLinks: false, | ||
99 | docsDir: '', | ||
100 | editLinkText: '', | ||
101 | lastUpdated: false, | ||
102 | nav: [ | ||
103 | { | ||
104 | text: '文档', | ||
105 | link: '/zh/doc/' | ||
106 | }, | ||
107 | { | ||
108 | text: '试一试!', | ||
109 | link: '/zh/try/', | ||
110 | }, | ||
111 | { | ||
112 | text: 'Github', | ||
113 | link: 'https://github.com/pigpigyyy/Yuescript' | ||
114 | } | ||
115 | ], | ||
68 | }, | 116 | }, |
69 | { | 117 | } |
70 | text: 'Github', | ||
71 | link: 'https://github.com/pigpigyyy/Yuescript' | ||
72 | } | ||
73 | ], | ||
74 | }, | 118 | }, |
75 | 119 | ||
76 | /** | 120 | /** |