diff --git a/src/MiniDocs/LePage.extension.st b/src/MiniDocs/LePage.extension.st index ae17b9a..38ee6a2 100644 --- a/src/MiniDocs/LePage.extension.st +++ b/src/MiniDocs/LePage.extension.st @@ -129,6 +129,7 @@ LePage >> latestEditTime: aLeTime [ { #category : #'*MiniDocs' } LePage >> localHostAddress [ | localUrl route | + MiniDocsServer teapot server isRunning ifFalse: [ MiniDocsServer start ]. route := MiniDocsServer teapot staticRouter prefix joinUsing: '/'. localUrl := MiniDocsServer teapot server localUrl asString. ^ localUrl, route, '/', self markdeepFileName diff --git a/src/MiniDocs/MiniDocsServer.class.st b/src/MiniDocs/MiniDocsServer.class.st index 372e41a..86a864f 100644 --- a/src/MiniDocs/MiniDocsServer.class.st +++ b/src/MiniDocs/MiniDocsServer.class.st @@ -45,6 +45,8 @@ MiniDocsServer >> initRoutes [ self storage: FileLocator documents / 'lepiter' / 'default'. self teapot serveStatic: '/lepiter/doc' from: self storage fullName. + self teapot + GET: '/lepiter' -> 'A list of Mardeep exported Lepiter docs will appear soon...' ] { #category : #accessing }