chore(docs): set Docusaurus base_url in env var

This commit is contained in:
Greg Annandale
2026-04-03 11:18:29 +01:00
parent cca97ed298
commit b3fc849010
2 changed files with 6 additions and 1 deletions
+5
View File
@@ -60,6 +60,11 @@ jobs:
- name: Build the Docusaurus site
working-directory: ./packages/docs
run: npm run build
env:
# when deploying to a subdirectory of the <org>.github.io domain,
# we need to set the BASE_URL to the name of the repo, for a custom
# domain this could be /docs/
BASE_URL: /blockly/
- name: Setup GitHub Pages
uses: actions/configure-pages@v5
+1 -1
View File
@@ -14,7 +14,7 @@ const config = {
},
url: 'https://raspberrypifoundation.github.io',
baseUrl: '/docs/',
baseUrl: process.env.BASE_URL || '/docs/',
// GitHub pages deployment config
organizationName: 'RaspberryPiFoundation',