|
| 1 | +import { defineConfig } from 'vitepress' |
| 2 | +import pkg from '../package.json' |
| 3 | + |
| 4 | +// https://vitepress.dev/reference/site-config |
| 5 | +export default defineConfig({ |
| 6 | + title: "Laravel Image Transform URL", |
| 7 | + description: "Easy, URL-based image transformations for Laravel inspired by Cloudflare Images.", |
| 8 | + srcDir: './pages', |
| 9 | + markdown: { |
| 10 | + theme: { |
| 11 | + light: 'github-light', |
| 12 | + dark: 'github-dark' |
| 13 | + } |
| 14 | + }, |
| 15 | + themeConfig: { |
| 16 | + // https://vitepress.dev/reference/default-theme-config |
| 17 | + nav: [ |
| 18 | + { text: 'Home', link: '/' }, |
| 19 | + { |
| 20 | + text: pkg.version, |
| 21 | + items: [ |
| 22 | + { |
| 23 | + text: 'Changelog', |
| 24 | + link: 'https://github.com/ace-of-aces/laravel-image-transform-url/blob/main/CHANGELOG.md' |
| 25 | + }, |
| 26 | + { |
| 27 | + text: 'Contributing', |
| 28 | + link: 'https://github.com/ace-of-aces/laravel-image-transform-url/blob/main/CONTRIBUTING.md' |
| 29 | + } |
| 30 | + ] |
| 31 | + } |
| 32 | + ], |
| 33 | + |
| 34 | + sidebar: [ |
| 35 | + { |
| 36 | + text: 'Basics', |
| 37 | + items: [ |
| 38 | + { text: 'Installation', link: '/installation' }, |
| 39 | + { text: 'Setup', link: '/setup' }, |
| 40 | + { text: 'Getting Started', link: '/getting-started' }, |
| 41 | + ] |
| 42 | + }, |
| 43 | + { |
| 44 | + text: 'Options', |
| 45 | + items: [ |
| 46 | + { text: 'Configuring Options', link: '/configuring-options' }, |
| 47 | + { text: 'Available Options', link: '/available-options' }, |
| 48 | + ] |
| 49 | + }, |
| 50 | + { |
| 51 | + text: 'Advanced', |
| 52 | + items: [ |
| 53 | + { text: 'Image Caching', link: '/image-caching' }, |
| 54 | + { text: 'Rate Limiting', link: '/rate-limiting' }, |
| 55 | + { text: 'CDN Usage', link: '/cdn-usage' }, |
| 56 | + { text: 'Error Handling', link: '/error-handling' }, |
| 57 | + ] |
| 58 | + } |
| 59 | + ], |
| 60 | + |
| 61 | + socialLinks: [ |
| 62 | + { icon: 'github', link: 'https://github.com/ace-of-aces/laravel-image-transform-url' }, |
| 63 | + ], |
| 64 | + |
| 65 | + footer: { |
| 66 | + message: 'Released under the MIT License.', |
| 67 | + copyright: 'Copyright © 2025-present Julian Schramm' |
| 68 | + }, |
| 69 | + |
| 70 | + search: { |
| 71 | + provider: 'local', |
| 72 | + } |
| 73 | + } |
| 74 | +}) |
0 commit comments