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
All checks were successful
gitea-sync/antd-web-apps/pipeline/head This commit looks good
This commit is contained in:
@ -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" }
|
||||
}
|
||||
})
|
||||
|
@ -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
|
||||
|
@ -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"
|
||||
})
|
||||
|
@ -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
|
||||
|
||||
|
Reference in New Issue
Block a user