-
Notifications
You must be signed in to change notification settings - Fork 212
Single HTML file of a book #85
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
Yes, 100% this is happening. I've had on my TODO list since the beginning of Retype. We will be providing several print friendly, file download, and eBook download options. This will include:
We haven't started on any of these features yet, but they are technically trivial for us to implement. Most of the development time will be taken up with UI design and testing. I'm not exactly sure what release the above (or some of the above) features will be implemented, but it is a priority. We're a small team and working our way through all the feature requests as fast as we can. That said, all of the above will supported by Retype. Hope this helps answer your questions. |
Yes thanks. That would be great |
Any updates on this issue? |
Looking forward to this, too. Does anyone see a "hacked" (pandoc?) way of getting something out, even if not perfect? |
There should be a relative easy way to hack something up.
The bigger challenge, would be to convert the non standard markdown elements. Another similar approach, would be to
|
@geoffreymcgill No PDF support is preventing me from using Retype |
Any updates on PDF support? This is really the missing thing here! |
Converting individual markdown files into one cohesive PDF book is not a trivial task. From dev perspective, it involves two tasks: Task 1: Concatenating markdowns, which will require:
Task 2: Converting markdown to HTML and then to PDFWhile it can be done in a server environment (one that render server-side markdown to HTML), it is - to my knowledge - quite impossible to do on a client side, without bringing in bloated software to do so. Personally, I do not know of any other documentation tool generator that does that - I would love to be enlightened if there is any. I believe the only course of action for Retype developers (if any) is to render a special HTML page (say "my-retype-site.com/book"), which will create the HTML render of everything (i.e. Task 1), and then the user can use their already available "Download as PDF" in Chrome or other modern browser. |
Im well aware that this is not trivial, it's a really important feature nevertheless in my eyes.
Gitbook does that. See Gitbook Docs – PDF Export |
I understand. But Gitbook is a hosted service, retype is a static site generator. |
I understand the additional complexity involved in # 3 (entire "book"), but the first two points seem much more trivial. Since Retype doesn't currently support at-rules Any updates on this @geoffreymcgill? |
@p0fi Nice. Thanks for that. |
Just an FYI. Refer to #628 for a somewhat "hacky" workaround that can be used as an interim measure for single page pdfs. |
A bunch of work has gone into make a print friendly stylesheet for the page and the pages are definitely printing much better now. The new print friendly stylesheet will be included in the upcoming v3.9.0 release. If you notice any issues with the print formatting, please let us know.
Generation and download of a .pdf has not been implemented, yet. This functionality is still a high priority for us, but it will have to wait for a future release. |
Discussed in #84
Originally posted by larmarange July 21, 2021
Do you have any plan for allowing to generate (in addition of the website) an HTML file (ideally self-contained) containing all the book allowing to propose to readers to download the overall book and/or to print it as a PDF with their browser.
The text was updated successfully, but these errors were encountered: