Feature: Add printable Book layout, print stylesheet and sample chapters (#127)Feature/pdf book
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.cssandprint.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
Deploy request for cyf-piscine pending review.
Visit the deploys page to approve it
| Name | Link |
|---|---|
| Latest commit | a92dc6129901b5e9bcb5edbaddc6a5ba539d1bdb |
Deploy request for cyf-curriculum pending review.
Visit the deploys page to approve it
| Name | Link |
|---|---|
| Latest commit | a92dc6129901b5e9bcb5edbaddc6a5ba539d1bdb |
Deploy request for cyf-launch pending review.
Visit the deploys page to approve it
| Name | Link |
|---|---|
| Latest commit | a92dc6129901b5e9bcb5edbaddc6a5ba539d1bdb |
Deploy request for cyf-sdc pending review.
Visit the deploys page to approve it
| Name | Link |
|---|---|
| Latest commit | a92dc6129901b5e9bcb5edbaddc6a5ba539d1bdb |
Deploy request for cyf-tracks pending review.
Visit the deploys page to approve it
| Name | Link |
|---|---|
| Latest commit | a92dc6129901b5e9bcb5edbaddc6a5ba539d1bdb |
Deploy request for cyf-common pending review.
Visit the deploys page to approve it
| Name | Link |
|---|---|
| Latest commit | a92dc6129901b5e9bcb5edbaddc6a5ba539d1bdb |
Deploy request for cyf-itd pending review.
Visit the deploys page to approve it
| Name | Link |
|---|---|
| Latest commit | a92dc6129901b5e9bcb5edbaddc6a5ba539d1bdb |
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...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.
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).
β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?β
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.
