-
Notifications
You must be signed in to change notification settings - Fork 867
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
PDF on Chromium #9343
Comments
About wkhtmltopdf: This repository has been archived by the owner on Jan 2, 2023. It is now read-only. Edited: (wanted to verify it myself): Is the Playwright packaged with the releases? |
Playwright isn't packaged today, it is only for testing. If packaged, it would increase the size of published zip releases of each platform from ~60MB to ~100MB, and increase the size of the docfx tool package to 300MB due to redistribution of NodeJS runtime for many platforms. Dependency on NodeJS isn't a bad thing as we probably need it for #661 and to replace JINT. We can probably set NodeJS as a pre-requisite instead of redistributing it if size is a concern. |
No, there are some problems with NuGet.org's signing key setup causing publish failures that I need to consult their support. Obviously, they work on a different time-zone so it could take a while. |
I'm using Is is hard to separate PDF generation functionality to separate |
It only affect the size of the |
It's desirable to use pre-installed node runtime. Additionally latest docfx main branch build consume twice as much disk space as before. (about 5GB increased)
Note: |
Issue: API Page |
Seems to be caused by 404s on the pages themselves. |
Task: Optimize Playwright binary size? |
The biggest size factor is the redistrbution of NodeJS for 4 platforms in Playwright dotnet: microsoft/playwright-dotnet#1850 At this moment, I tend to leaning on Playwright team fixing the issue using approaches such as using system-wide NodeJS or dynamically install NodeJS |
We know this is going to be difficult. For MS (on GitHub and Azure), more time used is better business. Since this playwright is bringing in quiet a baggage, defining the PDF build interfaces with implementations Here are samples pdf output of the MkDocs's pdf-plugin using the WeasyPrint:
Not that bad in my view! |
The
wkhtmltopdf
based PDF solution is flawed in many areas:This is a new PDF solution based on Chromium, by printing PDF files out of HTML pages using the HTML template for ordinary build.
Config cover page as source pathThe text was updated successfully, but these errors were encountered: