1
0
mirror of https://github.com/lxsang/antd-web-apps synced 2025-07-24 01:29:48 +02:00

update antdoc

This commit is contained in:
lxsang
2020-06-24 19:19:20 +02:00
parent c36ca7b8fb
commit 1af8436523
4 changed files with 37 additions and 5 deletions

View File

@ -4,5 +4,8 @@ DocController:subclass("AntosController", {
vfs_path = "home://testws/antos",
local_path = "/home/mrsang/testws/antos"
},
name = "antos"
name = "antos",
elinks = {
{ name = "API", url = "https://doc.iohub.dev/antos/api/" }
}
})

View File

@ -86,6 +86,8 @@ function DocController:index(...)
local toc = self:loadTOC()
toc.controller = self.name
self.template:set("toc", toc)
self.template:set("elinks", self.elinks)
-- read data from the parameter
local path = nil
if args[1] then
@ -153,6 +155,7 @@ function DocController:search(...)
self.template:set("data", result)
self.template:set("controller", self.name)
self.template:set("map", self.path_map)
self.template:set("elinks", self.elinks)
else
return self:actionnotfound(table.unpack(args))
end