Skip to content

Commit ea74f4a

Browse files
authored
Fix docs build (probably) (#75)
* Fix docs build * Remove misplaced CNAME file
1 parent e906742 commit ea74f4a

File tree

3 files changed

+10
-12
lines changed

3 files changed

+10
-12
lines changed

.github/workflows/docs.yml

Lines changed: 8 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -24,18 +24,17 @@ jobs:
2424
steps:
2525
- name: Checkout
2626
uses: actions/checkout@v4
27-
with:
28-
fetch-depth: 0
2927
- name: Setup Node
3028
uses: actions/setup-node@v4
3129
with:
32-
node-version: 20
33-
- name: Setup Pages
30+
node-version: 22
31+
- id: setup
32+
name: Setup Pages
3433
uses: actions/configure-pages@v4
35-
- name: Install dependencies
36-
run: npm ci
37-
- name: Build with VitePress
38-
run: npm run docs:build
34+
- name: Install dependencies and build
35+
run: cd docs && npm ci && npm run docs:build
36+
env:
37+
BASE_PATH: ${{ steps.setup.outputs.base_path }}
3938
- name: Upload artifact
4039
uses: actions/upload-pages-artifact@v3
4140
with:
@@ -44,11 +43,9 @@ jobs:
4443
deploy:
4544
environment:
4645
name: github-pages
47-
url: ${{ steps.deployment.outputs.page_url }}
46+
url: ${{ steps.setup.outputs.base_url }}
4847
needs: build
4948
runs-on: ubuntu-latest
50-
name: Deploy
5149
steps:
5250
- name: Deploy to GitHub Pages
53-
id: deployment
5451
uses: actions/deploy-pages@v4

docs/.vitepress/config.mts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
import process from "node:process";
12
import { defineConfig } from "vitepress";
23

34
const title = "Inertia Django";
@@ -7,6 +8,7 @@ const image = `${site}/og_image.png`;
78

89
// https://vitepress.dev/reference/site-config
910
export default defineConfig({
11+
base: process.env.BASE_PATH,
1012
title: title,
1113
description: description,
1214

docs/CNAME

Lines changed: 0 additions & 1 deletion
This file was deleted.

0 commit comments

Comments
 (0)