Skip to content

Commit 478b98b

Browse files
Github Page setup #5
1 parent e3b7780 commit 478b98b

File tree

2 files changed

+16
-21
lines changed

2 files changed

+16
-21
lines changed

.github/workflows/deploy.yml

Lines changed: 8 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -31,22 +31,20 @@ jobs:
3131
run: npm ci
3232

3333
- name: Build VitePress docs
34-
run: npm run docs:build
34+
run: npx vitepress build docs --base /docs/
3535

36-
- name: Merge static root into VitePress dist
36+
- name: Compose site
3737
run: |
38-
OUT=docs/.vitepress/dist
39-
# s’assure que le dossier existe (VitePress le crée, mais au cas où)
40-
mkdir -p "$OUT"
41-
# copie le site statique racine dans la sortie VitePress
42-
cp -r index.html assets "$OUT"/
43-
# évite l’interférence Jekyll sur Pages
44-
touch "$OUT"/.nojekyll
38+
mkdir -p dist
39+
cp -r index.html assets dist/
40+
# custom domain + nojekyll
41+
echo "openhvx.org" > dist/CNAME || true
42+
touch dist/.nojekyll
4543
4644
- name: Upload artifact
4745
uses: actions/upload-pages-artifact@v3
4846
with:
49-
path: docs/.vitepress/dist
47+
path: dist
5048

5149
deploy:
5250
environment:

docs/.vitepress/config.ts

Lines changed: 8 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,33 +1,32 @@
11
import { defineConfig } from "vitepress";
22

3-
// https://vitepress.dev/reference/site-config
43
export default defineConfig({
54
lang: "en-US",
65
title: "OpenHVX Docs",
76
description:
87
"Open-source IaaS for Hyper-V — multi-tenant, API-first, agent-based automation.",
98

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",
1114

1215
themeConfig: {
13-
logo: "/assets/logo.svg",
16+
logo: "/assets/logo.svg", // uses the root site's /assets (you copy it to dist/)
1417
siteTitle: "OpenHVX",
1518
outline: [2, 3],
1619
lastUpdated: true,
17-
search: {
18-
provider: "local",
19-
},
20+
search: { provider: "local" },
2021

21-
// --- Navbar ---
2222
nav: [
23-
{ text: "Home", link: "/" },
23+
{ text: "Home", link: "/" }, // goes to the landing page at site root
2424
{ text: "Architecture", link: "/architecture" },
2525
{ text: "API", link: "/api" },
2626
{ text: "Agents", link: "/agents" },
2727
{ text: "GitHub", link: "https://github.com/openhvx" },
2828
],
2929

30-
// --- Sidebar ---
3130
sidebar: [
3231
{
3332
text: "Getting Started",
@@ -70,13 +69,11 @@ export default defineConfig({
7069
},
7170
],
7271

73-
// --- Social Links ---
7472
socialLinks: [
7573
{ icon: "github", link: "https://github.com/openhvx" },
7674
{ icon: "twitter", link: "https://x.com/OpenHVX" },
7775
],
7876

79-
// --- Footer ---
8077
footer: {
8178
message: "Released under the Apache-2.0 License.",
8279
copyright: "© 2025 OpenHVX. Built with ❤️ by the community.",

0 commit comments

Comments
 (0)