Skip to content

Commit b669c0e

Browse files
brunoborgesCopilot
andcommitted
Fix GitHub Pages: point to correct repo URLs
GITHUB_RAW_BASE in step.html was pointing to the upstream fork instead of copilot-dev-days/agent-lab-dotnet. Also fixed base href in deploy.yml. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
1 parent 1301b84 commit b669c0e

2 files changed

Lines changed: 3 additions & 2 deletions

File tree

.github/workflows/deploy.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ jobs:
4545
cp -r publish/wwwroot/* ./_site/app/
4646
4747
# Fix base href for GitHub Pages subdirectory
48-
sed -i 's|<base href="/" />|<base href="/vscode-github-copilot-agent-lab/app/" />|g' ./_site/app/index.html
48+
sed -i 's|<base href="/" />|<base href="/agent-lab-dotnet/app/" />|g' ./_site/app/index.html
4949
5050
# Prevent Jekyll processing
5151
touch ./_site/.nojekyll

docs/step.html

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -665,7 +665,8 @@
665665
}
666666

667667
// Base URL for fetching markdown from GitHub
668-
const GITHUB_RAW_BASE = 'https://raw.githubusercontent.com/dotnet-presentations/vscode-github-copilot-agent-lab/main/workshop/';
668+
const isLocal = window.location.hostname === 'localhost' || window.location.hostname === '127.0.0.1' || window.location.protocol === 'file:';
669+
const GITHUB_RAW_BASE = isLocal ? '../workshop/' : 'https://raw.githubusercontent.com/copilot-dev-days/agent-lab-dotnet/main/workshop/';
669670

670671
// Get current step from URL
671672
function getCurrentStepId() {

0 commit comments

Comments
 (0)