royal-statistical-society / datavisguide

Introductory guide to the art and science of data visualisation. Insights, advice, and examples (with code) to make data outputs more readable, accessible, and impactful.
https://royal-statistical-society.github.io/datavisguide/
Other
129 stars 20 forks source link

Render PDF with GitHub actions #13

Closed nrennie closed 1 year ago

nrennie commented 1 year ago

Should be merged after #12

brtarran commented 1 year ago

Thanks for these, @nrennie. Couple of comments/questions:

nrennie commented 1 year ago

Yes, I'll push commits where:

brtarran commented 1 year ago

PDF looks good. Fixed error where the .content-include was forcing bio images to display as small thumbnails on the web version. Tested on PDF as still working as intended.

nocite and suppress-bibliography create new problems, however. Hover-over ref pop-ups in individual pages are now empty. I know we can disable the hover-over pop-ups, but I quite like that functionality.

Any ideas? Or is it a case of pick one option:

nrennie commented 1 year ago

This seems to be caused by suppress-bibliography rather than nocite. One option could be to put the full references on every page (so hover pop-ups still work), but to put them in a collapsed section at the bottom so they're hidden?

I've included an example on the "styling for accessibility" page - thoughts?

brtarran commented 1 year ago

Solution was more straightforward than I thought: nocite removed from global settings to just the refs page, and suppress-bibliography removed from all other pages. So, now each page has a reference list and active links + a full reference list online, while PDF just has the full reference list at the end because nocite still global in the _make_pdf.qmd YAML.