Read the book "HTTP2 Explained" offline
HTTP2 Explained is a markdown formatted book. This blog explored a method to read it offline using a python tool called Grip
Can I read offline?
Daniel Stenberg, the creator of cURL has written a wonderful introduction to HTTP2 titled "HTTP2 Explained". The book's main website is available here: https://daniel.haxx.se/http2/.
Although the book is available on the website, the interesting part to me was that it is published on Github. When you download, you'll realize that this book is in markdown format. So if you were to download and try to read offline, it wouldn't be rich like reading on the website. So I wanted to check if there was a way to achieve this locally. The reason is that I wanted to read this book while on a long flight.
Enter Grip
Grip is a tool that has been written to "Preview GitHub Markdown files like Readme locally before committing them". I just leveraged it to read the github book. To read the book, do the following:
- Clone the http2Explained repository from https://github.com/bagder/http2-explained
- Install Grip from https://github.com/joeyespo/grip
- Navigate to the directory "http2-explained/en". I was reading the English versions. There are other language translations as well.
- Run the command "grip". The files will be accessible on a URL that defaulted to "http://localhost:6419/" for me.
- Start from the beginning by typing in the URL http://localhost:6419/Summary.md
- Go to any chapter by using typing the part name like http://localhost:6419/part1.md
- Enjoy the book offline! :-)
If you like the book, do consider sharing about it and help in the translations!