I'm using hugo (academic theme) to build a website from sources on github, built and hosted on netlify.
In this site I have one particular page which is rendered from a markdown file (.md) and which I would also like to have available as .pdf.
Currently I have to manually generate and push the .pdf every time an edit is made to the .md source, but I'd like this to be automated.
An approach I tried is to embed a JavaScript window.print() button in the page, so that users can print the page to file, but this is somewhat inelegant.
I'm not sure if this can be done via hugo, via a github or netlify hook, or something else.
Any pointers to the right approach are much appreciated.