From 9da69c47590bef6c34dacc4ffa27f538f5346193 Mon Sep 17 00:00:00 2001
From: Benson Muite <bkmgit@users.noreply.github.com>
Date: Sun, 23 Jan 2022 02:31:29 +0300
Subject: [PATCH] epub.doc: Update links to KindleGen (#7846)

KindleGen has been deprecated and we need to link to archived versions.

Co-authored-by: Mauro Bieg <mb21@users.noreply.github.com>
---
 doc/epub.md | 14 +++++++++++---
 1 file changed, 11 insertions(+), 3 deletions(-)

diff --git a/doc/epub.md b/doc/epub.md
index c05faf80c..4d756db32 100644
--- a/doc/epub.md
+++ b/doc/epub.md
@@ -6,7 +6,11 @@ author: John MacFarlane
 Starting with version 1.6, pandoc can produce output in the [EPUB]
 electronic book format. EPUB books can be viewed on iPads, Nooks, and
 other electronic book readers, including many smart phones. (They can
-also be converted to Kindle books using [KindleGen].)
+also be converted to Kindle books using the GUI only [KindlePreviewer] 
+on Windows and Mac OSX. [KindleGen] – which offers a command line
+interface and supports [Linux][KindleGenLinux], [Mac OSX][KindleGenMacOSX]
+and [Windows][KindleGenWindows] – has been deprecated, but binaries can still
+be found on the internet.)
 
 This means that it's now very easy to produce an electronic book!
 Let's try it.
@@ -149,9 +153,13 @@ or target readers that don't support MathML. Then you have two options:
     to convert maths into SVG images on your local machine.
 
 Both GladTeX and WebTeX add the LaTeX source of the formula as alternative text
-of the image,  increasing accessibility for blind users.
+of the image, increasing accessibility for blind users.
 
-[KindleGen]: https://www.amazon.com/gp/feature.html?ie=UTF8&docId=1000765211
+[KindlePreviewer]: https://www.amazon.com/Kindle-Previewer/b?node=21381691011
+[KindleGen]: https://www.amazon.com/gp/feature.html?docId=1000765211
+[KindleGenLinux]: https://archive.org/details/kindlegen2.9
+[KindleGenMacOSX]: https://web.archive.org/web/20190905040839/https://www.amazon.com/gp/feature.html?ie=UTF8&docId=1000765211
+[KindleGenWindows]: https://archive.org/details/kindlegen_win32_v2_9
 [EPUB]:  https://en.wikipedia.org/wiki/EPUB
 [Pro Git]: https://git-scm.com/book/en/v2
 [Creative Commons]: https://creativecommons.org/