thclark / sphinx-charts

Interactive charts in sphinx HTML docs, using plot.ly and D3
MIT License
26 stars 3 forks source link

Allow generation of PDFs in addition to HTML outputs #21

Open thclark opened 2 years ago

thclark commented 2 years ago

For generation of technical reports, it's extremely useful to be able to render charts to a static version and embed them into a PDF using LaTeX.

Without doing this, we can't make reports downloadable (currently, reports are HTML only, and although they could be downloaded, they'd need a local server so the viewer would need some significant technical expertise).

Proposed solution

Need to add a builder specifically to generate static chart image at build time then invoke it as an alternative to the html builders here