Merge 6055fd04f4
This commit is contained in:
commit
5b04df81b7
@ -43,6 +43,13 @@ BreaFile >> contents [
|
|||||||
(self name endsWith: '.json') ifTrue: [ ^ NeoJSONObject fromString: file contents ]
|
(self name endsWith: '.json') ifTrue: [ ^ NeoJSONObject fromString: file contents ]
|
||||||
]
|
]
|
||||||
|
|
||||||
|
{ #category : #accessing }
|
||||||
|
BreaFile >> file [
|
||||||
|
self folder ifNil: [ ^ self ].
|
||||||
|
self name ifNil: [ ^ self ].
|
||||||
|
^ self folder / self name.
|
||||||
|
]
|
||||||
|
|
||||||
{ #category : #accessing }
|
{ #category : #accessing }
|
||||||
BreaFile >> folder [
|
BreaFile >> folder [
|
||||||
^ folder
|
^ folder
|
||||||
|
@ -26,6 +26,9 @@ Class {
|
|||||||
BreaPage >> bodyContentsAsHTML [
|
BreaPage >> bodyContentsAsHTML [
|
||||||
| sourcePage |
|
| sourcePage |
|
||||||
self contentsFile ifNil: [ ^ self ].
|
self contentsFile ifNil: [ ^ self ].
|
||||||
|
Smalltalk os isWindows ifTrue: [
|
||||||
|
^ Pandoc markdownToHtml: self file file
|
||||||
|
].
|
||||||
sourcePage := FileLocator temp / 'wikiPage.md'.
|
sourcePage := FileLocator temp / 'wikiPage.md'.
|
||||||
MarkupFile exportAsFileOn: sourcePage containing: self contents.
|
MarkupFile exportAsFileOn: sourcePage containing: self contents.
|
||||||
^ Pandoc markdownToHtml: sourcePage
|
^ Pandoc markdownToHtml: sourcePage
|
||||||
|
@ -143,7 +143,7 @@ BreaTheme >> folder: anObject [
|
|||||||
BreaTheme >> installInto: aFolder [
|
BreaTheme >> installInto: aFolder [
|
||||||
| zippedFile |
|
| zippedFile |
|
||||||
self url ifNil: [ ^ self ].
|
self url ifNil: [ ^ self ].
|
||||||
zippedFile := self downloadInto: aFolder.
|
zippedFile := self downloadInto: FileLocator temp.
|
||||||
(ZipArchive new readFrom: zippedFile) extractAllTo: aFolder.
|
(ZipArchive new readFrom: zippedFile) extractAllTo: aFolder.
|
||||||
^ aFolder
|
^ aFolder
|
||||||
]
|
]
|
||||||
|
Loading…
Reference in New Issue
Block a user