Browse Source

docs: added version release notes to nav

Alvaro 2 years ago
parent
commit
3effa30f97
1 changed files with 15 additions and 0 deletions
  1. 15 0
      docs/.vitepress/config.ts

+ 15 - 0
docs/.vitepress/config.ts

@@ -1,4 +1,5 @@
 import { defineConfig } from 'vitepress'
+import { version } from '../../package.json'
 
 export default defineConfig({
   title: 'TresJS',
@@ -28,6 +29,20 @@ export default defineConfig({
         items: [{ text: 'Extending', link: '/advanced/extending' }],
       },
     ],
+    nav: [
+      { text: 'Guide', link: '/guide/' },
+      { text: 'API', link: '/api/' },
+      { text: 'Config', link: '/config/' },
+      {
+        text: `v${version}`,
+        items: [
+          {
+            text: 'Release Notes ',
+            link: 'https://github.com/Tresjs/tres/releases',
+          },
+        ],
+      },
+    ],
     socialLinks: [
       { icon: 'github', link: 'https://github.com/tresjs/tres' },
       { icon: 'twitter', link: 'https://twitter.com/alvarosabu' },