Skip to content

Commit 1414275

Browse files
Fix GitHub Pages deployment: set baseUrl to actualy path (#35)
* Fix GitHub Pages deployment: set baseUrl to actualy path * Attempt to fix baseurl for local and deployment --------- Co-authored-by: M. Galib Uludag <[email protected]>
1 parent 0ecc4b7 commit 1414275

File tree

2 files changed

+8
-7
lines changed

2 files changed

+8
-7
lines changed

.github/workflows/deploy.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,8 @@ jobs:
2727
run: yarn install --frozen-lockfile
2828
- name: Build website
2929
run: yarn build
30+
env:
31+
PAGES_DEPLOY: true
3032

3133
- name: Upload Build Artifact
3234
uses: actions/upload-pages-artifact@v3

docusaurus.config.ts

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -9,16 +9,15 @@ const config: Config = {
99
tagline: 'Supporting the efficient design and adoption of the highest quality C++ standard libraries.',
1010
favicon: 'img/favicon.ico',
1111

12-
//TODO: Set the production url of your site here
13-
url: 'https://your-docusaurus-site.example.com',
12+
// Set the production url of your site here
13+
url: 'https://bemanproject.github.io',
1414
// Set the /<baseUrl>/ pathname under which your site is served
1515
// For GitHub pages deployment, it is often '/<projectName>/'
16-
baseUrl: '/',
16+
baseUrl: process.env.PAGES_DEPLOY ? '/website/' : '/',
1717

18-
// TODO: GitHub pages deployment config.
19-
// If you aren't using GitHub pages, you don't need these.
20-
organizationName: 'facebook', // Usually your GitHub org/user name.
21-
projectName: 'docusaurus', // Usually your repo name.
18+
// GitHub pages deployment config.
19+
organizationName: 'bemanproject', // Usually your GitHub org/user name.
20+
projectName: 'website', // Usually your repo name.
2221

2322
onBrokenLinks: 'throw',
2423
onBrokenMarkdownLinks: 'warn',

0 commit comments

Comments
 (0)