curriculum icon indicating copy to clipboard operation
curriculum copied to clipboard

Feature: Add printable Book layout, print stylesheet and sample chapters (#127)Feature/pdf book

Open Arun24-8 opened this issue 4 months ago β€’ 11 comments

Overview

Adds a printable "Book" layout and supporting print stylesheet for the curriculum guides.

Changes

  • Added layouts/_default/book.html
  • Added assets/css/book-print.css and print.css
  • Added sample content/book/_index.md
  • Updated styles for print optimization

Why

This makes the site’s guides printable and lays the groundwork for generating PDFs.

Fixes #127

Arun24-8 avatar Oct 30 '25 11:10 Arun24-8

Deploy request for cyf-piscine pending review.

Visit the deploys page to approve it

Name Link
Latest commit a92dc6129901b5e9bcb5edbaddc6a5ba539d1bdb

netlify[bot] avatar Oct 30 '25 11:10 netlify[bot]

Deploy request for cyf-curriculum pending review.

Visit the deploys page to approve it

Name Link
Latest commit a92dc6129901b5e9bcb5edbaddc6a5ba539d1bdb

netlify[bot] avatar Oct 30 '25 11:10 netlify[bot]

Deploy request for cyf-launch pending review.

Visit the deploys page to approve it

Name Link
Latest commit a92dc6129901b5e9bcb5edbaddc6a5ba539d1bdb

netlify[bot] avatar Oct 30 '25 11:10 netlify[bot]

Deploy request for cyf-sdc pending review.

Visit the deploys page to approve it

Name Link
Latest commit a92dc6129901b5e9bcb5edbaddc6a5ba539d1bdb

netlify[bot] avatar Oct 30 '25 11:10 netlify[bot]

Deploy request for cyf-tracks pending review.

Visit the deploys page to approve it

Name Link
Latest commit a92dc6129901b5e9bcb5edbaddc6a5ba539d1bdb

netlify[bot] avatar Oct 30 '25 11:10 netlify[bot]

Deploy request for cyf-common pending review.

Visit the deploys page to approve it

Name Link
Latest commit a92dc6129901b5e9bcb5edbaddc6a5ba539d1bdb

netlify[bot] avatar Oct 30 '25 11:10 netlify[bot]

Deploy request for cyf-itd pending review.

Visit the deploys page to approve it

Name Link
Latest commit a92dc6129901b5e9bcb5edbaddc6a5ba539d1bdb

netlify[bot] avatar Oct 30 '25 11:10 netlify[bot]

Deploy Preview for cyf-programming ready!

Name Link
Latest commit a92dc6129901b5e9bcb5edbaddc6a5ba539d1bdb
Latest deploy log https://app.netlify.com/projects/cyf-programming/deploys/6903512019b26e000807a116
Deploy Preview https://deploy-preview-1636--cyf-programming.netlify.app
Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

Lighthouse
1 paths audited
Performance: 84 (πŸ”΄ down 16 from production)
Accessibility: 100 (no change from production)
Best Practices: 92 (no change from production)
SEO: 90 (no change from production)
PWA: -
View the detailed breakdown and full score reports

To edit notification comments on pull requests, go to your Netlify project configuration.

netlify[bot] avatar Nov 07 '25 11:11 netlify[bot]

I took a look at this, and I'm not sure it's quite solving the right problem here.

We want to make it so that all of the existing content of the course can easily be printed. So on the org-cyf-itp site you could easily generate a PDF that contains each of the modules, all of the prep and backlogs and dayplans for each sprint, etc.

This looks like it's instead creating a new section of the guides repo which adds brand new (placeholder) content.

Ideally e.g. if I go to https://deploy-preview-1636--cyf-programming.netlify.app/book/ it would show the whole course as one page (either as HTML that will print conveniently to a PDF, or as a PDF itself generated at build time).

illicitonion avatar Nov 07 '25 11:11 illicitonion

β€œHi! My PR’s deploy preview (#1636) is pending review in Netlify (cyf-piscine). Could someone please approve it so I can verify the Book layout changes?”

Arun24-8 avatar Nov 07 '25 14:11 Arun24-8

All of our sites work the same. I allowed one of the deploy previews (see https://github.com/CodeYourFuture/curriculum/pull/1636#issuecomment-3502117348) which you can use, but I'd recommend developing locally and verifying things there (see instructions in https://github.com/CodeYourFuture/curriculum/blob/main/CONTRIBUTING.md) rather than trying to iterate on GitHub.

illicitonion avatar Nov 07 '25 16:11 illicitonion