diff --git a/doc/assets/style.css b/doc/assets/style.css index dbeb310..8879b65 100644 --- a/doc/assets/style.css +++ b/doc/assets/style.css @@ -117,8 +117,8 @@ div.search-icon { width: 35px; } div.doc-toc { - width: 300px; - /* font-size: 11px; */ + max-width: 80%; + padding-right: 10px; background-color: #e3e3e3; color: #2c2c2c; overflow: auto; @@ -127,7 +127,16 @@ div.doc-toc { bottom: 30px; border-right: 1px solid #c9c9c9; padding-top: 10px; + box-shadow: 2px 0px 7px #878887; + z-index: 20; } +button#btn_toc { + width: 33px; + height: 33px; + position: fixed; + border: 1px solid #dadddd; +} + div.doc-toc a { text-decoration: none; color: #2c2c2c; @@ -178,7 +187,7 @@ div.doc-toc a.highlight { div.doc-content { display: block; - width: calc(100% - 300px); + width: calc(100% - 30px); float: right; padding-left: 10px; } diff --git a/doc/controllers/doccontroller.lua b/doc/controllers/doccontroller.lua index 7783102..b9c6a5c 100644 --- a/doc/controllers/doccontroller.lua +++ b/doc/controllers/doccontroller.lua @@ -13,7 +13,7 @@ local pre_process_md = function(str, obj) "%%-") if apath then apath = apath:gsub(" ", "%%%%20") - print(apath) + --print(apath) content = content:gsub(pattern, "![](" .. HTTP_ROOT .. "/" .. obj.name .. "/asset/" .. apath .. ")") end diff --git a/doc/views/default/layout.ls b/doc/views/default/layout.ls index aea9997..c1fa260 100644 --- a/doc/views/default/layout.ls +++ b/doc/views/default/layout.ls @@ -111,7 +111,8 @@ local url = __main__:get("url") -
+ +
-
+