1
0
mirror of https://github.com/lxsang/antd-web-apps synced 2025-07-27 11:09:48 +02:00

fix: update the doc application to the latest API
All checks were successful
gitea-sync/antd-web-apps/pipeline/head This commit looks good

This commit is contained in:
DanyLE
2023-04-27 14:18:15 +02:00
parent 6da933da67
commit a05507123c
7 changed files with 13 additions and 18 deletions

View File

@ -2,12 +2,11 @@ require(CONTROLLER_ROOT..".doccontroller")
DocController:subclass("AntosController", {
path_map = {
vfs_path = "book://",
local_path = "/home/mrsang/doc/antos",
api_path = "/opt/www/htdocs/doc/antos"
local_path = DOC_DIR.."/antos",
},
name = "antos",
elinks = {
{ name = "API", url = "https://doc.iohub.dev/antos/api/index.html" },
{ name = "API", url = "https://ci.iohub.dev/public/antos-release/doc/1.2.x/" },
{ name = "Code", url = "https://github.com/lxsang/antos" }
}
})

View File

@ -8,7 +8,7 @@ function IndexController:index(...)
local md = require("md")
local callback = function(s) content = content .. s end
md.to_html(file:read("*a"), callback)
file.close()
file:close()
self.template:set("data", content)
end
return true

View File

@ -2,7 +2,7 @@ require(CONTROLLER_ROOT..".doccontroller")
DocController:subclass("JarvisController", {
path_map = {
vfs_path = "book://",
local_path = "/home/mrsang/doc/jarvis",
local_path = DOC_DIR.."/jarvis",
},
name = "jarvis"
})

View File

@ -167,7 +167,7 @@ function DocController:index(...)
local md = require("md")
local callback = function(s) content = content .. s end
md.to_html(pre_process_md(file:read("*a"), self), callback)
file.close()
file:close()
content, has_3d = post_process_md(content, self)
-- replace some display plugins