zestedesavoir / zmarkdown

Live demo: https://zestedesavoir.github.io/zmarkdown/
MIT License
226 stars 53 forks source link

Add a manifest renderer #426

Closed StaloneLab closed 3 years ago

StaloneLab commented 3 years ago

Add an endpoint to the ZMarkdown server that takes a manifest (ie. file describing the full architecture of a content, see below) and renders it as HTML, LaTeX or EPUB.

What's a manifest, anyway?

This gist shows an example of a manifest as provided by zds-site (manifest-raw.json) and the corresponding manifest required by ZMarkdown (manifest-arduino.json). Basically, it describes a content and it's internal structure.

Currently, zds-site sends every extract to ZMarkdown, and assembles it itself, in an unparallelized manner, leading to a slow rendering process. The goal is to speed it up, and also to assemble VFiles correctly (that is, error messages, statistics, etc) to get a coherent result.