-
Notifications
You must be signed in to change notification settings - Fork 18
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
Generate PDF fail for 2.0.0-beta0
#29
Comments
Probably needs updating for Docusaurus 2.0.0-beta0? |
Sorry, I can't link to GitHub now. I can't reply you directly
Sorry, I can't link to GitHub now. I can't answer you directly
I have tested 2.0.0-beta.0 and 2.0.0-alpha.73, and the test results are as follows
1. PDF file can be generated on 2.0.0-alpha.73,
2。 However, it failed to run on 2.0.0-beta.0. It can't generate PDF. The failure information is like the above post.
…------------------ 原始邮件 ------------------
发件人: "kohheepeace/docusaurus-pdf" ***@***.***>;
发送时间: 2021年5月18日(星期二) 晚上9:58
***@***.***>;
***@***.******@***.***>;
主题: Re: [kohheepeace/docusaurus-pdf] generate PDF fail (#29)
Probably needs updating for Docusaurus 2.0.0-beta0?
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub, or unsubscribe.
|
Sorry, I can only reply by mail now。
I suggest another function:
Multiple MD files are merged and generated into a PDF file
…------------------ 原始邮件 ------------------
发件人: "kohheepeace/docusaurus-pdf" ***@***.***>;
发送时间: 2021年5月18日(星期二) 晚上9:58
***@***.***>;
***@***.******@***.***>;
主题: Re: [kohheepeace/docusaurus-pdf] generate PDF fail (#29)
Probably needs updating for Docusaurus 2.0.0-beta0?
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub, or unsubscribe.
|
------------------ 原始邮件 ------------------
发件人: "kohheepeace/docusaurus-pdf" ***@***.***>;
发送时间: 2021年5月18日(星期二) 晚上9:58
***@***.***>;
***@***.******@***.***>;
主题: Re: [kohheepeace/docusaurus-pdf] generate PDF fail (#29)
Probably needs updating for Docusaurus 2.0.0-beta0?
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub, or unsubscribe.
|
I've been facing the same issue - is there any soultion to it? |
@CovalentBond, @ywjr Are you using docusaurus v1? This npm will create a PDF file for v1. @antonygibbs Thanks 👍 |
Thanks @kohheepeace - But I've been using the latest version |
I've noticed @ywjr have written it already. @CovalentBond I've confirmed that https://github.com/kohheepeace/mr-pdf works correctly for v2 beta. Could you also check if mr-pdf works ? I will merge the code of mr-pdf to docusaurus-pdf. Just run the below command.
📌 [Issue Fix Outlook]
|
@CovalentBond And |
the test results are as follows
1. PDF file can be generated on v2.0.0-alpha.73,
2。 However, it failed to run on v2.0.0-beta.0. It can't generate PDF.
The failure information is like the above post.
…------------------ 原始邮件 ------------------
发件人: "kohheepeace/docusaurus-pdf" ***@***.***>;
发送时间: 2021年5月19日(星期三) 下午5:56
***@***.***>;
***@***.******@***.***>;
主题: Re: [kohheepeace/docusaurus-pdf] generate PDF fail (#29)
@CovalentBond, @ywjr Are you using docusaurus v1? This npm will create a PDF file for v1.
@antonygibbs Thanks 👍
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub, or unsubscribe.
|
@ywjr Hey, please write the issue properly as possible as you can. It distracts me from reading and dealing with issues. 😠 |
@kohheepeace mr-pdf worked for My concern is I've swizzled the Is there any way - we can prevent it |
@CovalentBond yes!😀 You can exclude unnecessary HTML elements by using
Is this working ? |
@kohheepeace thanks it worked! 🎉 |
@kohheepeace Thanks so much for pointing out mr-pdf. I was able to get great PDF documentation from the command line |
@antonygibbs But... there is no specific Class for this element... Is this one working ?
=> Yes, I've also noticed this. Maybe docusaurus added CSS for print PDF by default. |
@kohheepeace That totally worked! Thank you so much for responding to this thread today to offer assistance to us all, and the alternative of mr-pdf is great for some other teams here too, I am spreading the word! |
Added new option for PDF generation seeing as docusaurus-pdf doesn't work beyond 2.0.0.-alpha73, as establised in [bug facebook#29](kohheepeace/docusaurus-pdf#29).
* Update 2-resources.md Added new option for PDF generation seeing as docusaurus-pdf doesn't work beyond 2.0.0.-alpha73, as establised in [bug #29](kohheepeace/docusaurus-pdf#29). * Update 2-resources.md Co-authored-by: Alexey Pyltsyn <[email protected]>
@antonygibbs How can this command work? The command you passed above has parameter I use Docusaurus 2.1.0 (tried with 2.0 beta versions first) and need to generate PDF from the documentation but, below is my adventure with no luck.
The CSS selector for next page link has also changed in 2.0 versions. It was I would appreciate your help to generate PDF with all pages in my Docusaurus documentation project. |
I, too get the same error, and also with |
Is there any way I can generate pdf of site on button click instead of command line? |
npx docusaurus-pdf http://localhost:3000/platformintro/intro intro.pdf
Error: The src attribute of the 'styles*.js' file could not be found!
at getScriptPathFromHTML (C:\Users\lenovo\AppData\Roaming\npm-cache_npx\5804\node_modules\docusaurus-pdf\lib\index.js:100:15)
at C:\Users\lenovo\AppData\Roaming\npm-cache_npx\5804\node_modules\docusaurus-pdf\lib\index.js:164:42
at processTicksAndRejections (internal/process/task_queues.js:93:5)
The text was updated successfully, but these errors were encountered: