From 162ee3eab687b58ee85638b7dfd3deabbc1ef932 Mon Sep 17 00:00:00 2001 From: Mike Monteith Date: Tue, 16 Apr 2024 10:52:22 +0100 Subject: [PATCH] Fix asset URLs in local development --- .github/workflows/docs.yaml | 2 +- docs/_templates/layout.njk | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/docs.yaml b/.github/workflows/docs.yaml index 11c7e1c..89f6fd9 100644 --- a/.github/workflows/docs.yaml +++ b/.github/workflows/docs.yaml @@ -14,7 +14,7 @@ jobs: with: node-version: '20' - run: npm ci - - run: BASE_URL="/nhsapp-frontend" npm run build:docs + - run: BASE_URL="/nhsapp-frontend/" npm run build:docs - uses: actions/upload-pages-artifact@v3 with: path: 'dist/docs' diff --git a/docs/_templates/layout.njk b/docs/_templates/layout.njk index 8ed53f1..8eb1d1d 100644 --- a/docs/_templates/layout.njk +++ b/docs/_templates/layout.njk @@ -9,8 +9,8 @@ - - + + {% block header %}