Skip to content
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

Idea: use mkdocs-print-page to print all website #12

Closed
cspaier opened this issue Nov 26, 2023 · 3 comments
Closed

Idea: use mkdocs-print-page to print all website #12

cspaier opened this issue Nov 26, 2023 · 3 comments
Labels
enhancement New feature or request good first issue Good for newcomers

Comments

@cspaier
Copy link

cspaier commented Nov 26, 2023

I see in the roadmap:

Combine all pages as one PDF

And I know that mkdocs-print-site does one thing: automatically create a page served at /print_page that combine all pages of the site.

I thought I just had to combine your plugins and the print-site one to have a neat pdf of all my documentation.

This failed with a playwright._impl._errors.TimeoutError :( If you ever get curious, you can find the full traceback in this gist.

So I was wondering if you were aware of this print-site-plugin. Anyway, you may want to handle this feature by yourself to get more control of the process.

@adrienbrignon
Copy link
Owner

Hello @cspaier,

Thank you for opening an issue and for all the details you've provided.

The timeout is caused by an issue during the "preview" generated by Paged.js. Maybe the page contains too much elements and it fails? Disabling the browser's headless mode (not available through configuration, though) and heading to the JavaScript console of the page should give you more details.

About mkdocs-print-site-plugin, yes, I have used it in the past and was quite happy with it :)
In the future, this feature will be handled by the plugin itself so compatibility can be ensured at all times.

I am currently rewriting the plugin, the logic will now be mainly written in JavaScript so interactions can now be done directly between the browser and the page to render PDF documents on the fly.

You can find some more details here.

@adrienbrignon adrienbrignon added the enhancement New feature or request label Nov 28, 2023
@adrienbrignon adrienbrignon added the good first issue Good for newcomers label Dec 21, 2023
@adrienbrignon adrienbrignon mentioned this issue May 31, 2024
@adrienbrignon
Copy link
Owner

This feature has been released in the v6.0.0 version.

Thank you for your patience, I will now close this issue.

@cspaier
Copy link
Author

cspaier commented Jun 7, 2024

Thank you for your work.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

2 participants