From cf5adf0c646474f0259d123fad60ca5ed38ec891 Mon Sep 17 00:00:00 2001 From: Charles Brunet Date: Fri, 17 Mar 2023 16:27:37 -0400 Subject: add json output format to configure file --- docs/markdown/snippets/json_output_format.md | 5 +++++ docs/yaml/functions/configure_file.yaml | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) create mode 100644 docs/markdown/snippets/json_output_format.md (limited to 'docs') diff --git a/docs/markdown/snippets/json_output_format.md b/docs/markdown/snippets/json_output_format.md new file mode 100644 index 000000000..626840f76 --- /dev/null +++ b/docs/markdown/snippets/json_output_format.md @@ -0,0 +1,5 @@ +## Added 'json' output_format to configure_file() + +When no input file is specified, [[configure_file]] can now +generate a `json` file from given [[@cfg_data]]. +Field descriptions are not preserved in the json file. diff --git a/docs/yaml/functions/configure_file.yaml b/docs/yaml/functions/configure_file.yaml index df37ff581..6fb972b3e 100644 --- a/docs/yaml/functions/configure_file.yaml +++ b/docs/yaml/functions/configure_file.yaml @@ -134,7 +134,7 @@ kwargs: The format of the output to generate when no input was specified. It defaults to `c`, in which case preprocessor directives will be prefixed with `#`, you can also use `nasm`, in which case the - prefix will be `%`. + prefix will be `%`. *(since 1.3.0)* `json` format can also be used. encoding: type: str -- cgit v1.2.3