Skip to content

Commit d5be90c

Browse files
Merge pull request #5 from ContextLab/claude/restructure-lectures-add-demos-4ntrv
Fix GitHub Pages deployment - deploy to /demos/ subdirectory to match…
2 parents 3f55d8c + bf8c02f commit d5be90c

File tree

1 file changed

+16
-2
lines changed

1 file changed

+16
-2
lines changed

.github/workflows/deploy-demos.yml

Lines changed: 16 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -61,12 +61,26 @@ jobs:
6161
- name: Create build artifact
6262
run: |
6363
echo "Preparing demos for deployment..."
64-
mkdir -p _site
65-
cp -r demos/* _site/
64+
mkdir -p _site/demos
65+
cp -r demos/* _site/demos/
6666
6767
# Create a .nojekyll file to bypass Jekyll processing
6868
touch _site/.nojekyll
6969
70+
# Create root redirect to demos
71+
cat > _site/index.html << 'EOF'
72+
<!DOCTYPE html>
73+
<html>
74+
<head>
75+
<meta http-equiv="refresh" content="0; url=demos/">
76+
<script>window.location.href = 'demos/';</script>
77+
</head>
78+
<body>
79+
<p>Redirecting to <a href="demos/">demos</a>...</p>
80+
</body>
81+
</html>
82+
EOF
83+
7084
# Create a custom 404 page
7185
cat > _site/404.html << 'EOF'
7286
<!DOCTYPE html>

0 commit comments

Comments
 (0)