|
| 1 | +import { defineConfig } from 'vitepress' |
| 2 | +import llmstxt from 'vitepress-plugin-llms' |
| 3 | + |
| 4 | +export default defineConfig({ |
| 5 | + title: 'Foundatio', |
| 6 | + description: 'Pluggable foundation blocks for building loosely coupled distributed apps', |
| 7 | + base: '/', |
| 8 | + ignoreDeadLinks: true, |
| 9 | + vite: { |
| 10 | + plugins: [ |
| 11 | + llmstxt({ |
| 12 | + title: 'Foundatio Documentation', |
| 13 | + ignoreFiles: ['node_modules/**', '.vitepress/**'] |
| 14 | + }) |
| 15 | + ] |
| 16 | + }, |
| 17 | + mermaid: { |
| 18 | + // Mermaid configuration |
| 19 | + }, |
| 20 | + head: [ |
| 21 | + ['link', { rel: 'icon', href: 'https://raw.githubusercontent.com/FoundatioFx/Foundatio/main/media/foundatio-icon.png', type: 'image/png' }], |
| 22 | + ['meta', { name: 'theme-color', content: '#3c8772' }] |
| 23 | + ], |
| 24 | + themeConfig: { |
| 25 | + logo: { |
| 26 | + light: 'https://raw.githubusercontent.com/FoundatioFx/Foundatio/master/media/foundatio.svg', |
| 27 | + dark: 'https://raw.githubusercontent.com/FoundatioFx/Foundatio/master/media/foundatio-dark-bg.svg' |
| 28 | + }, |
| 29 | + siteTitle: 'Foundatio', |
| 30 | + nav: [ |
| 31 | + { text: 'Guide', link: '/guide/what-is-foundatio' }, |
| 32 | + { text: 'GitHub', link: 'https://github.com/FoundatioFx/Foundatio' } |
| 33 | + ], |
| 34 | + sidebar: { |
| 35 | + '/guide/': [ |
| 36 | + { |
| 37 | + text: 'Introduction', |
| 38 | + items: [ |
| 39 | + { text: 'What is Foundatio?', link: '/guide/what-is-foundatio' }, |
| 40 | + { text: 'Getting Started', link: '/guide/getting-started' }, |
| 41 | + { text: 'Why Choose Foundatio?', link: '/guide/why-foundatio' } |
| 42 | + ] |
| 43 | + }, |
| 44 | + { |
| 45 | + text: 'Core Abstractions', |
| 46 | + items: [ |
| 47 | + { text: 'Caching', link: '/guide/caching' }, |
| 48 | + { text: 'Queues', link: '/guide/queues' }, |
| 49 | + { text: 'Locks', link: '/guide/locks' }, |
| 50 | + { text: 'Messaging', link: '/guide/messaging' }, |
| 51 | + { text: 'File Storage', link: '/guide/storage' }, |
| 52 | + { text: 'Jobs', link: '/guide/jobs' } |
| 53 | + ] |
| 54 | + }, |
| 55 | + { |
| 56 | + text: 'Advanced Topics', |
| 57 | + items: [ |
| 58 | + { text: 'Resilience', link: '/guide/resilience' }, |
| 59 | + { text: 'Dependency Injection', link: '/guide/dependency-injection' }, |
| 60 | + { text: 'Configuration', link: '/guide/configuration' } |
| 61 | + ] |
| 62 | + }, |
| 63 | + { |
| 64 | + text: 'Implementations', |
| 65 | + items: [ |
| 66 | + { text: 'In-Memory', link: '/guide/implementations/in-memory' }, |
| 67 | + { text: 'Redis', link: '/guide/implementations/redis' }, |
| 68 | + { text: 'Azure', link: '/guide/implementations/azure' }, |
| 69 | + { text: 'AWS', link: '/guide/implementations/aws' } |
| 70 | + ] |
| 71 | + } |
| 72 | + ] |
| 73 | + }, |
| 74 | + socialLinks: [ |
| 75 | + { icon: 'github', link: 'https://github.com/FoundatioFx/Foundatio' }, |
| 76 | + { icon: 'discord', link: 'https://discord.gg/6HxgFCx' } |
| 77 | + ], |
| 78 | + footer: { |
| 79 | + message: 'Released under the Apache 2.0 License.', |
| 80 | + copyright: 'Copyright © 2025 Foundatio' |
| 81 | + }, |
| 82 | + editLink: { |
| 83 | + pattern: 'https://github.com/FoundatioFx/Foundatio/edit/main/docs/:path' |
| 84 | + }, |
| 85 | + search: { |
| 86 | + provider: 'local' |
| 87 | + } |
| 88 | + }, |
| 89 | + markdown: { |
| 90 | + lineNumbers: false, |
| 91 | + codeTransformers: [ |
| 92 | + { |
| 93 | + name: 'snippet-transformer', |
| 94 | + preprocess(code, options) { |
| 95 | + return code |
| 96 | + } |
| 97 | + } |
| 98 | + ] |
| 99 | + } |
| 100 | +}) |
0 commit comments