| 
1 | 1 | import { defineConfig } from "vitepress";  | 
2 | 2 | 
 
  | 
3 |  | -// https://vitepress.dev/reference/site-config  | 
4 | 3 | export default defineConfig({  | 
5 | 4 |   lang: "en-US",  | 
6 | 5 |   title: "OpenHVX Docs",  | 
7 | 6 |   description:  | 
8 | 7 |     "Open-source IaaS for Hyper-V — multi-tenant, API-first, agent-based automation.",  | 
9 | 8 | 
 
  | 
10 |  | -  base: "/docs/", // hébergé sous openhvx.org/docs  | 
 | 9 | +  // Docs are served from /docs/ on the site  | 
 | 10 | +  base: "/docs/",  | 
 | 11 | + | 
 | 12 | +  // Build docs directly into ../dist/docs so GitHub Pages can serve both root and /docs/.  | 
 | 13 | +  outDir: "../dist/docs",  | 
11 | 14 | 
 
  | 
12 | 15 |   themeConfig: {  | 
13 |  | -    logo: "/assets/logo.svg",  | 
 | 16 | +    logo: "/assets/logo.svg", // uses the root site's /assets (you copy it to dist/)  | 
14 | 17 |     siteTitle: "OpenHVX",  | 
15 | 18 |     outline: [2, 3],  | 
16 | 19 |     lastUpdated: true,  | 
17 |  | -    search: {  | 
18 |  | -      provider: "local",  | 
19 |  | -    },  | 
 | 20 | +    search: { provider: "local" },  | 
20 | 21 | 
 
  | 
21 |  | -    // --- Navbar ---  | 
22 | 22 |     nav: [  | 
23 |  | -      { text: "Home", link: "/" },  | 
 | 23 | +      { text: "Home", link: "/" }, // goes to the landing page at site root  | 
24 | 24 |       { text: "Architecture", link: "/architecture" },  | 
25 | 25 |       { text: "API", link: "/api" },  | 
26 | 26 |       { text: "Agents", link: "/agents" },  | 
27 | 27 |       { text: "GitHub", link: "https://github.com/openhvx" },  | 
28 | 28 |     ],  | 
29 | 29 | 
 
  | 
30 |  | -    // --- Sidebar ---  | 
31 | 30 |     sidebar: [  | 
32 | 31 |       {  | 
33 | 32 |         text: "Getting Started",  | 
@@ -70,13 +69,11 @@ export default defineConfig({  | 
70 | 69 |       },  | 
71 | 70 |     ],  | 
72 | 71 | 
 
  | 
73 |  | -    // --- Social Links ---  | 
74 | 72 |     socialLinks: [  | 
75 | 73 |       { icon: "github", link: "https://github.com/openhvx" },  | 
76 | 74 |       { icon: "twitter", link: "https://x.com/OpenHVX" },  | 
77 | 75 |     ],  | 
78 | 76 | 
 
  | 
79 |  | -    // --- Footer ---  | 
80 | 77 |     footer: {  | 
81 | 78 |       message: "Released under the Apache-2.0 License.",  | 
82 | 79 |       copyright: "© 2025 OpenHVX. Built with ❤️ by the community.",  | 
 | 
0 commit comments