Commit acf9d882ef0485006d3b8c3afdacf24d970090a1

Jeremy JEANNE 2025-04-07T16:36:11

Scroll menu left

diff --git a/test/httpd/app/controllers/doc_controller.kc3 b/test/httpd/app/controllers/doc_controller.kc3
index d807d3c..34be0b2 100644
--- a/test/httpd/app/controllers/doc_controller.kc3
+++ b/test/httpd/app/controllers/doc_controller.kc3
@@ -113,6 +113,7 @@ defmodule DocController do
     slug = Str.subst(slug, " ", "-")
     slug = Str.subst(slug, ".", "-")
     slug = Str.subst(slug, "/", "-")
+    slug = "doc #{slug}"
     html = File.read_all(path_html)
     page = DocView.render_show(menu, html)
     body = LayoutView.render(slug, title, page, url)
@@ -126,6 +127,9 @@ defmodule DocController do
     md = File.read_all(path_md)
     [title | _] = Markdown.titles(md)
     slug = Str.subst(title, " ", "-")
+    slug = Str.subst(slug, ".", "-")
+    slug = Str.subst(slug, "/", "-")
+    slug = "doc #{slug}"
     html = Markdown.to_html_str(md)
     page = DocView.render_show(menu, html)
     body = LayoutView.render(slug, title, page, url)
diff --git a/test/httpd/assets/css/app.scss b/test/httpd/assets/css/app.scss
index 00f2dcf..fcfce4e 100644
--- a/test/httpd/assets/css/app.scss
+++ b/test/httpd/assets/css/app.scss
@@ -22,6 +22,15 @@ $code-font-size: $font-size-base * 1.1;
 @import "./pixel.scss";
 
 // page
+
+footer {
+    margin-left: 10em;
+}
+
+.page {
+    margin-left: 10em;
+}
+
 div.page {
     padding-top: 3em;
 }
@@ -222,6 +231,11 @@ h1,h2,h3,h4,h5,h6 {
     }
 }
 .left-col {
+    margin-left: -10em;
+    position: fixed;
+    overflow: scroll;
+    bottom: 0;
+    top: 3em;
     padding-left: 0.75rem;
     ul {
         list-style: none;