Update GitHub Codespaces instructions for S2L5 #85
+34
−21
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Summary
Hello Maintainers!
First and foremost, thank you for Secure Code Game. It was a blast, learned a ton, and love the idea and motivation behind it.
This PR fixes and enhances a documentation issue for Season 2, Level 5 for Codespace users. While current documentation provides instructions for
index.html
, it is lacking forcode.js
, which is required. See Issue #84 for additional context.This PR pivots the solution slightly by proposing changes which achieve same outcome for Codespace users without having to pull/copy files locally.
Changes
BLUF: Leverage Python http.server to serve directory via Codespace.
Rather than copy both
index.html
andcode.js
to local environments, documentation updated to run simple HTTP web server within the codespace and allow user to remain within the same environment.Screenshot verifying expected behavior:


Additional change - ensure character encoding set to

utf-8
to avoid issue with rendering the dollar-sign graphics.Before/After screenshot:
Closes: #84
Task list