-
Notifications
You must be signed in to change notification settings - Fork 0
fix: enforce Paged.js layout for resume rendering #86
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. Weβll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
Co-authored-by: neilime <[email protected]>
Co-authored-by: neilime <[email protected]>
Co-authored-by: neilime <[email protected]>
Co-authored-by: neilime <[email protected]>
Co-authored-by: neilime <[email protected]>
Co-authored-by: neilime <[email protected]>
Co-authored-by: neilime <[email protected]>
Co-authored-by: neilime <[email protected]>
Co-authored-by: neilime <[email protected]>
Co-authored-by: neilime <[email protected]>
neilime
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@copilot use command line to generate pdf: https://pagedjs.org/en/documentation/2-getting-started-with-paged.js/#command-line-version
Co-authored-by: neilime <[email protected]>
Implemented Paged.js CLI rendering for PDFs via pagedjs-cli (commit 39d07fb). The HTML is written to a temp file and rendered with the command-line tool before optimization. Screenshot: https://github.com/user-attachments/assets/338c8d54-d8b2-4dcb-aaf8-0ed1ee5b2491 |
neilime
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@copilot handle feedbacks
Co-authored-by: neilime <[email protected]>
Feedback applied: switched to pagedjs-cli-only flow, removed Puppeteer, and bundled Source Sans Pro locally via @fontsource. Latest changes in commit db99a25. Screenshot: https://github.com/user-attachments/assets/338c8d54-d8b2-4dcb-aaf8-0ed1ee5b2491 Warning Firewall rules blocked me from connecting to one or more addresses (expand for details)I tried to connect to the following addresses, but was blocked by firewall rules:
If you need me to access, download, or install something from one of these locations, you can either:
|
neilime
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@copilot handle feedbacks
resume/theme/src/index.tsx
Outdated
|
|
||
| const GOOGLE_FONTS = | ||
| "https://fonts.googleapis.com/css2?family=Source+Sans+Pro:wght@300;400;600;700&display=swap"; | ||
| const PAGEDJS_POLYFILL = |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
install locally as an npm deps
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Paged.js is now installed as a local dependency and the polyfill is inlined from node_modules (no CDN). Changes in commit 05c7ff3. Screenshot: https://github.com/user-attachments/assets/338c8d54-d8b2-4dcb-aaf8-0ed1ee5b2491
Feedback addressed: Paged.js polyfill is now bundled from the local pagedjs dependency and inlined in the rendered HTML; tests updated and passing (commit 05c7ff3). Screenshot: https://github.com/user-attachments/assets/338c8d54-d8b2-4dcb-aaf8-0ed1ee5b2491 |
Co-authored-by: neilime <[email protected]> Signed-off-by: Emilien Escalle <[email protected]>
05c7ff3 to
4ba80bb
Compare
|
Code Coverage Report Coverage ResultsCoverage
Overall: 87.29% π’ |
Enforce consistent resume layout rendering via Paged.js so PDF exports respect page structure and margins.
pagedjs-cli), writing the rendered HTML to a temporary file and honoring a configurable timeout for layout.@fontsource/source-sans-proand import it in styles, removing external Google Fonts links for offline-friendly, deterministic rendering.Original prompt
π‘ You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.