uwdata / living-papers

Authoring tools for scholarly communication. Create interactive web pages or formal research papers from markdown source.
BSD 3-Clause "New" or "Revised" License
128 stars 10 forks source link

feature request: compile only some output formats #25

Open joshuahhh opened 2 years ago

joshuahhh commented 2 years ago

LaTeX output is slow, so I'd like a way to only compile HTML output as I'm writing. I can comment out the "latex" section in the metadata, but this clobbers my collaborators' environments. It would be nicer if there were a command-line argument to specify (as an override) which output formats I want – or something like that.

jheer commented 2 years ago

I agree this would be helpful. Any thoughts on command line syntax?

For example, maybe something like this?

lpub —suppress-output=latex [file]

joshuahhh commented 2 years ago

That sounds fine!

Or the positive form: lpub --output=html [file]?

Or the unnecessarily galaxy-brain alternative: lpub --patch-meta='[{"op": "remove", "path": "/output/latex"}]'? (That's a JSON Patch spec for modifying the document's meta block. Totally general! Galactically brained!)

joshuahhh commented 2 years ago

Related anecdote -- I just found myself setting minify: true in HTML options in order to speed up compilation. Another temporary dev-mode setting!