1
0

en.ts 5.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173
  1. import type { DefaultTheme, LocaleSpecificConfig } from 'vitepress'
  2. export const enConfig: LocaleSpecificConfig<DefaultTheme.Config> = {
  3. themeConfig: {
  4. editLink: {
  5. pattern: 'https://github.com/tresjs/tres/edit/main/docs/:path',
  6. text: 'Suggest changes to this page',
  7. },
  8. sidebar: [
  9. {
  10. text: 'Guide',
  11. items: [
  12. // This shows `/guide/index.md` page.
  13. { text: 'Introduction', link: '/guide/' },
  14. { text: 'Getting Started', link: '/guide/getting-started' },
  15. { text: 'Your first Scene', link: '/guide/your-first-scene' },
  16. { text: 'Nuxt', link: '/guide/nuxt' },
  17. { text: 'Troubleshooting', link: '/guide/troubleshooting' },
  18. { text: 'Migrate from v1', link: '/guide/migration-guide' },
  19. ],
  20. },
  21. {
  22. text: 'API',
  23. items: [
  24. { text: 'TresCanvas', link: '/api/tres-canvas' },
  25. {
  26. text: 'Instances, arguments and props',
  27. link: '/api/instances-arguments-and-props',
  28. },
  29. {
  30. text: 'Composables',
  31. link: '/api/composables',
  32. },
  33. {
  34. text: 'Events',
  35. link: '/api/events',
  36. },
  37. ],
  38. },
  39. {
  40. text: 'Composables',
  41. link: '/api/composables',
  42. items: [
  43. { text: 'useTres', link: '/composables/use-tres' },
  44. { text: 'useLoader', link: '/composables/use-loader' },
  45. { text: 'useGraph', link: '/composables/use-graph' },
  46. ],
  47. },
  48. {
  49. text: 'Advanced',
  50. items: [
  51. { text: 'Extending', link: '/advanced/extending' },
  52. { text: 'Primitives', link: '/advanced/primitive' },
  53. { text: 'Scaling Performance 🚀', link: '/advanced/performance' },
  54. { text: 'Attach', link: '/advanced/attach' },
  55. {
  56. text: 'Caveats',
  57. link: '/advanced/caveats',
  58. },
  59. ],
  60. },
  61. {
  62. text: 'Debug',
  63. items: [
  64. { text: 'Devtools', link: '/debug/devtools' },
  65. ],
  66. },
  67. {
  68. text: 'Cookbook 🍳🧑‍🍳',
  69. link: '/cookbook/',
  70. items: [
  71. { text: 'Orbit Controls', link: '/cookbook/orbit-controls' },
  72. { text: 'Basic Animations', link: '/cookbook/basic-animations' },
  73. { text: 'Advanced Animations', link: '/cookbook/advanced-animations' },
  74. { text: 'Groups', link: '/cookbook/groups' },
  75. { text: 'Load Textures', link: '/cookbook/load-textures' },
  76. { text: 'Load Models', link: '/cookbook/load-models' },
  77. { text: 'Load Text', link: '/cookbook/text-3d' },
  78. { text: 'Lights & Shadows', link: '/cookbook/lights-shadows' },
  79. { text: 'Shaders', link: '/cookbook/shaders' },
  80. { text: 'Tweakpane', link: '/cookbook/tweakpane' },
  81. ],
  82. },
  83. {
  84. text: 'Directives',
  85. collapsed: true,
  86. items: [
  87. { text: 'v-log', link: '/directives/v-log' },
  88. { text: 'v-light-helper', link: '/directives/v-light-helper' },
  89. { text: 'v-distance-to', link: '/directives/v-distance-to' },
  90. ],
  91. },
  92. {
  93. text: 'Ecosystem',
  94. items: [
  95. {
  96. text: 'Cientos 💛',
  97. link: 'https://cientos.tresjs.org/',
  98. },
  99. {
  100. text: 'Nuxt module',
  101. link: 'https://github.com/Tresjs/nuxt',
  102. },
  103. {
  104. text: 'TresLeches 🍰',
  105. link: 'https://tresleches.tresjs.org/',
  106. },
  107. {
  108. text: 'Post-processing',
  109. link: 'https://post-processing.tresjs.org/',
  110. },
  111. ],
  112. },
  113. {
  114. text: 'Contributing',
  115. items: [
  116. { text: 'Contribute', link: '/contribute/contributing' },
  117. ],
  118. },
  119. ],
  120. nav: [
  121. { text: 'Guide', link: '/guide/' },
  122. { text: 'API', link: '/api/tres-canvas' },
  123. /* { text: 'API', link: '/api/' },
  124. { text: 'Config', link: '/config/' }, */
  125. {
  126. text: 'Resources',
  127. items: [
  128. { text: 'Team', link: '/team' },
  129. { text: 'Releases', link: 'https://github.com/Tresjs/tres/releases' },
  130. {
  131. text: 'Playground',
  132. link: 'https://play.tresjs.org/',
  133. },
  134. {
  135. text: 'Github',
  136. link: 'https://github.com/Tresjs/tres/',
  137. },
  138. {
  139. text: 'Issues',
  140. link: 'https://github.com/Tresjs/tres/issues',
  141. },
  142. {
  143. text: 'Contributing',
  144. link: 'https://github.com/Tresjs/.github/blob/main/CONTRIBUTING.md',
  145. },
  146. {
  147. text: 'Ecosystem',
  148. items: [
  149. {
  150. text: 'Cientos 💛',
  151. link: 'https://cientos.tresjs.org/',
  152. },
  153. {
  154. text: 'Nuxt module',
  155. link: 'https://github.com/Tresjs/nuxt',
  156. },
  157. {
  158. text: 'TresLeches 🍰',
  159. link: 'https://tresleches.tresjs.org/',
  160. },
  161. {
  162. text: 'Post-processing',
  163. link: 'https://post-processing.tresjs.org/',
  164. },
  165. ],
  166. },
  167. ],
  168. },
  169. ],
  170. },
  171. }