Skip to content

Fix lesson print layout - #43

Merged
ambicuity merged 1 commit into
ambicuity:mainfrom
Sinkleberg:codex/lesson-print-styles
Oct 7, 2026
Merged

ambicuity merged 1 commit into
ambicuity:mainfrom
Sinkleberg:codex/lesson-print-styles

Conversation

@Sinkleberg

Copy link
Copy Markdown
Contributor

Summary

Adds a lesson print layout so saved PDFs focus on the lesson instead of the site navigation. Closes #32.

Type of change

  • Website / build bug fix

What changed

  • Hide navigation and controls, use readable print colors in either theme, and print external link URLs.
  • Wrap long code, keep ordinary code blocks and headings together where possible, and preserve RTL alignment.

How it was tested

  • node --test: 46 passed.
  • node site/build.js: passed.
  • Chromium PDF checks: light/dark themes, a real code-heavy lesson, oversized code blocks, and RTL alignment.

Other browser print engines haven't been checked.

Screenshots

Before and after: the same lesson printed to PDF.

Before After
Before: navigation and background remain in the PDF After: clean lesson layout

Contributor checklist

  • One focused stylesheet change; no lesson, curriculum, translation, or dependency changes.
  • No unfinished placeholders added.
  • Read the contributing guide and code of conduct.

@Sinkleberg
Sinkleberg requested a review from ambicuity as a code owner October 5, 2026 01:00
@ambicuity
ambicuity merged commit c7d42e0 into ambicuity:main Oct 7, 2026
1 check 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.

[website] Add a print stylesheet for lessons (offline / PDF reading)

2 participants