useblocks / sphinx-simplepdf

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

Throws warnings for theme configurations #3

Closed twodrops closed 2 years ago

twodrops commented 2 years ago

The sphinx-simplepdf builder throws warnings if theme specific configurations are used in conf.py.

For example the config needed for RTD theme,

html_theme_options = {
    'collapse_navigation': False
}

throws

WARNING: unsupported theme option 'collapse_navigation' given

Perhaps because of the incompatibility with html theme used by sphinx-simplepdf?

danwos commented 2 years ago

Added a fix for this on main branch. It simply overwrittes html_theme_options if Sphinx-SimplePDF builder is used. So Sphinx should not claim about unsupported theme options anymore