Creating EPUB Books in Go

Опубликовано: 07 Июль 2026
на канале: Jeffrey Chupp
1,241
31

In this episode, we build a converter to turn an interactive fiction story into an EPUB ready for publish in the Kindle Marketplace. We'll also support exporting a standalone interactive HTML website.

We're using the Squire format to publish interactive fiction to the Kindle store using free tools and simple Markdown syntax. Learn more about the format here: https://www.squirebooks.com/

Github Repo: https://github.com/semanticart/squire/

PR with all code from this video: https://github.com/semanticart/squire...

You an read my short story here: https://amzn.to/3xaGSsp

00:00:00 - Intro and EPUB fundamentals
00:01:58 - EPUB structure
00:02:55 - Useful EPUB tooling
00:04:39 - Linking between chapters in EPUB
00:06:17 - Converting our Story format to EPUB
00:09:32 - Embedding CSS in EPUB to make choices clearer
00:13:14 - Converting inner Markdown to HTML
00:16:34 - Embedding Images in EPUB
00:21:45 - Converting to HTML
00:32:03 - Adding interactivity and styling
00:37:23 - Parsing commandline flags
00:46:21 - Regression test + refactoring
00:50:15 - Thinking about the ergonomics
00:51:29 - Outro + Future