phil-opp / blog_os

Writing an OS in Rust
http://os.phil-opp.com
Apache License 2.0
14.27k stars 1.01k forks source link

feat: add script to generate ebook #1232

Open FineFindus opened 11 months ago

FineFindus commented 11 months ago

Closes https://github.com/phil-opp/blog_os/issues/1070.

I wanted to read this book on my e-reader, so I added a quick script, to generate an e-book from the markdown, using pandoc. This is not perfect, the issues include:

I'm not sure how many of them can be fixed without changing the source content itself, or how to fix most of them, but I think this is a worthwhile start, as it is still readable (an e-book with bad layout is still better than no e-book).

Also added a quick cover image, I'm not a designer, but it gets the job done. Maybe another contributor, with better design skills, can improve it.

phil-opp commented 10 months ago

Thanks a lot for submitting! Unfortunately I'm quite busy right now and I haven't had time to review this PR and to try it out. I try my best to get to it as soon as possible!

FineFindus commented 10 months ago

You're welcome. That's absolutey no problem for me, take your time. In the meantime, I've had time to read through it, using the generated e-book, and noticed a few more issues. Most of them were probably caused by my device, as they do not appear when opening the e-book on my pc, but I think it is still worth mentioning them: