The canonical gem source for LiquiDoc, a ruby-based documentation parsing and rendering utility enabling advanced builds with Asciidoctor, Jekyll, Liquid, and semi-structured data files.
This patch adds a --var option for CLI-only parse builds, so environment vars can be passed via the command line (and read in the vars scope in Liquid templates).
Additionally, configuration files can now be formatted in Liquid and preprocessed before being run as the build routine. The procedure runs liquify on the chosen config file, saves a parsed version to <build_dir>/pre/, then proceeds running the liquidoc command using the new ephemeral config. This is instigated by sending one or more --cvar <key>=<value> arguments or use a --parse-config if your config is not expecting any vars. -scoped variables.
See README for details.
This patch adds a
--var
option for CLI-only parse builds, so environment vars can be passed via the command line (and read in thevars
scope in Liquid templates).Additionally, configuration files can now be formatted in Liquid and preprocessed before being run as the build routine. The procedure runs liquify on the chosen config file, saves a parsed version to
<build_dir>/pre/
, then proceeds running the liquidoc command using the new ephemeral config. This is instigated by sending one or more--cvar <key>=<value>
arguments or use a--parse-config
if your config is not expecting anyvars.
-scoped variables. See README for details.