mirror of
https://github.com/google/blockly.git
synced 2026-04-29 00:20:11 +02:00
chore(docs): set Docusaurus base_url in env var
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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',
|
||||
|
||||
Reference in New Issue
Block a user