useblocks / sphinx-simplepdf

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

Cover image also picking from `html_logo` #29

Closed sachin-suresh-rapyuta closed 8 months ago

sachin-suresh-rapyuta commented 1 year ago

The cover image appears twice. One from html_logo which should ideally render only in HTML page and also from the cover-bg defined in the simplepdf_vars.

This is what I have in conf.py:

html_logo = "_static/rr-logo-vertical2022-1100px-transp.png"

simplepdf_vars = {
    'cover-bg': 'url(rr-logo-vertical2022-1100px-transp.png) no-repeat center',
}

If I comment html_logo, there is no logo on HTML. But curious why PDF is picking images from the html_logo element.