-
Notifications
You must be signed in to change notification settings - Fork 3.4k
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
Single webpage / pdf / epub / mobi #218
Comments
There is https://github.com/killercup/trpl-ebook, but I'm not sure if @killercup has tried the scripts on the new book yet. This would be nice to have, but we probably won't get to it until after we get the book printed... actually an ebook/pdf would probably be a side effect of that as well :) But we'd love help getting @killercup's scripts or some other method to work in the meantime! |
Oh also, the print button in the upper right gives you a single page. |
o.O Why did I link to mdbook issue #29... I should have linked to https://github.com/azerupi/mdBook/issues/88 |
Not a helpful final solution, but for anyone looking wanting something right now, I had decent success getting Calibre to convert the HTML to a book, though there were some manual steps. Here is a copy at 072e7d7. The Rust Programming Language - 072e7d7ad8fe4e269455561da5d2bbf3bfa460b8 .epub.zip |
Whoever has done the single webpage / print long version (with the whole thing) thank you, i can now read it all without worrying about net connection for every chapter. Is it possible to have the single page option not tied to print? So my tablet doesn't ask me if i want to print it out every time i press it? Would love to see a generated PDF option now so i can download it. |
@Jayflux You'll want to follow https://github.com/azerupi/mdBook/issues/88 for progress on that, basically we're using mdBook so we're capable of doing whatever mdBook is, and mdBook doesn't have support just yet :) |
To read the book on my Kindle I've just build it and convert the print.html version to a mobi file using kindlegen. Works flawless. |
mdBook has support for building as |
mdBook 0.2.2 didn't build an epub for me. mdbook-epub complained that it needs mdbook 0.1.0, but sees 0.2.2. @sorin-davidoi are you sure standalone Here's what worked for me:
Profit! Maybe mdbook-epub just needs to be recompiled with mdbook 0.2.2. iBooks claimed the epub is invalid, but I was able to open it in a third-party reader. |
@singalen Looks like it can't generate them standalone, don't know why I had the impression that it did. Sorry for the confusion. |
Following on @singalen solution, here is what worked for me:
|
@rams3s solution worked for me. I was confused a bit by the lack of output from |
It's still WIP but I've recently been working on a project to generate epubs of all official rust documentation nightly. Here is the link: https://rams3s.github.io/rust-ebookshelf/ |
Hello everyone, I have generated the
Hope it helps. |
Thank big god 🐃 |
@rams3s : I tried out the epub from your website but a lot of the code samples look like this once you get deeper into the book: Copy and paste:
|
For everybody having issues with these:
|
Hello everyone, I hacked together scripts to automatically convert the source .md files to a .epub ebook. Place the 3 files here in the |
ADDITION: I hacked together a script to automatically setup the script and run it. just run curl -L https://git.io/JJ5yS | bash -- /dev/stdin <insert arguments to pandoc here - I use "--toc --toc-depth=2"> |
Here's what I've tried. TLDR tried above and got this which was pretty good
And 0.3.7 doesn't appear to be in available
|
That looks like an issue with your system python being 2 rather than 3 - should be fixed now. Also, I have made a new repo with a lot of rust books automatically generated - https://github.com/bs2kbs2k/RustBooks. |
Under macOS, open the official document(example) by Safari and press the This exports the pages perfectly with all contents exported. The only shortage is lacking of the outline data. |
This thread is garbage. Full of comments promoting broken solutions and people not understanding the issue. If conversion to PDF is claimed to be supported, the bare minimum would be to include the outline/toc at the beginning. Printing a book without it makes it impossible to navigate easily. And yeah, you're not teaching anyone anything by saying you can convert an HTML page to PDF. |
Saying "this thread is garbage" is rude and unnecessary.
…On Tue, Jul 20, 2021, 9:32 AM Jonathan De Wachter ***@***.***> wrote:
This thread is garbage. Full of comments promoting broken solutions and
people not understanding the issue.
If conversion to PDF is claimed to be supported, the bare minimum would be
to include the outline/toc at the beginning. Printing a book without it
makes it impossible to navigate easily.
And yeah, you're not teaching anyone anything by saying you can convert an
HTML page to PDF.
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#218 (comment)>, or
unsubscribe
<https://github.com/notifications/unsubscribe-auth/AABPKURTS2AJE3EVTM5XH6DTYV3FDANCNFSM4CNJ7F4Q>
.
|
Agree. At least, the next reader is warned and won't waste time trying the non-solution of above. |
Thinking about this some more, this issue shouldn't even be open. This repo is MIT licensed, provided as-is. The print view provides the whole book on a single page that can be printed as PDF for free. If you want a fully-featured PDF/mobi/epub of the book, nicely typeset and containing a table of contents and an index, you may purchase that at https://nostarch.com/Rust2018. In case you think I'm trying to make money, Steve and I donate all our profits from the book to Black Girls Code. If you want to help us have PDF/mobi/epub support for free, and help all books using mdbook have that support for free, go help with mdbook. If a version of mdbook is released that has better PDF/mobi/epub support, we will upgrade and provide that. Therefore, there's nothing left for this issue to address. |
Is there the possibility of having a version of the Book in a single web page or pdf format? I want to search across the chapters and having them be separate links makes this difficult to do so.
The text was updated successfully, but these errors were encountered: