Skip to content

Commit 20ea357

Browse files
committed
fix
1 parent fe0fba2 commit 20ea357

2 files changed

Lines changed: 6 additions & 2 deletions

File tree

.github/workflows/publish-docs.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ jobs:
3131
- name: Install dependencies
3232
run: npm ci
3333

34-
- name: Calculate BASE_URL
34+
- name: Calculate URLs
3535
run: |
3636
REPO_NAME=${GITHUB_REPOSITORY#*/}
3737
OWNER_NAME=${GITHUB_REPOSITORY%/*}
@@ -41,10 +41,14 @@ jobs:
4141
echo "BASE_URL=/$REPO_NAME/" >> $GITHUB_ENV
4242
fi
4343
44+
echo "URL=https://$OWNER_NAME.github.io" >> $GITHUB_ENV
45+
echo "Calculated URL: https://$OWNER_NAME.github.io"
46+
4447
- name: Build
4548
run: npm run build
4649
env:
4750
BASE_URL: ${{ env.BASE_URL }}
51+
URL: ${{ env.URL }}
4852

4953
- name: Upload build artifact
5054
uses: actions/upload-artifact@v4

docusaurus.config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ module.exports = {
33
title: "PEcAn Project",
44
tagline:
55
"Ecosystem science, policy, and management informed by the best available data and models",
6-
url: "https://pecanproject.github.io",
6+
url: process.env.URL || "https://pecanproject.github.io",
77
baseUrl: process.env.BASE_URL || "/",
88
onBrokenLinks: "ignore",
99
onBrokenMarkdownLinks: "warn",

0 commit comments

Comments
 (0)