At Sat, 28 Jan 2012 18:17:50 +0100, Jan Ulrich Hasecke wrote: > > Hi, > > I want to hide the table of contents on the first page of my ebook. > > """ > .. toctree:: > :maxdepth: 2 > :hidden: > """ > > I can produce the html version without problems. No table of contents on > the first page but all headlines in the sidebar as ususally. > > But the epub file is empty. There is only the first page. > > make runs without errors. And the size of the file is nearly the same as > when compiled without hidden toctree.
Hi Jan, I’ve seen this as well. What happens is that the epub builder suppresses references to the documents listed in the toctree in the epub’s toc.ncx as well as the <spine> element of the content.opf file. These documents are still included in the epub file, but they are unreachable. I think the correct behavior here would be for the documents to be listed in the toc.ncx and the <spine>. They should be reachable, and the epub contents should know about them, but the toctree should not insert links at that point. best, Erik
Sent from my free software system <http://fsf.org/>.
-- You received this message because you are subscribed to the Google Groups "sphinx-dev" group. To post to this group, send email to sphinx-dev@googlegroups.com. To unsubscribe from this group, send email to sphinx-dev+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/sphinx-dev?hl=en.