Skip to content
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

SRE Workbook Availability (now) #19

Closed
kingdonb opened this issue Jan 27, 2019 · 4 comments
Closed

SRE Workbook Availability (now) #19

kingdonb opened this issue Jan 27, 2019 · 4 comments

Comments

@kingdonb
Copy link

I just read that the SRE Workbook is now similarly available to read online:

https://landing.google.com/sre/books/

That means that BOTH books can be converted with pandoc, great idea by the way! My eyesight thanks you, I need to read these books but I don't need more screen time every day...

I'll take a stab at it? Been meaning to grok how this works, so I can repurpose it and use it for WTF other collections of essays I want to read offline. Adapting it to work on exactly one more identically structured book publication should help gain the insight needed to use this technique for other blog-format sites.

I noticed that "mobi" output does not have images, but epub and PDF both do. Is this a technical limitation of mobi format, or pandoc issue? Thanks,

@captn3m0
Copy link
Owner

Sounds good, have a stab at it!

Repurposing online essays/books to ebooks is a hobby of mine, and I have some interesting links at https://captnemo.in/ebooks/ that you might like.

The mobi thing sounds like a bug, should not be happening.

@aabouzaid
Copy link
Collaborator

The mobi version doesn't have images because the images in Workbook are in png format unlike the old book (Engineering) which were jpg.

mobi doesn't support png images.

@aabouzaid
Copy link
Collaborator

Well, after further investigation, I found the image type is not the problem (that was something with old version of mobi and/or kindle devices).

The problem actually is pandoc cannot get the right file mime type with no file extension (all images are without extensions even in the old book).

So this happens for both books SRE Engineering and SRE Workbook and not something new.
The easiest solution for this is just adding the file extension based on file type.

I'm working on a fix for this and will make a PR.

@kingdonb
Copy link
Author

kingdonb commented Feb 2, 2019

#21 closes this issue

@captn3m0 captn3m0 closed this as completed Feb 2, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants