Skip to content

Commit a936e81

Browse files
authored
Merge pull request #2684 from ORCID/lmendoza/PD-3696
PD-3696
2 parents 7b7a1af + c43fd59 commit a936e81

File tree

4 files changed

+15
-1
lines changed

4 files changed

+15
-1
lines changed

.github/workflows/deploy-ui-docs.yml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,16 @@ jobs:
5353
exit 1
5454
fi
5555
56+
- name: Setup SPA support for GitHub Pages
57+
run: |
58+
BUILD_DIR="${{ steps.set-output.outputs.directory }}"
59+
# Copy index.html to 404.html for SPA routing support
60+
# GitHub Pages will serve 404.html for all missing routes
61+
cp "$BUILD_DIR/index.html" "$BUILD_DIR/404.html"
62+
# Ensure .nojekyll exists to disable Jekyll processing
63+
touch "$BUILD_DIR/.nojekyll"
64+
echo "✅ SPA support configured: 404.html and .nojekyll created"
65+
5666
- name: Deploy to GitHub Pages
5767
uses: peaceiris/actions-gh-pages@v3
5868
if: github.ref == 'refs/heads/main' || github.event_name == 'workflow_dispatch'

angular.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -493,6 +493,7 @@
493493
},
494494
"configurations": {
495495
"production": {
496+
"baseHref": "/orcid-angular/",
496497
"budgets": [
497498
{
498499
"type": "initial",
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
# Disable Jekyll processing for GitHub Pages
2+
# This ensures files starting with underscores (like _next, _nuxt, etc.) are served correctly
3+

projects/orcid-ui-docs/src/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
<head>
44
<meta charset="utf-8" />
55
<title>Orcid UI Docs</title>
6-
<base href="/" />
6+
<base href="/orcid-angular/" />
77
<meta name="viewport" content="width=device-width, initial-scale=1" />
88
<link rel="icon" type="image/x-icon" href="favicon.ico" />
99

0 commit comments

Comments
 (0)