q66 pushed a commit to branch master. http://git.enlightenment.org/core/efl.git/commit/?id=17d79745a315a4a72ae44a7f8a6227dfd866c143
commit 17d79745a315a4a72ae44a7f8a6227dfd866c143 Author: Daniel Kolesa <d.kol...@osg.samsung.com> Date: Fri Aug 26 14:45:45 2016 +0100 docs: add an option to disable title plugin usage --- src/scripts/elua/apps/docgen/writer.lua | 8 ++++++-- src/scripts/elua/apps/gendoc.lua | 6 ++++-- 2 files changed, 10 insertions(+), 4 deletions(-) diff --git a/src/scripts/elua/apps/docgen/writer.lua b/src/scripts/elua/apps/docgen/writer.lua index aa29426..91d683e 100644 --- a/src/scripts/elua/apps/docgen/writer.lua +++ b/src/scripts/elua/apps/docgen/writer.lua @@ -58,8 +58,12 @@ M.Writer = util.Object:clone { 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, diff --git a/src/scripts/elua/apps/gendoc.lua b/src/scripts/elua/apps/gendoc.lua index a50d3bb..cf50b86 100644 --- a/src/scripts/elua/apps/gendoc.lua +++ b/src/scripts/elua/apps/gendoc.lua @@ -1058,7 +1058,8 @@ getopt.parse { { 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") @@ -1096,7 +1097,8 @@ getopt.parse { 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() --