mirror of
https://github.com/lxsang/antd-web-apps
synced 2025-07-26 02:29:47 +02:00
update: working version compatible with the latest version of silk and antd
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:
@ -1,7 +1,6 @@
|
||||
BaseController:subclass("IndexController")
|
||||
|
||||
function IndexController:index(...)
|
||||
-- TODO: add description to router
|
||||
local file = io.open(DOC_COVER, "r")
|
||||
if file then
|
||||
local content = ""
|
||||
|
@ -14,8 +14,7 @@ if HEADER.Host then
|
||||
else
|
||||
HTTP_ROOT = "https://doc.iohub.dev"
|
||||
end
|
||||
-- TODO remove me
|
||||
HTTP_ROOT = HTTP_ROOT.."/next/doc"
|
||||
|
||||
|
||||
-- class path: path.to.class
|
||||
CONTROLLER_ROOT = "doc.controllers"
|
||||
@ -23,8 +22,7 @@ MODEL_ROOT = "doc.models"
|
||||
-- file path: path/to/file
|
||||
VIEW_ROOT = WWW_ROOT..DIR_SEP.."views"
|
||||
|
||||
-- TODO change me
|
||||
DOC_DIR = "/home/dany/doc"
|
||||
DOC_DIR = "/opt/www/doc"
|
||||
DOC_COVER = DOC_DIR.."/library.md"
|
||||
|
||||
package.path = package.path..";"..__ROOT__.."/os/libs/?.lua"
|
||||
|
@ -154,7 +154,7 @@ end
|
||||
</div>
|
||||
|
||||
<div id = "bottom">
|
||||
Powered by antd server, (c) 2019 - <?=os.date("*t").year?> Xuan Sang LE
|
||||
Powered by antd server, (c) 2019 - <?=os.date("*t").year?> Dany LE
|
||||
</div>
|
||||
<script>
|
||||
const toc_class_toggle = () => {
|
||||
|
Reference in New Issue
Block a user