useblocks / sphinx-simplepdf

A simple PDF builder for Sphinx documentations
https://sphinx-simplepdf.readthedocs.io
MIT License
36 stars 15 forks source link

Blank page with index.rst title appears after ToC #37

Closed sachin-suresh-rapyuta closed 1 year ago

sachin-suresh-rapyuta commented 1 year ago

After the ToC, a blank page is displayed with the title being picked from the index.rst file.

Eg: If my index.rst file has

index.rst

User Doc
=======

Some content here...

The PDF has an empty page (after Toc) with "User Doc" displayed.

sachin-suresh-rapyuta commented 1 year ago

Can be fixed in custom CSS something like:

div.title p.subtitle-cover{
  display: none;
}
kreuzberger commented 1 year ago

For me the suggested solution removed content form the cover page.

div.body h1{
  display: none;
}

Seems to remove it