|
| 1 | +import { defineConfig } from 'vitepress' |
| 2 | + |
| 3 | +const year = new Date().getFullYear() |
| 4 | + |
| 5 | +export default defineConfig({ |
| 6 | + title: "Duck Dev Docs", |
| 7 | + description: "Official documentation for Duck Dev", |
| 8 | + lastUpdated: true, |
| 9 | + cleanUrls: true, |
| 10 | + head: [ |
| 11 | + [ |
| 12 | + 'link', |
| 13 | + { |
| 14 | + rel: 'icon', |
| 15 | + href: '/icon.png', |
| 16 | + }, |
| 17 | + ] |
| 18 | + ], |
| 19 | + themeConfig: { |
| 20 | + logo: '/icon.png', |
| 21 | + nav: [ |
| 22 | + { text: 'Home', link: '/' }, |
| 23 | + { text: 'Support', link: 'https://duckdev.com/contact/' }, |
| 24 | + ], |
| 25 | + |
| 26 | + sidebar: [ |
| 27 | + { |
| 28 | + text: 'General', |
| 29 | + items: [ |
| 30 | + { text: 'Getting Help', link: '/general/getting-help' }, |
| 31 | + { text: 'Installing a plugin', link: '/general/installing-plugin' }, |
| 32 | + { text: 'Updating a plugin', link: '/general/updating-plugin' } |
| 33 | + ] |
| 34 | + }, |
| 35 | + { |
| 36 | + text: 'Loggedin', |
| 37 | + items: [ |
| 38 | + { text: 'General Settings', link: '/loggedin/general-settings' }, |
| 39 | + { text: 'Manage Sessions', link: '/loggedin/manage-sessions' }, |
| 40 | + { text: 'Installing an Add-on', link: '/loggedin/installing-add-on' }, |
| 41 | + { text: 'Managing Licenses', link: '/loggedin/managing-licenses' }, |
| 42 | + { text: 'Developer Docs', link: '/loggedin/developer-docs' }, |
| 43 | + { |
| 44 | + text: 'Addons', |
| 45 | + base: '/loggedin/addons', |
| 46 | + items: [ |
| 47 | + { text: 'Realtime Logout', link: '/realtime-logout' }, |
| 48 | + { text: 'Limit Per User', link: '/limit-per-user' }, |
| 49 | + ] |
| 50 | + } |
| 51 | + ] |
| 52 | + }, |
| 53 | + { |
| 54 | + text: '404 to 301', |
| 55 | + items: [ |
| 56 | + { text: 'Settings', link: '/404-to-301/settings' }, |
| 57 | + { text: 'Translation', link: '/404-to-301/translating' }, |
| 58 | + ] |
| 59 | + }, |
| 60 | + { |
| 61 | + text: 'Lazy Load for Comments', |
| 62 | + items: [ |
| 63 | + { text: 'Settings', link: '/lazy-load-for-comments/settings' }, |
| 64 | + ] |
| 65 | + }, |
| 66 | + { |
| 67 | + text: 'About Duck Dev', |
| 68 | + link: '/about', |
| 69 | + }, |
| 70 | + ], |
| 71 | + |
| 72 | + socialLinks: [ |
| 73 | + { icon: 'github', link: 'https://github.com/duckdev' }, |
| 74 | + { icon: 'twitter', link: 'https://x.com/duckdev' }, |
| 75 | + { icon: 'facebook', link: 'https://facebook.com/duckdev' }, |
| 76 | + ], |
| 77 | + |
| 78 | + editLink: { |
| 79 | + pattern: 'https://github.com/duckdev/docs/edit/docs/docs/:path', |
| 80 | + text: 'Edit this page on GitHub', |
| 81 | + }, |
| 82 | + |
| 83 | + search: { |
| 84 | + provider: 'local', |
| 85 | + }, |
| 86 | + |
| 87 | + footer: { |
| 88 | + copyright: `Copyright © ${year}, <a href="/about/">Duck Dev LLP</a>.`, |
| 89 | + }, |
| 90 | + } |
| 91 | +}) |
0 commit comments