From 13c8ca22cab731a61963f52647949ad89287c096 Mon Sep 17 00:00:00 2001 From: Ashkan Kiani Date: Thu, 14 Nov 2019 11:01:16 -0800 Subject: Improve documentation and docgen command. Also improve the recommended command for running docgen. --- scripts/docgen.lua | 3 +++ 1 file changed, 3 insertions(+) (limited to 'scripts/docgen.lua') diff --git a/scripts/docgen.lua b/scripts/docgen.lua index a2583a36..3b02949e 100644 --- a/scripts/docgen.lua +++ b/scripts/docgen.lua @@ -69,6 +69,9 @@ for k, v in pairs(skeleton) do for _, dk in ipairs(keys) do local dv = tconf.default_config[dk] local description = tconf.docs and tconf.docs.default_config and tconf.docs.default_config[dk] + if description and type(description) ~= 'string' then + description = inspect(description) + end table.insert(lines, indent(2, string.format("%s = %s", dk, description or inspect(dv)))) end params.default_config = indent(0, table.concat(lines, '\n')) -- cgit v1.2.3-70-g09d2