cpitclaudel / alectryon

A collection of tools for writing technical documents that mix Coq code and prose.
MIT License
227 stars 36 forks source link

Support specifying the LeanInk path #84

Open utensil opened 2 years ago

utensil commented 2 years ago

LeanInk is sensitive to Lean versions and expected to be installed locally, it's useful to support specifying the LeanInk path via a flag like --leanink= in such scenarios.

A similar flag (but as --ink) is present in https://github.com/leanprover/doc-gen4 to invoke LeanInk.

For more details, see the discussion here: https://github.com/leanprover/LeanInk/issues/21#issuecomment-1200867756 .

For implementation, it seems that somehow reusing binpath of CLIDriver could make it work, but it's not so easy to pass it to the driver in the current generic way to resolve the CLI driver.

cpitclaudel commented 2 years ago

That would be nice, and same for the driver path of the other drivers. Maybe we could add a --driver-executable flag or something similar?