dutil.mkdir_p(subs)
self.file = assert(io.open(dutil.make_page(subs), "w"))
if title then
- self:write_raw("<title>", title, "</title>")
- self:write_nl()
+ if M.has_feature("title") then
+ self:write_raw("<title>", title, "</title>")
+ self:write_nl()
+ else
+ self:write_h(title, 1)
+ end
end
end,
{ nil, "graph-theme-light", false, help = "Use light builtin graph theme." },
{ nil, "disable-graphviz", false, help = "Disable graphviz usage." },
{ nil, "disable-notes", false, help = "Disable notes plugin usage." },
- { nil, "disable-folded", false, help = "Disable folded plugin usage." }
+ { nil, "disable-folded", false, help = "Disable folded plugin usage." },
+ { nil, "disable-title", false, help = "Disable title plugin usage." }
},
error_cb = function(parser, msg)
io.stderr:write(msg, "\n")
local wfeatures = {
notes = not opts["disable-notes"],
folds = not opts["disable-folded"],
- dot = not opts["disable-graphviz"]
+ dot = not opts["disable-graphviz"],
+ title = not opts["disable-title"]
}
writer.init(rootns, wfeatures)
dutil.rm_root()