From 882f33859c406186e23cea986ec450f05076238b Mon Sep 17 00:00:00 2001 From: Offray Luna Date: Thu, 20 Jun 2024 12:15:31 -0500 Subject: [PATCH] Web preview for pages not located in the default Lepiter folder. --- src/MiniDocs/LePage.extension.st | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/MiniDocs/LePage.extension.st b/src/MiniDocs/LePage.extension.st index fa264ac..14ea70d 100644 --- a/src/MiniDocs/LePage.extension.st +++ b/src/MiniDocs/LePage.extension.st @@ -162,7 +162,10 @@ LePage >> latestEditTime: aLeTime [ LePage >> localHostAddress [ | localUrl route | MiniDocsServer teapot server isRunning ifFalse: [ MiniDocsServer restart ]. - route := MiniDocsServer teapot staticRouter prefix joinUsing: '/'. + route := self storage path segments joinUsing: '/'. + MiniDocsServer teapot + serveStatic: ('/', route, '/', self markdeepFileName) + from: self storage / self markdeepFileName. localUrl := MiniDocsServer teapot server localUrl asString. ^ localUrl, route, '/', self markdeepFileName ]