From 04b2ab0444b838d11417f810b318fa1198c27923 Mon Sep 17 00:00:00 2001 From: lxsang Date: Tue, 15 Sep 2020 12:33:51 +0200 Subject: [PATCH 1/2] Update frontend to Booklet v0.2.x format --- doc/controllers/AntosController.lua | 2 +- doc/controllers/JarvisController.lua | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/doc/controllers/AntosController.lua b/doc/controllers/AntosController.lua index 20a001a..06548dc 100644 --- a/doc/controllers/AntosController.lua +++ b/doc/controllers/AntosController.lua @@ -1,7 +1,7 @@ require(CONTROLLER_ROOT..".doccontroller") DocController:subclass("AntosController", { path_map = { - vfs_path = "home://doc/antos", + vfs_path = "book://", local_path = "/home/mrsang/doc/antos", api_path = "/opt/www/htdocs/doc/antos" }, diff --git a/doc/controllers/JarvisController.lua b/doc/controllers/JarvisController.lua index b4777ca..65c5bb9 100644 --- a/doc/controllers/JarvisController.lua +++ b/doc/controllers/JarvisController.lua @@ -1,7 +1,7 @@ require(CONTROLLER_ROOT..".doccontroller") DocController:subclass("JarvisController", { path_map = { - vfs_path = "home://doc/jarvis", + vfs_path = "book://", local_path = "/home/mrsang/doc/jarvis", }, name = "jarvis" From 073337eabe237fae325da5a88642aa6a08d7e3d5 Mon Sep 17 00:00:00 2001 From: lxsang Date: Tue, 15 Sep 2020 16:54:50 +0200 Subject: [PATCH 2/2] update AntOS code --- doc/assets/style.css | 7 ++++++- doc/controllers/AntosController.lua | 3 ++- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/doc/assets/style.css b/doc/assets/style.css index 82245c7..e56b454 100644 --- a/doc/assets/style.css +++ b/doc/assets/style.css @@ -263,7 +263,12 @@ div.md-content p.result-header a::before{ /* #container .blogentry .hljs-ln td.hljs-ln-code { padding-left: 10px; } */ -img {max-width:100%} +#renderer img { + max-width:100%; + display: block; + margin-left: auto; + margin-right: auto; +} a { color: #333f67; diff --git a/doc/controllers/AntosController.lua b/doc/controllers/AntosController.lua index 06548dc..795f60c 100644 --- a/doc/controllers/AntosController.lua +++ b/doc/controllers/AntosController.lua @@ -7,6 +7,7 @@ DocController:subclass("AntosController", { }, name = "antos", elinks = { - { name = "API", url = "https://doc.iohub.dev/antos/api/index.html" } + { name = "API", url = "https://doc.iohub.dev/antos/api/index.html" }, + { name = "Code", url = "https://github.com/lxsang/antos" } } })