|
| 1 | +import { defineConfig } from 'vitepress'; |
| 2 | + |
| 3 | +export default defineConfig({ |
| 4 | + title: 'CodeTweak Docs', |
| 5 | + description: 'Simple docs for using CodeTweak', |
| 6 | + lang: 'en-US', |
| 7 | + base: '/CodeTweak/', |
| 8 | + lastUpdated: true, |
| 9 | + cleanUrls: true, |
| 10 | + themeConfig: { |
| 11 | + logo: '/assets/icons/icon32.png', |
| 12 | + nav: [ |
| 13 | + { text: 'Guide', link: '/guide/getting-started' }, |
| 14 | + { text: 'API', link: '/reference/gm-apis' }, |
| 15 | + { text: 'Troubleshooting', link: '/troubleshooting/common-issues' } |
| 16 | + ], |
| 17 | + sidebar: [ |
| 18 | + { |
| 19 | + text: 'Guide', |
| 20 | + items: [ |
| 21 | + { text: 'Getting Started', link: '/guide/getting-started' }, |
| 22 | + { text: 'Install CodeTweak', link: '/guide/installation' }, |
| 23 | + { text: 'Use the Editor', link: '/guide/editor' }, |
| 24 | + { text: 'Manage Scripts', link: '/guide/dashboard' }, |
| 25 | + { text: 'Install From Greasy Fork', link: '/guide/greasyfork' }, |
| 26 | + { text: 'Privacy and Permissions', link: '/guide/privacy' } |
| 27 | + ] |
| 28 | + }, |
| 29 | + { |
| 30 | + text: 'Reference', |
| 31 | + items: [ |
| 32 | + { text: 'GM APIs', link: '/reference/gm-apis' }, |
| 33 | + { text: 'Run Timing', link: '/reference/run-timing' }, |
| 34 | + { text: 'Match Patterns', link: '/reference/match-patterns' } |
| 35 | + ] |
| 36 | + }, |
| 37 | + { |
| 38 | + text: 'Troubleshooting', |
| 39 | + items: [ |
| 40 | + { text: 'Common Issues', link: '/troubleshooting/common-issues' }, |
| 41 | + { text: 'Strict Sites', link: '/troubleshooting/strict-sites' } |
| 42 | + ] |
| 43 | + } |
| 44 | + ], |
| 45 | + socialLinks: [ |
| 46 | + { icon: 'github', link: 'https://github.com/MrBlankCoding/CodeTweak' } |
| 47 | + ], |
| 48 | + search: { |
| 49 | + provider: 'local' |
| 50 | + }, |
| 51 | + footer: { |
| 52 | + message: 'MIT License', |
| 53 | + copyright: 'Copyright © CodeTweak Contributors' |
| 54 | + } |
| 55 | + }, |
| 56 | + srcExclude: ['README.md'] |
| 57 | +}); |
0 commit comments