Fixing web preview for documents via PharoChrome.
This commit is contained in:
parent
c8ce8d0068
commit
429e04bef7
@ -93,7 +93,7 @@ LePage >> detectParentSnippetWithUid: uidString [
|
||||
{ #category : #'*MiniDocs' }
|
||||
LePage >> exportedFileName [
|
||||
| sanitized |
|
||||
sanitized := self title asDashedLowercase copyWithoutAll: #($/ $:).
|
||||
sanitized := self title asDashedLowercase romanizeAccents copyWithoutAll: #($/ $:).
|
||||
^ sanitized , '--' , (self uidString copyFrom: 1 to: 5)
|
||||
]
|
||||
|
||||
|
@ -16,6 +16,14 @@ MiniDocsServer class >> build [
|
||||
self start
|
||||
]
|
||||
|
||||
{ #category : #accessing }
|
||||
MiniDocsServer class >> defaultConfiguration [
|
||||
"Override to set more default values"
|
||||
^ {
|
||||
#port -> 1701
|
||||
}
|
||||
]
|
||||
|
||||
{ #category : #accessing }
|
||||
MiniDocsServer class >> listLepiterDocs: aRequest [
|
||||
<REST_API: 'GET' pattern: 'lepiter'>
|
||||
@ -41,7 +49,6 @@ MiniDocsServer >> addStorage: anObject [
|
||||
|
||||
{ #category : #accessing }
|
||||
MiniDocsServer >> initRoutes [
|
||||
super initTeapot.
|
||||
self storage: FileLocator documents / 'lepiter' / 'default'.
|
||||
self teapot
|
||||
serveStatic: '/lepiter/doc' from: self storage fullName.
|
||||
@ -51,6 +58,7 @@ MiniDocsServer >> initRoutes [
|
||||
|
||||
{ #category : #accessing }
|
||||
MiniDocsServer >> start [
|
||||
self class defaultPort: 1701.
|
||||
self initRoutes.
|
||||
super start.
|
||||
]
|
||||
|
Loading…
Reference in New Issue
Block a user