A vitamin C rich, book, pdf & documentation brewing library for e-readers/e-ink readers. Now take priviliges of (eye-safe) e-readers to read the documentations and blogs, by converting them to an e-reader optimized book.
Me personally, is really concerned about my eyes, not that much for ears,nose and teeth, but eyes. Eyes are the potent organ for a software engineer. These led screens we use, haven't been tested yet for a life long 9 hr usage. Will human eyes be having no damage for almost permanent usage of these led screens? The fact is not proven yet as we are the first generation, being experimented.People choose eink readers like kindle, boox and onyx over ipads and phones, as they try to protect their eyes while reading there books/comics.
But are eyes important to only those who read books? I spend double time from them reading on web, what about me?
Hence, here comes the go-cbook: which basically is all the support you want for reading webpages as e-reader optimized pdf. One can collect the bookmarks or links to read, and this tool is going to render them as pdfs or a combine them to a book(as pdf).
(Note: In e-readers, pdfs are times easier to render, navigate and size-optimized than webpages.)
- Add a URl file in urls dir.
- If desired, in css dir, custom css rules for the set of urls.
- Finally, add modifications in mod dir:
- For sub-urls based rules, add to
webpages-properties.json
- For overall urls file rules, add to any custom file, with the same name as urls file
- For sub-urls based rules, add to
From https://wkhtmltopdf.org/downloads.html wget https://github.com/wkhtmltopdf/packaging/releases/download/0.12.6-1/wkhtmltox_0.12.6-1.focal_amd64.deb sudo apt install -y ./wkhtmltox_0.12.6-1.focal_amd64.deb
##there are a bunch of css files & other settings that are previously available for different kind of links, for ex:
- k8 docs
- istio docs
- go sites docs
- medium.com articles
- github.com/issues
- github.com/wiki
- stackoverflow answers
U can add settings for your own site, by following the available settings in mod directory.
- Generate Plain pdf from webpage
- Add custom css rules for pages before rendering them
- Provide custom dimensions for each page to render.(see mods file)
- Generate pdfs in named indexes.
- Max-possible fit dimensions(only for kindle)
- Save Max possible state to not-rework again
- Combine to produce a book
- Override the paths to put a webpage to.
- Add bookmarks based on indexes (nested nature of docs)
- A must for navigation, in a huge document.
- Gen for a single url as input
- Send via email, to automate the transfer logic to e-reader.