doc: print headline for modules with no preamble

This commit is contained in:
Daniel Barlow 2023-08-07 23:08:41 +01:00
parent 5cff862ae9
commit be044cb59e

View file

@ -73,7 +73,7 @@
(table.insert e option) (table.insert e option)
(tset modules path e)))) (tset modules path e))))
(each [name module (pairs modules)] (each [name module (pairs modules)]
(print (read-preamble name)) (print (or (read-preamble name) (headline name)))
(let [options (sort-options module)] (let [options (sort-options module)]
(each [_ o (ipairs options)] (each [_ o (ipairs options)]
(if (= o.type "parametrisable s6-rc service definition") (if (= o.type "parametrisable s6-rc service definition")