quarto-dev / quarto-cli

Open-source scientific and technical publishing system built on Pandoc.
https://quarto.org
Other
3.88k stars 318 forks source link

Document all public functions from quarto Lua API #4499

Open cderv opened 1 year ago

cderv commented 1 year ago

About those new function missing in our doc

quarto.doc.input_file
quarto.doc.output_file

Yep, it will available to any LUA code that is being executed (e.g. filter or shortcode)- it is public but you're right that it is omitted from the documentation (unintentionally)!

We also added some project related functions that are omitted:

quarto.project.directory
quarto.project.offset
quarto.project.profile
quarto.project.output_directory

Let's keep this issue open to track getting the documentation updated to reflect this.

Originally posted by @dragonstyle in https://github.com/quarto-dev/quarto-cli/issues/2249#issuecomment-1397066585

cwickham commented 1 year ago

Relevant doc page: https://quarto.org/docs/extensions/lua-api.html#quarto-lua-api