-
-
Notifications
You must be signed in to change notification settings - Fork 25.9k
Fix broken PDF generation for the documentation #3830
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
Comments
Pull request welcomed. |
The pdf can be downloaded from http://sourceforge.net/projects/scikit-learn/files/documentation/ |
Unfortunately the latest PDF there is for version 0.12 (from 2012), while current version seems to be 0.15.2 |
When I run
It's probably a bug in our |
It's likely that this is only the first of a series of issues to get the PDF doc to generate correctly. If someone wants to have a deeper look that would be great. This requires a working latex install on your system. 8000 |
Here is the pdf after disabling the I guess, the plugin shouldn't register itself when pdf is generated. |
Without gen_rst, many images, and link targets (those corresponding to On 29 November 2014 at 23:24, Dmitrijs Milajevs notifications@github.com
|
@jnothman could you please check the generated pdf. actually, the problem is in embed_code_links: diff --git a/doc/sphinxext/gen_rst.py b/doc/sphinxext/gen_rst.py
index ed216f0..15fab76 100644
--- a/doc/sphinxext/gen_rst.py
+++ b/doc/sphinxext/gen_rst.py
@@ -971,6 +971,10 @@ def embed_code_links(app, exception):
return
print('Embedding documentation hyperlinks in examples..')
+ if app.builder.name == 'latex':
+ # Don't embed hyperlinks when a latex builder is used.
+ return
+
# Add resolvers for the packages for which we want to show links
doc_resolvers = {}
doc_resolvers['sklearn'] = SphinxDocLinkResolver(app.builder.outdir, |
That's good; it has allowed the PDF to build, yet has not produced a sensible form of documentation. In the PDF version:
|
@jnothman I agree, I will create a new issue for this. |
The documentation for this project looks fantastic. I'm new to ML but I'd love to have a PDF copy of the docs which I can read along with text books on the subject.
I just spend half a day trying to do 'make latexpdf' only to find out that pdf functionality hasn't worked in over a year.
Can you please just provide a pdf copy of the manual and save lots of people lots of time and frustration. Even the sourceforge email lists are full of people asking for the pdf.
The text was updated successfully, but these errors were encountered: