config.js 7.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217
  1. module.exports = {
  2. lang: 'en-US',
  3. title: 'Vuex',
  4. description: 'Centralized State Management for Vue.js',
  5. locales: {
  6. '/': {
  7. lang: 'en-US',
  8. title: 'Vuex',
  9. description: 'Centralized State Management for Vue.js'
  10. },
  11. '/zh/': {
  12. lang: 'zh-CN',
  13. title: 'Vuex',
  14. description: 'Vue.js 的中心化状态管理方案'
  15. },
  16. '/ptbr/': {
  17. lang: 'pt-BR',
  18. title: 'Vuex',
  19. description: 'Gerenciamento de Estado Centralizado para Vue.js'
  20. }
  21. },
  22. head: [
  23. ['link', { rel: 'icon', href: `/logo.png` }],
  24. ['link', { rel: 'apple-touch-icon', href: `/icons/apple-touch-icon-152x152.png` }],
  25. ['link', { rel: 'mask-icon', href: '/icons/safari-pinned-tab.svg', color: '#3eaf7c' }],
  26. ['meta', { name: 'msapplication-TileImage', content: '/icons/msapplication-icon-144x144.png' }]
  27. ],
  28. themeConfig: {
  29. repo: 'vuejs/vuex',
  30. docsDir: 'docs',
  31. docsBranch: '4.0',
  32. editLinks: true,
  33. locales: {
  34. '/': {
  35. label: 'English',
  36. selectText: 'Languages',
  37. editLinkText: 'Edit this page on GitHub',
  38. lastUpdated: 'Last Updated',
  39. nav: [
  40. { text: 'Guide', link: '/guide/' },
  41. { text: 'API Reference', link: '/api/' },
  42. { text: 'Release Notes', link: 'https://github.com/vuejs/vuex/releases' },
  43. {
  44. text: 'v4.x',
  45. items: [
  46. { text: 'v3.x', link: 'https://vuex.vuejs.org/' }
  47. ]
  48. }
  49. ],
  50. sidebar: [
  51. {
  52. text: 'Introduction',
  53. children: [
  54. { text: 'What is Vuex?', link: '/' },
  55. { text: 'Installation', link: '/installation' },
  56. { text: 'Getting Started', link: '/guide/' }
  57. ]
  58. },
  59. {
  60. text: 'Core Concepts',
  61. children: [
  62. { text: 'State', link: '/guide/state' },
  63. { text: 'Getters', link: '/guide/getters' },
  64. { text: 'Mutations', link: '/guide/mutations' },
  65. { text: 'Actions', link: '/guide/actions' },
  66. { text: 'Modules', link: '/guide/modules' }
  67. ]
  68. },
  69. {
  70. text: 'Advanced',
  71. children: [
  72. { text: 'Application Structure', link: '/guide/structure' },
  73. { text: 'Composition API', link: '/guide/composition-api' },
  74. { text: 'Plugins', link: '/guide/plugins' },
  75. { text: 'Strict Mode', link: '/guide/strict' },
  76. { text: 'Form Handling', link: '/guide/forms' },
  77. { text: 'Testing', link: '/guide/testing' },
  78. { text: 'Hot Reloading', link: '/guide/hot-reload' },
  79. { text: 'TypeScript Support', link: '/guide/typescript-support' },
  80. ]
  81. },
  82. {
  83. text: 'Migration Guide',
  84. children: [
  85. { text: 'Migrating to 4.0 from 3.x', link: '/guide/migrating-to-4-0-from-3-x' }
  86. ]
  87. }
  88. ]
  89. },
  90. '/zh/': {
  91. label: '简体中文',
  92. selectText: '选择语言',
  93. editLinkText: '在 GitHub 上编辑此页',
  94. lastUpdated: '最近更新时间',
  95. nav: [
  96. { text: '指南', link: '/zh/guide/' },
  97. { text: 'API 参考', link: '/zh/api/' },
  98. { text: '更新记录', link: 'https://github.com/vuejs/vuex/releases' },
  99. {
  100. text: 'v4.x',
  101. items: [
  102. { text: 'v3.x', link: 'https://vuex.vuejs.org/zh' }
  103. ]
  104. }
  105. ],
  106. sidebar: [
  107. {
  108. text: '介绍',
  109. children: [
  110. { text: 'Vuex 是什么?', link: '/zh/' },
  111. { text: '安装', link: '/zh/installation' },
  112. { text: '开始', link: '/zh/guide/' }
  113. ]
  114. },
  115. {
  116. text: '核心概念',
  117. children: [
  118. { text: 'State', link: '/zh/guide/state' },
  119. { text: 'Getter', link: '/zh/guide/getters' },
  120. { text: 'Mutation', link: '/zh/guide/mutations' },
  121. { text: 'Action', link: '/zh/guide/actions' },
  122. { text: 'Module', link: '/zh/guide/modules' }
  123. ]
  124. },
  125. {
  126. text: '进阶',
  127. children: [
  128. { text: '项目结构', link: '/zh/guide/structure' },
  129. { text: '组合式 API', link: '/zh/guide/composition-api' },
  130. { text: '插件', link: '/zh/guide/plugins' },
  131. { text: '严格模式', link: '/zh/guide/strict' },
  132. { text: '表单处理', link: '/zh/guide/forms' },
  133. { text: '测试', link: '/zh/guide/testing' },
  134. { text: '热重载', link: '/zh/guide/hot-reload' },
  135. { text: 'TypeScript 支持', link: '/zh/guide/typescript-support' },
  136. ]
  137. },
  138. {
  139. text: '迁移指南',
  140. children: [
  141. { text: '从 3.x 迁移到 4.0', link: '/zh/guide/migrating-to-4-0-from-3-x' }
  142. ]
  143. }
  144. ]
  145. },
  146. '/ptbr/': {
  147. label: 'Português',
  148. selectText: 'Idiomas',
  149. editLinkText: 'Edite esta página no GitHub',
  150. lastUpdated: 'Última Atualização',
  151. nav: [
  152. { text: 'Guia', link: '/ptbr/guide/' },
  153. { text: 'Referência da API', link: '/ptbr/api/' },
  154. { text: 'Notas de Lançamento', link: 'https://github.com/vuejs/vuex/releases' },
  155. {
  156. text: 'v4.x',
  157. items: [
  158. { text: 'v3.x', link: 'https://vuex.vuejs.org/ptbr/' }
  159. ]
  160. }
  161. ],
  162. sidebar: [
  163. {
  164. text: 'Introdução',
  165. children: [
  166. { text: 'O que é Vuex?', link: '/ptbr/' },
  167. { text: 'Instalação', link: '/ptbr/installation' },
  168. { text: 'Começando', link: '/ptbr/guide/' }
  169. ]
  170. },
  171. {
  172. text: 'Conceitos Básicos',
  173. children: [
  174. { text: 'Estado', link: '/ptbr/guide/state' },
  175. { text: 'Getters', link: '/ptbr/guide/getters' },
  176. { text: 'Mutações', link: '/ptbr/guide/mutations' },
  177. { text: 'Ações', link: '/ptbr/guide/actions' },
  178. { text: 'Módulos', link: '/ptbr/guide/modules' }
  179. ]
  180. },
  181. {
  182. text: 'Avançado',
  183. children: [
  184. { text: 'Estrutura da Aplicação', link: '/ptbr/guide/structure' },
  185. { text: 'Composition API', link: '/ptbr/guide/composition-api' },
  186. { text: 'Plugins', link: '/ptbr/guide/plugins' },
  187. { text: 'Modo Strict', link: '/ptbr/guide/strict' },
  188. { text: 'Manipulação de Formulários', link: '/ptbr/guide/forms' },
  189. { text: 'Testando', link: '/ptbr/guide/testing' },
  190. { text: 'Hot Reloading', link: '/ptbr/guide/hot-reload' },
  191. { text: 'Suporte ao TypeScript', link: '/ptbr/guide/typescript-support' },
  192. ]
  193. },
  194. {
  195. text: 'Guia de Migração',
  196. children: [
  197. { text: 'Migrando do 3.x para 4.0', link: '/ptbr/guide/migrating-to-4-0-from-3-x' }
  198. ]
  199. }
  200. ]
  201. }
  202. }
  203. }
  204. }