You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Make a pdf version of the std api reference. #60577
It reminds me a bit of this issue: #20866 which about generating epub and pdf versions of the Book. But maybe the idea behind it can be used for this as well?
@catastrop Please stop spamming issues, it will not get this resolved any faster. Rustdoc is not capable of outputting to PDF natively, it can only create the HTML-based documentation that is already available.
Like someone already said, you can try using Pandoc to convert the documentation, but the result might not look very good.
The only way to properly resolve this is by adding first-class PDF support to rustdoc, which, given the current architecture and state of rustdoc, is going to be very difficult. The rustdoc team is also only 4 people who are busy with other issues.
Reacted by Mateusz Mikuła, Thiago Machado and Vasilevsky Alexander
@catastrop I don't get your arguments. Rustdoc can already be access offline, because the doc is always installed along with the standard library and the compiler. Always. Just use rustup doc --std and it will be opened in your browser right away. Locally (remove your network cable and see that it still works)
IMO this doesn't really make sense to add to Rustdoc. The way I see this happening is by implementing the JSON backend (rust-lang/rfcs#2963) and then someone in the community can then make a PDF renderer using the JSON.
Activity
VitalyAnkh commentedon May 6, 2019
You can use Pandoc to convert these html version document files.
hellow554 commentedon May 6, 2019
@catastrop a more detailed description would be helpful though. Do you want something like doxygen which gives you a multi-hundred page PDF?
@rustbot modify labels: T-doc C-enhancement
DevQps commentedon May 7, 2019
It reminds me a bit of this issue: #20866 which about generating epub and pdf versions of the Book. But maybe the idea behind it can be used for this as well?
hellow554 commentedon May 17, 2019
@rustbot modify labels: -C-enhancement +C-feature-request
XVilka commentedon Jun 6, 2019
Related: rust-lang/mdBook#88
jonas-schievink commentedon Jun 21, 2019
@catastrop Please stop spamming issues, it will not get this resolved any faster. Rustdoc is not capable of outputting to PDF natively, it can only create the HTML-based documentation that is already available.
Like someone already said, you can try using Pandoc to convert the documentation, but the result might not look very good.
The only way to properly resolve this is by adding first-class PDF support to rustdoc, which, given the current architecture and state of rustdoc, is going to be very difficult. The rustdoc team is also only 4 people who are busy with other issues.
hellow554 commentedon Jul 1, 2019
@catastrop I don't get your arguments. Rustdoc can already be access offline, because the doc is always installed along with the standard library and the compiler. Always. Just use
rustup doc --stdand it will be opened in your browser right away. Locally (remove your network cable and see that it still works)XVilka commentedon Aug 19, 2019
Note, that the code for generating PDF files from Markdown already exists, it just requires a bit of integration: https://github.com/Geemili/mdproof
jyn514 commentedon Nov 4, 2020
IMO this doesn't really make sense to add to Rustdoc. The way I see this happening is by implementing the JSON backend (rust-lang/rfcs#2963) and then someone in the community can then make a PDF renderer using the JSON.
jyn514 commentedon Dec 16, 2020
--output-format=json has landed on nightly.
Dylan-DPC commentedon Dec 6, 2023
Closing this as it is better suited for an external tool