From 6143dc8b25194d7416c6f36448ff4650b9ec15f8 Mon Sep 17 00:00:00 2001 From: Steve Nicholson Date: Mon, 17 May 2021 02:36:51 -0700 Subject: [PATCH] =?UTF-8?q?Add=20missing=20=E2=80=9Ca=E2=80=9D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- www/contribute/producing-an-ebook-step-by-step.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/www/contribute/producing-an-ebook-step-by-step.php b/www/contribute/producing-an-ebook-step-by-step.php index 26bf7d1d..75c4b4d0 100644 --- a/www/contribute/producing-an-ebook-step-by-step.php +++ b/www/contribute/producing-an-ebook-step-by-step.php @@ -572,7 +572,7 @@ proceed to seal up my confession, I bring the life of that unhappy Henry Jekyll

The table of contents is a structured document that should let the reader easily navigate the book. In a Standard Ebook, it’s stored outside of the readable text directory with the assumption that the reading system will parse it and display a navigable representation for the user.

Once you’ve completed the <spine> element in content.opf, you can use se print-toc to generate a table of contents for this ebook. Since this is the first time we’re generating a ToC for this ebook, use the --in-place flag to replace the template ToC file with the generated ToC.

se print-toc --in-place . -

Review the generated ToC in ./src/epub/toc.xhtml to make sure se print-toc did the right thing. se print-toc is valuable tool to discover structural problems in your ebook. If an entry is arranged in a way you weren’t expecting, perhaps the problem isn’t with se print-toc, but with your HTML code—be careful! You may have to make changes by hand for complex or unusual books.

+

Review the generated ToC in ./src/epub/toc.xhtml to make sure se print-toc did the right thing. se print-toc is a valuable tool to discover structural problems in your ebook. If an entry is arranged in a way you weren’t expecting, perhaps the problem isn’t with se print-toc, but with your HTML code—be careful! You may have to make changes by hand for complex or unusual books.

Once you’re done, commit:

git commit -am "Add ToC"