cobalt-org / cobalt.rs

Static site generator written in Rust
cobalt-org.github.io/
Apache License 2.0
1.36k stars 104 forks source link

Exporting to PDF and ePub #547

Open kravemir opened 5 years ago

kravemir commented 5 years ago

Does cobalt.rs support exporting to PDF and ePub? If not, then this is a feature request/suggestion, otherwise documentation request/suggestion.

kravemir commented 5 years ago

I found https://github.com/lise-henry/crowbook. It might be worth it to take a look and integrate it (I'm not Rust developer). Also, that was my first google search result, there might be better tools/libraries.

epage commented 5 years ago

As of right now, we do not support this.

What is your use case that you'd want a SSG to do this as compared to using a dedicated tool like mdbook or crowbook? Knowing use cases helps to drive requirements which helps to drive design / implementation.

One of the interesting aspects to something like this I assume PDF and ePub are generally ordered documents. At minimum, we'd need to add ordering to un-ordered parts of cobalt to generate this.

We could do this by