Skip to content

Commit 9cab436

Browse files
authored
Merge pull request #1354 from ModelEngine-Group/wmc/refactor_0902
2 parents feb145e + a5207af commit 9cab436

File tree

2 files changed

+8
-4
lines changed

2 files changed

+8
-4
lines changed

.github/workflows/deploy-docs.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,8 +51,10 @@ jobs:
5151
- name: Install dependencies
5252
run: npm ci
5353

54-
- name: Build with VitePress (with base /nexent/)
55-
run: npm exec vitepress build docs --base /nexent/
54+
- name: Build with VitePress
55+
run: npm run docs:build
56+
env:
57+
GITHUB_PAGES: true
5658

5759
- name: Upload artifact
5860
uses: actions/upload-pages-artifact@v3

doc/docs/.vitepress/config.mts

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,14 @@
22
import { defineConfig } from "vitepress";
33

44
export default defineConfig({
5+
// Set base path for GitHub Pages deployment
6+
base: (globalThis as any).process?.env?.GITHUB_PAGES ? '/nexent/' : '/',
57
title: "Nexent Doc",
68
description:
79
"A zero-code platform for auto-generating agents no orchestration, no complex drag-and-drop required.",
810

911
// Add favicon to head
10-
head: [["link", { rel: "icon", href: "/doc/favicon.ico" }]],
12+
head: [["link", { rel: "icon", href: (globalThis as any).process?.env?.GITHUB_PAGES ? "/nexent/favicon.ico" : "/doc/favicon.ico" }]],
1113

1214
// Ignore localhost links as they are meant for local deployment access
1315
ignoreDeadLinks: [
@@ -355,7 +357,7 @@ export default defineConfig({
355357
},
356358

357359
themeConfig: {
358-
logo: "/Nexent Logo.jpg",
360+
logo: (globalThis as any).process?.env?.GITHUB_PAGES ? "/nexent/Nexent Logo.jpg" : "/Nexent Logo.jpg",
359361
socialLinks: [
360362
{ icon: "github", link: "https://github.com/ModelEngine-Group/nexent" },
361363
],

0 commit comments

Comments
 (0)