en.ts 4.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146
  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/packages/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: 'Advanced',
  41. items: [
  42. { text: 'Extending', link: '/advanced/extending' },
  43. { text: 'primitive', link: '/advanced/primitive' },
  44. {
  45. text: 'Caveats',
  46. link: '/advanced/caveats',
  47. },
  48. ],
  49. },
  50. {
  51. text: 'Debug',
  52. items: [
  53. { text: 'Devtools', link: '/debug/devtools' },
  54. ],
  55. },
  56. {
  57. text: 'Examples',
  58. collapsed: true,
  59. items: [
  60. { text: 'Orbit Controls', link: '/examples/orbit-controls' },
  61. { text: 'Basic Animations', link: '/examples/basic-animations' },
  62. { text: 'Groups', link: '/examples/groups' },
  63. { text: 'Load Textures', link: '/examples/load-textures' },
  64. { text: 'Load Models', link: '/examples/load-models' },
  65. { text: 'Load Text', link: '/examples/text-3d' },
  66. { text: 'Lights & Shadows', link: '/examples/lights-shadows' },
  67. { text: 'Shaders', link: '/examples/shaders' },
  68. ],
  69. },
  70. {
  71. text: 'Directives',
  72. collapsed: true,
  73. items: [
  74. { text: 'v-log', link: '/directives/v-log' },
  75. { text: 'v-light-helper', link: '/directives/v-light-helper' },
  76. { text: 'v-always-look-at', link: '/directives/v-always-look-at' },
  77. { text: 'v-distance-to', link: '/directives/v-distance-to' },
  78. ],
  79. },
  80. {
  81. text: 'Ecosystem',
  82. items: [
  83. {
  84. text: 'Cientos 💛',
  85. link: 'https://cientos.tresjs.org/',
  86. },
  87. {
  88. text: 'Nuxt module',
  89. link: 'https://github.com/Tresjs/nuxt',
  90. },
  91. {
  92. text: 'TresLeches 🍰',
  93. link: 'https://tresleches.tresjs.org/',
  94. },
  95. {
  96. text: 'Post-processing (Soon)',
  97. },
  98. ],
  99. },
  100. ],
  101. nav: [
  102. { text: 'Guide', link: '/guide/' },
  103. { text: 'API', link: '/api/tres-canvas' },
  104. /* { text: 'API', link: '/api/' },
  105. { text: 'Config', link: '/config/' }, */
  106. { text: 'Resources',
  107. items: [
  108. { text: 'Team', link: '/team' },
  109. { text: 'Releases', link: 'https://github.com/Tresjs/tres/releases' },
  110. {
  111. text: 'Playground',
  112. link: 'https://playground.tresjs.org/',
  113. },
  114. {
  115. text: 'Github',
  116. link: 'https://github.com/Tresjs/tres/',
  117. },
  118. {
  119. text: 'Issues',
  120. link: 'https://github.com/Tresjs/tres/issues',
  121. },
  122. {
  123. text: 'Ecosystem',
  124. items: [
  125. {
  126. text: 'Cientos 💛',
  127. link: 'https://cientos.tresjs.org/',
  128. },
  129. {
  130. text: 'Nuxt module',
  131. link: 'https://github.com/Tresjs/nuxt',
  132. },
  133. {
  134. text: 'TresLeches 🍰',
  135. link: 'https://tresleches.tresjs.org/',
  136. },
  137. ],
  138. },
  139. ],
  140. },
  141. ],
  142. },
  143. }