|
| 1 | +import { defineConfig } from "vitepress"; |
| 2 | + |
| 3 | +const repoName = "xcode-canvas-web"; |
| 4 | +const githubUrl = `https://github.com/DjDeveloperr/${repoName}`; |
| 5 | + |
| 6 | +export default defineConfig({ |
| 7 | + title: "SimDeck", |
| 8 | + description: |
| 9 | + "A local-first iOS Simulator control plane with a browser UI, REST API, and WebTransport video.", |
| 10 | + lang: "en-US", |
| 11 | + cleanUrls: true, |
| 12 | + lastUpdated: true, |
| 13 | + base: `/${repoName}/`, |
| 14 | + |
| 15 | + head: [ |
| 16 | + ["meta", { name: "theme-color", content: "#0a84ff" }], |
| 17 | + ["meta", { property: "og:type", content: "website" }], |
| 18 | + ["meta", { property: "og:title", content: "SimDeck" }], |
| 19 | + [ |
| 20 | + "meta", |
| 21 | + { |
| 22 | + property: "og:description", |
| 23 | + content: |
| 24 | + "A local iOS Simulator control plane with a browser UI, REST API, and WebTransport video.", |
| 25 | + }, |
| 26 | + ], |
| 27 | + [ |
| 28 | + "meta", |
| 29 | + { |
| 30 | + property: "og:url", |
| 31 | + content: `https://djdeveloperr.github.io/${repoName}/`, |
| 32 | + }, |
| 33 | + ], |
| 34 | + ], |
| 35 | + |
| 36 | + themeConfig: { |
| 37 | + siteTitle: "SimDeck", |
| 38 | + |
| 39 | + nav: [ |
| 40 | + { text: "Guide", link: "/guide/", activeMatch: "/guide/" }, |
| 41 | + { text: "CLI", link: "/cli/", activeMatch: "/cli/" }, |
| 42 | + { text: "API", link: "/api/rest", activeMatch: "/api/" }, |
| 43 | + { |
| 44 | + text: "Inspector", |
| 45 | + link: "/inspector/", |
| 46 | + activeMatch: "/inspector/", |
| 47 | + }, |
| 48 | + { |
| 49 | + text: "Extensions", |
| 50 | + link: "/extensions/vscode", |
| 51 | + activeMatch: "/extensions/", |
| 52 | + }, |
| 53 | + { |
| 54 | + text: "0.1.0", |
| 55 | + items: [ |
| 56 | + { |
| 57 | + text: "Changelog", |
| 58 | + link: `${githubUrl}/releases`, |
| 59 | + }, |
| 60 | + { |
| 61 | + text: "Contributing", |
| 62 | + link: "/contributing", |
| 63 | + }, |
| 64 | + ], |
| 65 | + }, |
| 66 | + ], |
| 67 | + |
| 68 | + sidebar: { |
| 69 | + "/guide/": [ |
| 70 | + { |
| 71 | + text: "Getting Started", |
| 72 | + items: [ |
| 73 | + { text: "Introduction", link: "/guide/" }, |
| 74 | + { text: "Installation", link: "/guide/installation" }, |
| 75 | + { text: "Quick Start", link: "/guide/quick-start" }, |
| 76 | + ], |
| 77 | + }, |
| 78 | + { |
| 79 | + text: "Concepts", |
| 80 | + items: [ |
| 81 | + { text: "Architecture", link: "/guide/architecture" }, |
| 82 | + { text: "Video Pipeline", link: "/guide/video" }, |
| 83 | + { text: "LAN Access", link: "/guide/lan-access" }, |
| 84 | + { text: "Background Service", link: "/guide/service" }, |
| 85 | + ], |
| 86 | + }, |
| 87 | + { |
| 88 | + text: "Operating SimDeck", |
| 89 | + items: [ |
| 90 | + { text: "Troubleshooting", link: "/guide/troubleshooting" }, |
| 91 | + { text: "Contributing", link: "/contributing" }, |
| 92 | + ], |
| 93 | + }, |
| 94 | + ], |
| 95 | + |
| 96 | + "/cli/": [ |
| 97 | + { |
| 98 | + text: "CLI", |
| 99 | + items: [ |
| 100 | + { text: "Overview", link: "/cli/" }, |
| 101 | + { text: "Command Reference", link: "/cli/commands" }, |
| 102 | + { text: "Flags & Options", link: "/cli/flags" }, |
| 103 | + ], |
| 104 | + }, |
| 105 | + ], |
| 106 | + |
| 107 | + "/api/": [ |
| 108 | + { |
| 109 | + text: "HTTP API", |
| 110 | + items: [ |
| 111 | + { text: "REST Endpoints", link: "/api/rest" }, |
| 112 | + { text: "Health & Metrics", link: "/api/health" }, |
| 113 | + ], |
| 114 | + }, |
| 115 | + { |
| 116 | + text: "Live Video", |
| 117 | + items: [ |
| 118 | + { text: "WebTransport", link: "/api/webtransport" }, |
| 119 | + { text: "Packet Format", link: "/api/packet-format" }, |
| 120 | + ], |
| 121 | + }, |
| 122 | + { |
| 123 | + text: "Inspectors", |
| 124 | + items: [ |
| 125 | + { text: "Inspector Protocol", link: "/api/inspector-protocol" }, |
| 126 | + ], |
| 127 | + }, |
| 128 | + ], |
| 129 | + |
| 130 | + "/inspector/": [ |
| 131 | + { |
| 132 | + text: "Inspector", |
| 133 | + items: [ |
| 134 | + { text: "Overview", link: "/inspector/" }, |
| 135 | + { text: "Accessibility (AXe)", link: "/inspector/accessibility" }, |
| 136 | + { |
| 137 | + text: "Swift In-App Agent", |
| 138 | + link: "/inspector/swift", |
| 139 | + }, |
| 140 | + { |
| 141 | + text: "NativeScript Runtime", |
| 142 | + link: "/inspector/nativescript", |
| 143 | + }, |
| 144 | + ], |
| 145 | + }, |
| 146 | + ], |
| 147 | + |
| 148 | + "/extensions/": [ |
| 149 | + { |
| 150 | + text: "Extensions", |
| 151 | + items: [ |
| 152 | + { text: "VS Code", link: "/extensions/vscode" }, |
| 153 | + { text: "Browser Client", link: "/extensions/browser-client" }, |
| 154 | + ], |
| 155 | + }, |
| 156 | + ], |
| 157 | + }, |
| 158 | + |
| 159 | + socialLinks: [{ icon: "github", link: githubUrl }], |
| 160 | + |
| 161 | + editLink: { |
| 162 | + pattern: `${githubUrl}/edit/main/docs/:path`, |
| 163 | + text: "Edit this page on GitHub", |
| 164 | + }, |
| 165 | + |
| 166 | + search: { |
| 167 | + provider: "local", |
| 168 | + }, |
| 169 | + |
| 170 | + footer: { |
| 171 | + message: "Released under the Apache-2.0 License.", |
| 172 | + copyright: `Copyright © 2026 SimDeck contributors.`, |
| 173 | + }, |
| 174 | + |
| 175 | + outline: { |
| 176 | + level: [2, 3], |
| 177 | + }, |
| 178 | + }, |
| 179 | +}); |
0 commit comments