Skip to content

Commit 0398cdc

Browse files
brunoborgesCopilot
andcommitted
Add game links to workshop landing page and step viewer
- Add ๐ŸŽฎ Play Game button on docs/index.html hero section - Convert ../game/ relative links in markdown to absolute game/ path so they work when rendered inside the step.html viewer Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
1 parent 1adb220 commit 0398cdc

2 files changed

Lines changed: 4 additions & 0 deletions

File tree

โ€Ždocs/index.htmlโ€Ž

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -145,6 +145,7 @@ <h1>VS Code GitHub Copilot Agent Lab</h1>
145145
</p>
146146
<div class="hero-cta">
147147
<a href="step.html?step=00-overview" class="btn btn-primary">๐Ÿš€ Start Workshop</a>
148+
<a href="game/" class="btn btn-secondary">๐ŸŽฎ Play Game</a>
148149
<a href="https://github.com/copilot-dev-days/agent-lab-typescript" class="btn btn-secondary">๐Ÿ“ฆ GitHub Repo</a>
149150
</div>
150151
<div class="stats">

โ€Ždocs/step.htmlโ€Ž

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -337,6 +337,9 @@
337337
md = md.replace(/๐Ÿ‘‰ \*\*\[Continue to[^\n]+/g, '');
338338
md = md.replace(/๐Ÿ‘‰ \*\*\[Start with[^\n]+/g, '');
339339

340+
// Convert relative game link to absolute
341+
md = md.replace(/\]\(\.\.\/game\/\)/g, '](game/)');
342+
340343
// Convert internal markdown links to step viewer links
341344
md = md.replace(/\]\((\d+)-([^)]+)\.md\)/g, '](step.html?step=$1-$2)');
342345
md = md.replace(/\]\(GUIDE\.md\)/g, '](step.html?step=guide)');

0 commit comments

Comments
ย (0)