-
-
Notifications
You must be signed in to change notification settings - Fork 3.6k
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 generation failed due to LATEXOPTS leading to a build fail #10150
Comments
Solved it - sort of. PDF can't be generated with glyphs like 🚀 or 💡. |
@gwilku Are you able to share what you did to resolve this? I unchecked the "Enable PDF build" and "Enable EPUB build" in the advanced settings but am still seeing the same error. |
Just chiming in that I'd love to have some magic configuration to add that would make PDF generation / LATEXOPTS "gracefully degrade" rather than completely bomb out and fail. |
@seanlaw I fixed my config file (.readthedocs.yml), because it overrides the settings on the website (as advised by the info on top of the settings section, which I blissfully ignored :D ) |
Readthedocs is currently failing to build PDFs, which fails the entire build: readthedocs/readthedocs.org#10150
I have the similar build fail, but my error is a bit more clear: I use greek letters in text or formulas, which fail the build. Also, the workaround doesn't work for me, I cannot disable the PDF generation: |
It seems you have |
@humitos, idk where I was looking at! Thanks! |
For those that find this issue while researching about why their builds are failing because of PDF and how to fix them, this comment is for you 😉 Why my builds started failing due to PDF issues on Tuesday 15, March?Read the Docs deployed a change that makes builds to fail when the commands for PDF generation fail. This is, any of the commands required for PDF generation returns something different than a 0 exit code. Note that these commands were already failing before Tuesday 15. However, Read the Docs silently ignored them and continue as nothing has happened. The resulting PDF file was broken in some way. It may no showed a font, a whole paragraph, an image, or completely broken. How I can fix these LaTeX errors?There are many different situations that could be producing these errors. The best way to solve them is by looking at the errors and reading the Sphinx documentation to tweak LaTeX to be more permissive: https://www.sphinx-doc.org/en/master/latex.html Unfortunately, there is no a magic solution and LaTeX is not trivial to get it right. How I can test locally that my PDF is building correctly to speed up the debugging process?You can pull down a Docker image that has Sphinx (and all its LaTeX dependencies) installed and do your debugging there. Read https://www.sphinx-doc.org/en/master/usage/installation.html#docker to know more about this. How I can disable the PDF generation to workaround this issue?Using a
|
UpdateJust a heads up, we're rolling back the hard failures on PDF builds for now. We will be re-enabling this configuration in a few weeks, but we wanted to give people a bit more time to react without having their builds be broken. This is now rolled back -- if anyone could confirm PDF builds are not failing these builds again, I would appreciate it. |
I have done a successful PDF build for my documentation with the rolled back change. |
@ericholscher Thanks! I'm also confirming the happy impact of your rollback. I'll study sphinx-simplepdf in the hope it'll be easier for us than LaTex. |
We reverted the change, so all builds should be passing again. |
See: readthedocs/readthedocs.org#10150 for issue around Latex and PDF build
Details
Expected Result
Documentation should be built as usual, as the only fix was adding a small change to the contents.
Actual Result
Instead I am getting an error about PDF not being generated due to some issues with LATEXOPTS.
The details don't point to any specific place or file in my documenation. As a workaround I disabled PDF generation.
The text was updated successfully, but these errors were encountered: