f:finish()
local lf = writer.Writer({ "ref", lang, "keyword-link" })
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}"
))
lf:write_nl()
end
M.make_page = function(path, ext)
- return M.path_join(doc_root, "auto", path .. "." .. ext)
+ return M.path_join(doc_root, path .. "." .. ext)
end
M.get_root_ns = function()
end
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
M.mkdir_p = function(path)
end
M.rm_root = function()
- cutil.file_rmrf(M.path_join(doc_root, "auto"))
+ cutil.file_rmrf(doc_root)
end
M.init = function(root, rns)
if type(name) == "table" then
if name[#name] == true then
name[#name] = nil
- name = ":" .. root_nspace .. ":auto:"
+ name = ":" .. root_nspace .. ":"
.. table.concat(name, ":")
elseif name[#name] == false then
name[#name] = nil
if type(target) == "table" then
if target[#target] == true then
target[#target] = nil
- target = ":" .. root_nspace .. ":auto:"
+ target = ":" .. root_nspace .. ":"
.. table.concat(target, ":")
elseif target[#target] == false then
target[#target] = nil
end
local build_ref = function()
- local f = writer.Writer("reference", "EFL Reference")
+ local f = writer.Writer("start", "EFL Reference")
printgen("Generating reference...")
f:write_editable({ "reference" }, "general")
set_theme(opts["graph-theme"])
end
local rootns = (not opts["n"] or opts["n"] == "")
- and "develop:efl" or opts["n"]
+ and "develop:api" or opts["n"]
local dr
if not opts["r"] or opts["r"] == "" then
dr = "dokuwiki/data/pages"