-
-
Notifications
You must be signed in to change notification settings - Fork 56
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
Build PDF documentation on RTD #155
Comments
While the latest build apparently prepares everything appropriate for the LaTeX build step
it croaks when doing so:
The culprit might be this LaTeX error:
|
On sphinx-doc/sphinx#4789, I found a hint about adding the Sphinx extension After adding that to
So, I've invoked |
While on its way,
After finishing, it reported
Invoking |
There are some offending links the Sphinx LaTeX integration apparently didn't like.
Things like
apparently make LaTeX very unhappy. P.S.: It makes me sad that Black allows such a bad style for its very own badge URL ;]!
|
I tried to fix all issues within #160. Enjoy
However, we have to check whether the SVG conversion will also work on RTD. |
After fixing #161, we are now seeing at RTD Build #11889597:
It is probable that this is also related to the SVG conversion, see ImageMagick/ImageMagick#974. On my machine it still works. I have
On the other hand, RTD uses the standard
|
In this context, readthedocs/readthedocs-docker-images#131 and readthedocs/readthedocs.org#6919 as well as readthedocs/readthedocs-docker-images#132 by @Daltz333 seem to be relevant. He also created https://gist.github.com/Daltz333/3d0d4d04f45fd47604a98b60c2bf15b9, but apparently there is no official way to apply this as @humitos stated within readthedocs/readthedocs.org#6919 (comment):
|
Regarding issues with SVG conversions for PDF, there are already readthedocs/readthedocs.org#905 by @PowerKiKi and readthedocs/readthedocs.org#3979 by @ale5000-git. Within these discussions, @mgeier recommended to use |
After enabling the recommended
which could easily be satisfied using Then, the odd URL to the badge for "Black" hit again when invoking
Now, even after removing this offending URL once more, it would still not work on my machine
Invoking |
Apparently, the same thing also happens with the corresponding RTD Build #11890026.
Apparently, even when picking up and doing some conversion with the SVGs, something is not quite right for It looks like we are stuck here. Bummer! |
Actually, we don't want to embed these offending badge images into the PDF file at all. SO to the rescue, let's just include them for HTML by wrapping them into a The sad thing here is that this will make GitHub unhappy right away, see README.rst. The nice thing is that the production of wetterdienst.pdf works well now. |
I've worked around the issue by #162. However, the beautiful badges now are also gone for HTML Sphinx output. They are preserved on GitHub yet. GitHubRTD |
Thank you very much, Andreas! I think the way it works right now is just fine and we can close this! Badges did not work with the previous theme either and now even the citation is included in the documentation! Once again thanks! |
FYI, I ran into this same issue with the Black badge. I went looking for an alternative badge but learned that the Shields.io static badge supports using underscores instead of |
Introduction
In general, we would like RTD to provide Downloadable Documentation, i.e. a PDF file.
Issue
After bringing in #154, this apparently stopped working, so @gutzbenj reported at #153 (comment):
The text was updated successfully, but these errors were encountered: