Serverless E-book/Web-book using Docusaurus v2, GitHub Pages & Actions, DocSearch, and PDF tools
Last year I released an open-source project called Dasar Pemrograman Rust. It is a web-book/e-book about Rust programming written in Bahasa Indonesia.
I created it because I was happy with the result of my previous book, Dasar Pemrograman Golang. This old book has more than 2.5 million lifetime unique views! and the physical book distribution is not even counted.
Architecture Design
For my 2nd book, I decided to apply a similar system design, but with some adjustments because GitBook CLI (the book engine) is discontinued. So I come up with these alternatives:
- Web-book engine: Docusaurus v2
- PDF generator: prince pdf + docusaurus-prince-pdf + pdftk
- Hosting: GitHub Pages
- CI/CD: GitHub Actions
Docusaurus is an amazing blog/documentation engine maintained by Facebook engineering team. It provides a lot of features for generating blog content, documentation, and other types of posts.
We can just focus on writing the content (in markdown format) and Docusaurus will handle the rest.