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:
@ -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/" }
|
||||
}
|
||||
})
|
||||
|
@ -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
|
||||
|
Reference in New Issue
Block a user