useblocks / sphinx-simplepdf

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

only/not-simplepdf directive #1

Closed danwos closed 2 years ago

danwos commented 2 years ago

As SimplePDF is using HTML, it may be hard to tell Sphinx to not render specific elements, which would not be nice-looking in PDF. E.g. grids, tabs, videos and so on.

So there shall be 2 new directives, which are able to provide their content only for specific builders:

danwos commented 2 years ago

done by the if-builder directive