1
0
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

This commit is contained in:
DanyLE
2023-05-22 13:53:41 +02:00
parent a05507123c
commit b65bee0323
8 changed files with 23 additions and 30 deletions

View File

@ -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 = ""

View File

@ -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"

View File

@ -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 = () => {