forked from enlightenment/efl
Generate docs into /develop/api/*
Also move root doc to start.txt for a better entry point
This commit is contained in:
parent
e7faa2c820
commit
a7bb770e69
|
@ -30,7 +30,7 @@ M.build = function()
|
||||||
f:finish()
|
f:finish()
|
||||||
local lf = writer.Writer({ "ref", lang, "keyword-link" })
|
local lf = writer.Writer({ "ref", lang, "keyword-link" })
|
||||||
lf:write_raw("/", dutil.path_join(
|
lf:write_raw("/", dutil.path_join(
|
||||||
dutil.nspace_to_path(dutil.get_root_ns()), "auto",
|
dutil.nspace_to_path(dutil.get_root_ns()),
|
||||||
"ref", lang, "key", "{FNAME}"
|
"ref", lang, "key", "{FNAME}"
|
||||||
))
|
))
|
||||||
lf:write_nl()
|
lf:write_nl()
|
||||||
|
|
|
@ -23,7 +23,7 @@ M.nspace_to_path = function(ns)
|
||||||
end
|
end
|
||||||
|
|
||||||
M.make_page = function(path, ext)
|
M.make_page = function(path, ext)
|
||||||
return M.path_join(doc_root, "auto", path .. "." .. ext)
|
return M.path_join(doc_root, path .. "." .. ext)
|
||||||
end
|
end
|
||||||
|
|
||||||
M.get_root_ns = function()
|
M.get_root_ns = function()
|
||||||
|
@ -31,7 +31,7 @@ M.get_root_ns = function()
|
||||||
end
|
end
|
||||||
|
|
||||||
M.mkdir_r = function(dirn)
|
M.mkdir_r = function(dirn)
|
||||||
assert(cutil.file_mkpath(M.path_join(doc_root, "auto", dirn)))
|
assert(cutil.file_mkpath(M.path_join(doc_root, dirn)))
|
||||||
end
|
end
|
||||||
|
|
||||||
M.mkdir_p = function(path)
|
M.mkdir_p = function(path)
|
||||||
|
@ -39,7 +39,7 @@ M.mkdir_p = function(path)
|
||||||
end
|
end
|
||||||
|
|
||||||
M.rm_root = function()
|
M.rm_root = function()
|
||||||
cutil.file_rmrf(M.path_join(doc_root, "auto"))
|
cutil.file_rmrf(doc_root)
|
||||||
end
|
end
|
||||||
|
|
||||||
M.init = function(root, rns)
|
M.init = function(root, rns)
|
||||||
|
|
|
@ -73,7 +73,7 @@ local write_include = function(self, tp, name, flags)
|
||||||
if type(name) == "table" then
|
if type(name) == "table" then
|
||||||
if name[#name] == true then
|
if name[#name] == true then
|
||||||
name[#name] = nil
|
name[#name] = nil
|
||||||
name = ":" .. root_nspace .. ":auto:"
|
name = ":" .. root_nspace .. ":"
|
||||||
.. table.concat(name, ":")
|
.. table.concat(name, ":")
|
||||||
elseif name[#name] == false then
|
elseif name[#name] == false then
|
||||||
name[#name] = nil
|
name[#name] = nil
|
||||||
|
@ -272,7 +272,7 @@ writers["dokuwiki"] = util.Object:clone {
|
||||||
if type(target) == "table" then
|
if type(target) == "table" then
|
||||||
if target[#target] == true then
|
if target[#target] == true then
|
||||||
target[#target] = nil
|
target[#target] = nil
|
||||||
target = ":" .. root_nspace .. ":auto:"
|
target = ":" .. root_nspace .. ":"
|
||||||
.. table.concat(target, ":")
|
.. table.concat(target, ":")
|
||||||
elseif target[#target] == false then
|
elseif target[#target] == false then
|
||||||
target[#target] = nil
|
target[#target] = nil
|
||||||
|
|
|
@ -327,7 +327,7 @@ local build_reftable = function(f, title, ctitle, ctype, t, iscl)
|
||||||
end
|
end
|
||||||
|
|
||||||
local build_ref = function()
|
local build_ref = function()
|
||||||
local f = writer.Writer("reference", "EFL Reference")
|
local f = writer.Writer("start", "EFL Reference")
|
||||||
printgen("Generating reference...")
|
printgen("Generating reference...")
|
||||||
|
|
||||||
f:write_editable({ "reference" }, "general")
|
f:write_editable({ "reference" }, "general")
|
||||||
|
@ -1601,7 +1601,7 @@ getopt.parse {
|
||||||
set_theme(opts["graph-theme"])
|
set_theme(opts["graph-theme"])
|
||||||
end
|
end
|
||||||
local rootns = (not opts["n"] or opts["n"] == "")
|
local rootns = (not opts["n"] or opts["n"] == "")
|
||||||
and "develop:efl" or opts["n"]
|
and "develop:api" or opts["n"]
|
||||||
local dr
|
local dr
|
||||||
if not opts["r"] or opts["r"] == "" then
|
if not opts["r"] or opts["r"] == "" then
|
||||||
dr = "dokuwiki/data/pages"
|
dr = "dokuwiki/data/pages"
|
||||||
|
|
Loading…
Reference in New Issue