tailcallhq / graphql-conf-2024

Presentation in Remark for GraphQL Conf 2024
http://tailcall.run/graphql-conf-2024/
0 stars 2 forks source link

feat: generate pdf for slides #4

Closed neo773 closed 1 month ago

neo773 commented 2 months ago

Utilizes Puppeteer to generate precisely dimensioned PDFs, eliminating top and bottom whitespace.

Performance comparison:

Execution times:

node gen-pdf.js 3.11s user 1.80s system 85% cpu 5.768 total
npx -y decktape remark http://127.0.0.1:8080/ slides.pdf 11.11s user 6.57s system 21% cpu 1:20.71 total

Sample PDF output

Successful CI Run

https://github.com/user-attachments/assets/78c5d5b8-79b4-406e-a963-dd5905b40a67

/claim #1 /closes #1

tusharmath commented 2 months ago

Color and theming isn't right.

neo773 commented 1 month ago

Fixed the issues. Also updated CI runner to run on macOS this ensures accurate rendering of the emojis as emojis on Linux are different.

neo773 commented 1 month ago

Please use Chrome's PDF viewer to open this, macOS's built-in PDF viewer has some issues with emojis.

slides.pdf

tusharmath commented 1 month ago

@neo773 Some emoji's are visible some are not on mac. I think overall its going in the right direction.

Moving to draft to reduce noise and improve CI efficiency. Once you are ready just mark it as "ready to review". Feel free to give a shoutout on the #contributors channel on Discord if you want immediate attention.

neo773 commented 1 month ago

slides.pdf