Skip to content

Commit fd75fe8

Browse files
Fix GitHub Pages base path (env-driven, cluster stays at /)
1 parent 80cd084 commit fd75fe8

2 files changed

Lines changed: 3 additions & 0 deletions

File tree

.github/workflows/deploy.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,8 @@ jobs:
2525
cache: npm
2626
- run: npm ci
2727
- run: npm run docs:build
28+
env:
29+
VITEPRESS_BASE: /nst-cluster-docs/
2830
- uses: actions/upload-pages-artifact@v3
2931
with:
3032
path: .vitepress/dist

.vitepress/config.mjs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ import { defineConfig } from 'vitepress'
33
export default defineConfig({
44
title: 'NST Compute Cluster',
55
description: 'Documentation for the Newton School of Technology Compute Cluster',
6+
base: process.env.VITEPRESS_BASE || '/',
67

78
themeConfig: {
89
nav: [

0 commit comments

Comments
 (0)