From be044cb59e0bd44d778fae999e4d3a3244081f7c Mon Sep 17 00:00:00 2001 From: Daniel Barlow Date: Mon, 7 Aug 2023 23:08:41 +0100 Subject: [PATCH] doc: print headline for modules with no preamble --- doc/parse-options.fnl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/doc/parse-options.fnl b/doc/parse-options.fnl index 508e72d8b..063bb2b4f 100644 --- a/doc/parse-options.fnl +++ b/doc/parse-options.fnl @@ -73,7 +73,7 @@ (table.insert e option) (tset modules path e)))) (each [name module (pairs modules)] - (print (read-preamble name)) + (print (or (read-preamble name) (headline name))) (let [options (sort-options module)] (each [_ o (ipairs options)] (if (= o.type "parametrisable s6-rc service definition")