Skip to content

feat(site): show source-backed stdin fixtures on individual lesson pages - #61

Merged
sanskarIN merged 7 commits into
mainfrom
feat/show-stdin-on-lesson-pages-20261110
Nov 10, 2026
Merged

sanskarIN merged 7 commits into
mainfrom
feat/show-stdin-on-lesson-pages-20261110

Conversation

@sanskarIN

Copy link
Copy Markdown
Member

Summary

When a numbered lesson has an optional adjacent .stdin fixture, its generated static page now shows the supplied input as escaped, readable text, links to the raw fixture and provides a locally runnable stdin-redirection command. Lessons without an input fixture preserve the existing layout and commands.

Changes

  • Use the existing UTF-8/64 KiB input fixture validator added in PR feat(testing): deterministic optional stdin fixtures for future Scarp input lessons #60.
  • Display backslash, CR, tab, NUL and other ASCII control characters explicitly rather than injecting raw control text into the static HTML; retain readable Hindi/Unicode.
  • HTML-escape displayed input; label the page view as not byte-exact and link directly to the source .stdin file.
  • Include the redirection command for Bash/Windows Command Prompt; distinguish it from static scarp verify, which never consumes input.
  • Add two site regression tests, responsive panel styling, and lesson-format/site documentation.

Compatibility and scope

The course still pins Scarp v0.0.6-alpha.4. This PR adds no alpha.6-only read_line examples, does not change lesson counts or shipped .stdout fixtures, and does not execute Scarp in the browser. Actual input lessons must wait for the released compiler migration and source/stdout provenance validation.

Validation

  • Site code and regression tests committed; full GitHub Actions checks must pass before review or merge.
  • Does not authorize tags, prereleases, compiler changes or production Pages deployment.
  • No issue/PR comments posted.

Coordination

Requires merged PR #60 (already on main). Review with course migration PR #57 if it edits the same site-generation tests; retain both provenance and input-test coverage.

@sanskarIN
sanskarIN marked this pull request as ready for review November 10, 2026 15:03
@sanskarIN
sanskarIN merged commit 4e91a5e into main Nov 10, 2026
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant