Skip to content

Commit 4bf21cb

Browse files
committed
remove base url changes
Signed-off-by: Aritra Dey <[email protected]>
1 parent 12f9eec commit 4bf21cb

File tree

2 files changed

+6
-23
lines changed

2 files changed

+6
-23
lines changed

.github/workflows/publish-docs.yml

Lines changed: 2 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -31,27 +31,10 @@ jobs:
3131
uses: actions/setup-node@v4
3232
with:
3333
node-version: 20
34-
35-
- name: Calculate URLs
36-
run: |
37-
REPO="${{ github.event.repository.name }}"
38-
OWNER="${{ github.repository_owner }}"
39-
40-
if [[ "$REPO" == "$OWNER.github.io" ]]; then
41-
echo "BASE_URL=/pr-preview/pr-${{ github.event.pull_request.number }}/" >> $GITHUB_ENV
42-
echo "URL=https://$OWNER.github.io" >> $GITHUB_ENV
43-
else
44-
echo "BASE_URL=/$REPO/pr-preview/pr-${{ github.event.pull_request.number }}/" >> $GITHUB_ENV
45-
echo "URL=https://$OWNER.github.io/$REPO" >> $GITHUB_ENV
46-
fi
47-
48-
49-
34+
5035
- name: Install and Build
5136
run: npm ci && npm run build
52-
env:
53-
BASE_URL: ${{ env.BASE_URL }}
54-
URL: ${{ env.URL }}
37+
5538

5639
- name: Deploy Preview
5740
uses: rossjrw/pr-preview-action@v1

docusaurus.config.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,13 +3,13 @@ module.exports = {
33
title: "PEcAn Project",
44
tagline:
55
"Ecosystem science, policy, and management informed by the best available data and models",
6-
url: process.env.URL || "https://pecanproject.github.io",
7-
baseUrl: process.env.BASE_URL || "/",
6+
url: "https://pecanproject.github.io",
7+
baseUrl: "/",
88
onBrokenLinks: "ignore",
99
onBrokenMarkdownLinks: "warn",
1010
favicon: "img/favicon.ico",
11-
organizationName: process.env.GITHUB_OWNER || "PecanProject", // Usually your GitHub org/user name.
12-
projectName: process.env.GITHUB_REPOSITORY || "PecanProject.github.io", // Usually your repo name.
11+
organizationName: "PecanProject", // Usually your GitHub org/user name.
12+
projectName: "PecanProject.github.io", // Usually your repo name.
1313
themeConfig: {
1414
navbar: {
1515
title: "PEcAn",

0 commit comments

Comments
 (0)