We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent cca97ed commit b3fc849Copy full SHA for b3fc849
2 files changed
.github/workflows/deploy-docusaurus.yml
@@ -60,6 +60,11 @@ jobs:
60
- name: Build the Docusaurus site
61
working-directory: ./packages/docs
62
run: npm run build
63
+ env:
64
+ # when deploying to a subdirectory of the <org>.github.io domain,
65
+ # we need to set the BASE_URL to the name of the repo, for a custom
66
+ # domain this could be /docs/
67
+ BASE_URL: /blockly/
68
69
- name: Setup GitHub Pages
70
uses: actions/configure-pages@v5
packages/docs/docusaurus.config.js
@@ -14,7 +14,7 @@ const config = {
14
},
15
16
url: 'https://raspberrypifoundation.github.io',
17
- baseUrl: '/docs/',
+ baseUrl: process.env.BASE_URL || '/docs/',
18
19
// GitHub pages deployment config
20
organizationName: 'RaspberryPiFoundation',
0 commit comments