Minor improves on documentation and markup utilities.
This commit is contained in:
parent
fbc60bd2cb
commit
ce7b7c5810
@ -47,7 +47,7 @@ GrafoscopioDocumentation class >> update [
|
|||||||
|
|
||||||
{ #category : #updating }
|
{ #category : #updating }
|
||||||
GrafoscopioDocumentation class >> updateAll [
|
GrafoscopioDocumentation class >> updateAll [
|
||||||
{GrafoscopioDocs . DatavizDocs . OffshoreLeaksDocs} do: [ :docs | docs update ]
|
GfUIHelpers docsCollection do: [ :docs | docs update ]
|
||||||
]
|
]
|
||||||
|
|
||||||
{ #category : #updating }
|
{ #category : #updating }
|
||||||
|
@ -14,8 +14,10 @@ Class {
|
|||||||
MarkupFile class >> exportAsFileOn: aFileReferenceOrFileName containing: text [
|
MarkupFile class >> exportAsFileOn: aFileReferenceOrFileName containing: text [
|
||||||
| file |
|
| file |
|
||||||
file := aFileReferenceOrFileName asFileReference.
|
file := aFileReferenceOrFileName asFileReference.
|
||||||
|
file ensureDelete.
|
||||||
file exists ifFalse: [ file ensureCreateFile ].
|
file exists ifFalse: [ file ensureCreateFile ].
|
||||||
file writeStreamDo: [ :stream |
|
file writeStreamDo: [ :stream |
|
||||||
stream nextPutAll: text withInternetLineEndings].
|
stream nextPutAll: text withInternetLineEndings].
|
||||||
self inform: 'Exported as: ', String cr, file fullName
|
self inform: 'Exported as: ', String cr, file fullName.
|
||||||
|
^ file
|
||||||
]
|
]
|
||||||
|
Loading…
Reference in New Issue
Block a user