-
Notifications
You must be signed in to change notification settings - Fork 3.6k
Can not view book offline #711
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
I agree this is a problem. There are multiple potential workarounds and solutions, most of which are going to be in mdbook in general rather than the Rust book specifically:
|
As a stop gap, I've used
on my Mac to grab a copy for offline reading. |
May 2020 it now possible the view the book offline with
I think that allows us to close this issue ... |
Just able to check this, and it works like a charm! Thank you to everyone who made this happen!!! |
After downloading the source and compiling with
mdbook
I went into the book directory, opened up a Chromium window and... Blank page. Tried Firefox, and again, the same thing happened. I attempted to figure out the problem, and I found it! It is the following lines in all of the*.html
pages:You see, by including these lines in the HTML, you prevent anyone who doesn't have an active internet connection from reading the book. Not only can I not get to https://doc.rust-lang.org/book/ but the copy I downloaded and built locally won't load unless it gets these files.
But, my fine sir, you may say, does not every soul have access to this wonderful tool known as the internet?
NO! I have waited days to try to file this issue, as I do not have ready access to the internet. I have to plan on what I am going to do when I get access, so I can make the best use of my time. When getting the stuff for the book I made sure that I had Rust installed, and then I installed
mdbook
, and I am dreading the time in the near future where the book may say "Nowcargo install some-package-with-lots-of-dependencies
and look at how fast it compiles!" When all I can do is just sit there and cry inside because I have to wait a few DAYS until I can get back online.Alas, your plight hath troubled me terribly so, you respond, but you are an insignificant minority I must say, and most people have access to the glorious internet. Thus, we can not - and shall not - help you I am sorry to say.
Okay, what about...
While a PDF, EPUB or other completely offline version would be nice, simply including those
*.js
files locally would solve the problem and keep the formatting properly. I understand that there isn't much anyone can do aboutcargo install some-package-with-lots-of-dependencies
without Universal Internet Access, but at least making everything local will make the learning experience much better for others.Thank you for your time, and have a blessed day.
The text was updated successfully, but these errors were encountered: