|
| 1 | +import { defineConfig } from 'vitepress' |
| 2 | + |
| 3 | +// https://vitepress.dev/reference/site-config |
| 4 | +export default defineConfig({ |
| 5 | + base: "/VTK-wasm", |
| 6 | + title: "VTK.wasm", |
| 7 | + description: "Guides and documentation around VTK.wasm", |
| 8 | + lastUpdated: true, |
| 9 | + head: [ |
| 10 | + ['link', { rel: "apple-touch-icon", sizes: "196x196", href: "/VTK-wasm/logos/favicon-196x196.png"}], |
| 11 | + ['link', { rel: "icon", type: "image/png", sizes: "32x32", href: "/VTK-wasm/logos/favicon-32x32.png"}], |
| 12 | + ['link', { rel: "icon", type: "image/png", sizes: "16x16", href: "/VTK-wasm/logos/favicon-16x16.png"}], |
| 13 | + [ |
| 14 | + 'script', |
| 15 | + { async: '', src: 'https://www.googletagmanager.com/gtag/js?id=G-LLSX9WG6YK' } |
| 16 | + ], |
| 17 | + [ |
| 18 | + 'script', |
| 19 | + {}, |
| 20 | + `window.dataLayer = window.dataLayer || []; |
| 21 | + function gtag(){dataLayer.push(arguments);} |
| 22 | + gtag('js', new Date()); |
| 23 | + gtag('config', 'G-LLSX9WG6YK');` |
| 24 | + ], |
| 25 | + ], |
| 26 | + themeConfig: { |
| 27 | + // https://vitepress.dev/reference/default-theme-config |
| 28 | + nav: [ |
| 29 | + { text: 'Home', link: '/' }, |
| 30 | + { text: 'Guides', link: '/guide/' }, |
| 31 | + { text: 'Use Cases', link: '/usecase/' }, |
| 32 | + { |
| 33 | + text: 'Resources', |
| 34 | + items: [ |
| 35 | + { text: 'Documentation', link: 'https://docs.paraview.org/en/latest/Catalyst/index.html' }, |
| 36 | + { text: 'Blogs', link: 'https://www.kitware.com/blog/' }, |
| 37 | + { text: 'Discussions', link: 'https://discourse.paraview.org/c/in-situ-support' }, |
| 38 | + { text: 'Issue Tracker', link: 'https://gitlab.kitware.com/groups/paraview/-/issues' }, |
| 39 | + { text: 'Webinars', link: 'https://www.kitware.com/webinars/' }, |
| 40 | + { text: 'Services', link: 'https://www.kitware.com/support' }, |
| 41 | + ] |
| 42 | + } |
| 43 | + ], |
| 44 | + |
| 45 | + sidebar: { |
| 46 | + '/guide/': [ |
| 47 | + { |
| 48 | + text: 'Introduction', |
| 49 | + items: [ |
| 50 | + { text: 'Getting started', link: '/guide/index' } |
| 51 | + ] |
| 52 | + }, |
| 53 | + { |
| 54 | + text: 'For C++ developers', |
| 55 | + items: [ |
| 56 | + { text: 'Getting started', link: '/guide/cpp/index' }, |
| 57 | + { text: 'Tools', link: '/guide/cpp/tools' }, |
| 58 | + { text: 'Building an application', link: '/guide/cpp/app' }, |
| 59 | + ] |
| 60 | + }, |
| 61 | + { |
| 62 | + text: 'For JavaScript developers', |
| 63 | + items: [ |
| 64 | + { text: 'Getting started', link: '/guide/js/index' }, |
| 65 | + { text: 'Built-in WASM library', link: '/guide/js/lib' }, |
| 66 | + { text: 'Building an application', link: '/guide/js/app' }, |
| 67 | + ] |
| 68 | + }, |
| 69 | + { |
| 70 | + text: 'For trame users', |
| 71 | + items: [ |
| 72 | + { text: 'Getting started', link: '/guide/trame/index' }, |
| 73 | + { text: 'Concepts', link: '/guide/trame/concepts' }, |
| 74 | + { text: 'How to use it', link: '/guide/trame/usage' }, |
| 75 | + ] |
| 76 | + }, |
| 77 | + ], |
| 78 | + '/usecase/': [ |
| 79 | + { text: 'Examples', link: '/usecase/index' }, |
| 80 | + ], |
| 81 | + }, |
| 82 | + |
| 83 | + socialLinks: [ |
| 84 | + { icon: 'github', link: 'https://github.com/vuejs/vitepress' } |
| 85 | + ] |
| 86 | + } |
| 87 | +}) |
0 commit comments