diff --git a/src/MiniDocs/LePageHeaderBuilder.extension.st b/src/MiniDocs/LePageHeaderBuilder.extension.st index 6352ed1..61f9902 100644 --- a/src/MiniDocs/LePageHeaderBuilder.extension.st +++ b/src/MiniDocs/LePageHeaderBuilder.extension.st @@ -24,7 +24,7 @@ LePageHeaderBuilder >> addRefreshWebViewButton [ label: 'Refresh web view'; icon: BrGlamorousVectorIcons refresh; action: [ :aButton | - self page asMarkdeep exportAsFileOn: (self page storage / self page markdownFileName). + self page asMarkdeep exportAsFileOn: (self page storage / self page markdeepFileName). aButton phlow spawnObject: self page localHostAddress ]. self toolbarElement addItem: newButton. ] diff --git a/src/MiniDocs/MiniDocsServer.class.st b/src/MiniDocs/MiniDocsServer.class.st index 3a407bb..918dbdc 100644 --- a/src/MiniDocs/MiniDocsServer.class.st +++ b/src/MiniDocs/MiniDocsServer.class.st @@ -30,11 +30,13 @@ MiniDocsServer >> addStorage: anObject [ MiniDocsServer >> initStorageRoutes [ super initTeapot. self storage: FileLocator documents / 'lepiter' / 'default'. + self teapot + serveStatic: '/lepiter/doc' from: self storage fullName. ] { #category : #accessing } MiniDocsServer >> start [ - self initTeapot. + self initStorageRoutes. super start. ]