w3f / polkadot-wiki

The source of truth for Polkadot.
GNU General Public License v3.0
372 stars 2.32k forks source link

PDF Downloads #63

Closed lsaether closed 4 years ago

lsaether commented 5 years ago

We should enable PDF download so that people can have an offline way to read the content.

Swader commented 4 years ago

I looked into this, and the only package currently capable of doing this is docusaurus-pdf but it does not support custom styling.

Another possible approach is pandoc. Here is an example implementation via Travis I found: 1, 2, 3 but I don't think this would respect styling.

I think we better just generate from HTML, experimenting with that next: https://github.com/alextiley/convert-html-to-pdf

lsaether commented 4 years ago

Let me know how it goes. I don't think we really need too much styling though, as long as we can have proper headings and italics. Maybe even using a markdown -> pdf converter would work but would require us to integrate it into the build process.