Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Question] Remove Table of Contents #97

Open
mohshbool opened this issue Jun 23, 2021 · 2 comments
Open

[Question] Remove Table of Contents #97

mohshbool opened this issue Jun 23, 2021 · 2 comments

Comments

@mohshbool
Copy link

Is there any way I can completely remove the Table of Contents page altogether?

I want it to show the first page of book directly.

Thank you!

@williamheelis
Copy link

this is really important to fix

@williamheelis
Copy link

williamheelis commented Sep 21, 2024

the way I did it was to add my own toc.html file then got straight into the book pages

cover: "cover.jpeg",
customHtmlTocTemplatePath: "toc.html",

then each page is option.content.push({ data: '<p>page of book</p>'});

toc.html
__________________
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:epub="http://www.idpf.org/2007/ops" lang="en">
  <head>
  <meta charset="UTF-8" />
  <title></title>
  <link rel="stylesheet" type="text/css" href="style.css" />
  </head>
<body style=" margin: 0;  padding: 0;">
    <div style="height: 100%; width: 100%; background-image: url('cover.jpeg'); background-size: 100% 100%;" />
</body>
</html>

Daylon pushed a commit to Daylon/epub-gen that referenced this issue Sep 29, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants