|
| 1 | +import { defineConfig } from 'vitepress' |
| 2 | + |
| 3 | +export default defineConfig({ |
| 4 | + base: '/Clockworks/', |
| 5 | + title: 'Clockworks', |
| 6 | + description: 'Deterministic, fully controllable time for distributed-system simulations and testing.', |
| 7 | + |
| 8 | + head: [ |
| 9 | + ['meta', { property: 'og:title', content: 'Clockworks' }], |
| 10 | + ['meta', { property: 'og:description', content: 'Deterministic, fully controllable time for distributed-system simulations and testing.' }], |
| 11 | + ['meta', { property: 'og:type', content: 'website' }], |
| 12 | + ], |
| 13 | + |
| 14 | + lastUpdated: true, |
| 15 | + |
| 16 | + markdown: { |
| 17 | + theme: { light: 'github-light', dark: 'github-dark' }, |
| 18 | + lineNumbers: true, |
| 19 | + }, |
| 20 | + |
| 21 | + themeConfig: { |
| 22 | + // Absolute paths are resolved relative to `base` |
| 23 | + logo: '/logo.png', |
| 24 | + siteTitle: 'Clockworks', |
| 25 | + |
| 26 | + nav: [ |
| 27 | + { text: 'Guide', link: '/guide/' }, |
| 28 | + { text: 'Concepts', link: '/concepts/why-clockworks' }, |
| 29 | + { |
| 30 | + text: 'API Reference', |
| 31 | + link: 'https://www.nuget.org/packages/Clockworks', |
| 32 | + target: '_blank', |
| 33 | + }, |
| 34 | + { text: 'Changelog', link: '/changelog' }, |
| 35 | + { |
| 36 | + text: 'v1.3.0', |
| 37 | + link: 'https://github.com/dexcompiler/Clockworks/releases', |
| 38 | + target: '_blank', |
| 39 | + }, |
| 40 | + ], |
| 41 | + |
| 42 | + sidebar: { |
| 43 | + '/guide/': [ |
| 44 | + { |
| 45 | + text: 'Guide', |
| 46 | + items: [ |
| 47 | + { text: 'Getting Started', link: '/guide/' }, |
| 48 | + { text: 'Installation', link: '/guide/#installation' }, |
| 49 | + { text: 'Simulated Time', link: '/guide/simulated-time' }, |
| 50 | + { text: 'Timeouts', link: '/guide/timeouts' }, |
| 51 | + { text: 'UUIDv7 Generation', link: '/guide/uuidv7' }, |
| 52 | + { text: 'Hybrid Logical Clock', link: '/guide/hlc' }, |
| 53 | + { text: 'Vector Clock', link: '/guide/vector-clock' }, |
| 54 | + { text: 'Instrumentation', link: '/guide/instrumentation' }, |
| 55 | + ], |
| 56 | + }, |
| 57 | + ], |
| 58 | + '/concepts/': [ |
| 59 | + { |
| 60 | + text: 'Concepts', |
| 61 | + items: [ |
| 62 | + { text: 'Why Clockworks?', link: '/concepts/why-clockworks' }, |
| 63 | + { text: 'HLC vs Vector Clocks', link: '/concepts/hlc-vs-vector' }, |
| 64 | + { text: 'Determinism Model', link: '/concepts/determinism' }, |
| 65 | + { text: 'Security Considerations', link: '/concepts/security' }, |
| 66 | + ], |
| 67 | + }, |
| 68 | + ], |
| 69 | + }, |
| 70 | + |
| 71 | + socialLinks: [ |
| 72 | + { icon: 'github', link: 'https://github.com/dexcompiler/Clockworks' }, |
| 73 | + ], |
| 74 | + |
| 75 | + footer: { |
| 76 | + message: 'Released under the MIT License.', |
| 77 | + copyright: 'Copyright © 2024–present Dexter Ajoku (CloudyBox)', |
| 78 | + }, |
| 79 | + |
| 80 | + search: { |
| 81 | + provider: 'local', |
| 82 | + }, |
| 83 | + |
| 84 | + editLink: { |
| 85 | + pattern: 'https://github.com/dexcompiler/Clockworks/edit/main/docs/:path', |
| 86 | + text: 'Edit this page on GitHub', |
| 87 | + }, |
| 88 | + }, |
| 89 | +}) |
0 commit comments