Modularizing code and improving extensions.

This commit is contained in:
Offray Vladimir Luna Cárdenas 2022-01-22 10:23:56 -05:00
parent c41cb4c2d2
commit 05d2f3b182
8 changed files with 31 additions and 12 deletions

View File

@ -15,7 +15,7 @@ BaselineOfGrafoscopioUtils >> baseline: spec [
self fossil: spec.
spec baseline: 'PetitParser' with: [spec
repository: 'github://moosetechnology/PetitParser/src';
repository: 'github://moosetechnology/PetitParser:v3.x.x/src';
loads: #('Minimal' 'Indent' 'YAML')].
"Packages"

View File

@ -5,7 +5,7 @@ or other related projects.
Class {
#name : #GrafoscopioUtils,
#superclass : #Object,
#category : #'Grafoscopio-Utils'
#category : #'Grafoscopio-Utils-Core'
}
{ #category : #utilities }
@ -64,13 +64,11 @@ GrafoscopioUtils class >> exportAsSton: anObject on: aFileReference [
aFileReference ensureCreateFile.
aFileReference writeStreamDo: [ :stream |
(STON writer on: stream)
newLine: String crlf;
newLine: String lf;
prettyPrint: true;
keepNewLines: true;
nextPut: anObject ].
^ aFileReference
]
{ #category : #'graphical interface' }

View File

@ -14,7 +14,7 @@ Class {
'contents',
'url'
],
#category : #'Grafoscopio-Utils'
#category : #'Grafoscopio-Utils-Core'
}
{ #category : #'as yet unclassified' }

View File

@ -0,0 +1,19 @@
Extension { #name : #LePage }
{ #category : #'*Grafoscopio-Utils-Core' }
LePage >> asMarkdeep [
| bodyStream |
bodyStream := '' writeStream.
self preorderTraversal do: [:snippet |
bodyStream nextPutAll: snippet contentAsString; lf; lf.
].
^ Markdeep new
body: bodyStream contents
contents.
]
{ #category : #'*Grafoscopio-Utils-Core' }
LePage >> asMarkdeepInto: aFileLocator [
self preorderTraversal
]

View File

@ -11,9 +11,11 @@ Class {
'tail',
'body',
'language',
'markdownFile'
'markdownFile',
'config',
'title'
],
#category : #'Grafoscopio-Utils'
#category : #'Grafoscopio-Utils-Core'
}
{ #category : #'as yet unclassified' }

View File

@ -7,7 +7,7 @@ Class {
#instVars : [
'file'
],
#category : #'Grafoscopio-Utils'
#category : #'Grafoscopio-Utils-Core'
}
{ #category : #persistence }

View File

@ -7,7 +7,7 @@ Class {
#classInstVars : [
'executable'
],
#category : #'Grafoscopio-Utils'
#category : #'Grafoscopio-Utils-Core'
}
{ #category : #'as yet unclassified' }

View File

@ -22,7 +22,7 @@ Class {
'rootFolder',
'manifests'
],
#category : #'Grafoscopio-Utils'
#category : #'Grafoscopio-Utils-Core'
}
{ #category : #utilities }