1
0

en.ts 4.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162
  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: 'useLoader', link: '/composables/use-loader' },
  44. { text: 'useGraph', link: '/composables/use-graph' },
  45. ],
  46. },
  47. {
  48. text: 'Advanced',
  49. items: [
  50. { text: 'Extending', link: '/advanced/extending' },
  51. { text: 'Primitives', link: '/advanced/primitive' },
  52. { text: 'Scaling Performance 🚀', link: '/advanced/performance' },
  53. { text: 'Attach', link: '/advanced/attach' },
  54. {
  55. text: 'Caveats',
  56. link: '/advanced/caveats',
  57. },
  58. ],
  59. },
  60. {
  61. text: 'Debug',
  62. items: [
  63. { text: 'Devtools', link: '/debug/devtools' },
  64. ],
  65. },
  66. {
  67. text: 'Cookbook 🍳🧑‍🍳',
  68. link: '/cookbook/',
  69. items: [
  70. { text: 'Orbit Controls', link: '/cookbook/orbit-controls' },
  71. { text: 'Basic Animations', link: '/cookbook/basic-animations' },
  72. { text: 'Advanced Animations', link: '/cookbook/advanced-animations' },
  73. { text: 'Groups', link: '/cookbook/groups' },
  74. { text: 'Load Textures', link: '/cookbook/load-textures' },
  75. { text: 'Load Models', link: '/cookbook/load-models' },
  76. { text: 'Load Text', link: '/cookbook/text-3d' },
  77. { text: 'Lights & Shadows', link: '/cookbook/lights-shadows' },
  78. { text: 'Shaders', link: '/cookbook/shaders' },
  79. { text: 'Tweakpane', link: '/cookbook/tweakpane' },
  80. ],
  81. },
  82. {
  83. text: 'Directives',
  84. collapsed: true,
  85. items: [
  86. { text: 'v-log', link: '/directives/v-log' },
  87. { text: 'v-light-helper', link: '/directives/v-light-helper' },
  88. { text: 'v-distance-to', link: '/directives/v-distance-to' },
  89. ],
  90. },
  91. {
  92. text: 'Ecosystem',
  93. items: [
  94. {
  95. text: 'Cientos 💛',
  96. link: 'https://cientos.tresjs.org/',
  97. },
  98. {
  99. text: 'Nuxt module',
  100. link: 'https://github.com/Tresjs/nuxt',
  101. },
  102. {
  103. text: 'TresLeches 🍰',
  104. link: 'https://tresleches.tresjs.org/',
  105. },
  106. {
  107. text: 'Post-processing',
  108. link: 'https://post-processing.tresjs.org/',
  109. },
  110. ],
  111. },
  112. ],
  113. nav: [
  114. { text: 'Guide', link: '/guide/' },
  115. { text: 'API', link: '/api/tres-canvas' },
  116. /* { text: 'API', link: '/api/' },
  117. { text: 'Config', link: '/config/' }, */
  118. {
  119. text: 'Resources',
  120. items: [
  121. { text: 'Team', link: '/team' },
  122. { text: 'Releases', link: 'https://github.com/Tresjs/tres/releases' },
  123. {
  124. text: 'Playground',
  125. link: 'https://play.tresjs.org/',
  126. },
  127. {
  128. text: 'Github',
  129. link: 'https://github.com/Tresjs/tres/',
  130. },
  131. {
  132. text: 'Issues',
  133. link: 'https://github.com/Tresjs/tres/issues',
  134. },
  135. {
  136. text: 'Ecosystem',
  137. items: [
  138. {
  139. text: 'Cientos 💛',
  140. link: 'https://cientos.tresjs.org/',
  141. },
  142. {
  143. text: 'Nuxt module',
  144. link: 'https://github.com/Tresjs/nuxt',
  145. },
  146. {
  147. text: 'TresLeches 🍰',
  148. link: 'https://tresleches.tresjs.org/',
  149. },
  150. {
  151. text: 'Post-processing',
  152. link: 'https://post-processing.tresjs.org/',
  153. },
  154. ],
  155. },
  156. ],
  157. },
  158. ],
  159. },
  160. }