cobalt.rs icon indicating copy to clipboard operation
cobalt.rs copied to clipboard

Exporting to PDF and ePub

Open kravemir opened this issue 6 years ago • 2 comments

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

kravemir avatar Nov 04 '18 10:11 kravemir

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.

kravemir avatar Nov 04 '18 11:11 kravemir

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

  • People specifying a sort criteria for all collections and between collections
  • Somehow tie this into index support
    • We'd need a way to identify an index as "the main index".
  • Somehow tie this in to native sitemap support

epage avatar Nov 05 '18 14:11 epage