Skip to content

Commit 2e851d5

Browse files
committed
docs(website): fix website build
1 parent b9aa3f6 commit 2e851d5

3 files changed

Lines changed: 3 additions & 2 deletions

File tree

.github/workflows/deploy-website.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@ jobs:
3232
- name: Build documentation artifacts
3333
env:
3434
GTAG: ${{ secrets.GTAG }}
35+
BASE_PATH: '/jsar-runtime/'
3536
run: |
3637
npm run build:website
3738

docs/.vitepress/config.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import { buildStart } from './build-hooks.mjs'
44
import taskCheckbox from 'markdown-it-task-checkbox'
55

66
export default defineConfig({
7-
base: '/jsar-runtime/',
7+
base: process.env.BASE_PATH || '/',
88
vite: {
99
resolve: {
1010
alias: [

docs/.vitepress/theme/components/GalleryPage.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,7 @@ export default {
134134
try {
135135
this.loading = true;
136136
// Load the fixtures data JSON from public directory with correct base path
137-
const response = await fetch('/jsar-runtime/fixtures-summary.json');
137+
const response = await fetch('fixtures-summary.json');
138138
if (!response.ok) {
139139
throw new Error(`HTTP ${response.status}: ${response.statusText}`);
140140
}

0 commit comments

Comments
 (0)