• Home
  • About
    • Breno Brito photo

      Breno Brito

      Breno Brito is an AI engineer, data scientist, and writer covering Bitcoin, finance, language models, talks, and applied AI projects.

    • Learn More
    • Twitter
    • LinkedIn
    • Github
  • Writing
  • Projects
  • Talks & Media
  • Tags

docs2epub

06 Jan 2026

Reading time ~1 minute

docs2epub is a Python CLI for turning documentation sites into EPUB files.

I built it to make web-native docs easier to read offline, archive, or send to e-readers without manual copy-paste work.

The initial focus was Docusaurus sites that expose a clear docs flow through a Next button, but the broader direction is a practical tool for scraping structured documentation and packaging it into something that reads well on Kindle-class devices.

The main usage is intentionally short:

uvx docs2epub https://www.techinterviewhandbook.org/software-engineering-interview-guide/ tech-interview-handbook.epub

It also works as a local project command with uv run docs2epub, and the documented output paths cover both EPUB2 for better Kindle compatibility and EPUB3 when that format is preferable.

Under the hood, the project combines HTML extraction, crawl heuristics, metadata inference, and EPUB generation into one CLI so a docs site can become a portable book with a single command.

The first published tag was v0.1.0 on 2026-01-06, which is the date used for this project entry.

Links

GitHub Repo



pythonepubdocs Tweet