Converting snippet subrees to Lepiter pages.
This commit is contained in:
parent
0b66b7513c
commit
2bcf67a132
@ -12,9 +12,9 @@ LeSnippet class >> fromMetaMarkdeep: div [
|
|||||||
]
|
]
|
||||||
|
|
||||||
{ #category : #'*MiniDocs' }
|
{ #category : #'*MiniDocs' }
|
||||||
LeSnippet >> moveTo: pageName [
|
LeSnippet >> moveToPageTitled: pageName [
|
||||||
| db origin destination thisSnippet |
|
| db origin destination thisSnippet |
|
||||||
thisSnippet := self snippetModel.
|
thisSnippet := self.
|
||||||
db := self page database.
|
db := self page database.
|
||||||
destination := db pageNamed: pageName.
|
destination := db pageNamed: pageName.
|
||||||
origin := db pageNamed: thisSnippet page title.
|
origin := db pageNamed: thisSnippet page title.
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
Extension { #name : #LeTextCoderSnippetElement }
|
Extension { #name : #LeTextCoderSnippetElement }
|
||||||
|
|
||||||
{ #category : #'*MiniDocs' }
|
{ #category : #'*MiniDocs' }
|
||||||
LeTextCoderSnippetElement >> moveTo: pageName [
|
LeTextCoderSnippetElement >> moveToPageTitled: pageName [
|
||||||
| db origin destination |
|
| db origin destination |
|
||||||
db := self page database.
|
db := self page database.
|
||||||
destination := db pageNamed: pageName.
|
destination := db pageNamed: pageName.
|
||||||
|
@ -1,5 +1,17 @@
|
|||||||
Extension { #name : #LeTextSnippet }
|
Extension { #name : #LeTextSnippet }
|
||||||
|
|
||||||
|
{ #category : #'*MiniDocs' }
|
||||||
|
LeTextSnippet >> asLePage [
|
||||||
|
| page |
|
||||||
|
page := LePage new
|
||||||
|
initializeTitle: self contentAsString.
|
||||||
|
self database addPage: page.
|
||||||
|
self childrenDo: [:child |
|
||||||
|
child moveToPageTitled: page title
|
||||||
|
].
|
||||||
|
^ page.
|
||||||
|
]
|
||||||
|
|
||||||
{ #category : #'*MiniDocs' }
|
{ #category : #'*MiniDocs' }
|
||||||
LeTextSnippet >> contentFrom: markdeepDiv [
|
LeTextSnippet >> contentFrom: markdeepDiv [
|
||||||
|
|
||||||
|
@ -65,7 +65,7 @@ MiniDocs class >> installYamlToJson [
|
|||||||
command: 'nim';
|
command: 'nim';
|
||||||
arguments: {'c'. self yamlToJsonSourceCode fullName};
|
arguments: {'c'. self yamlToJsonSourceCode fullName};
|
||||||
runAndWaitOnExitDo: [ :process :outString |
|
runAndWaitOnExitDo: [ :process :outString |
|
||||||
(self yamlToJsonSourceCode parent / self yamlToJsonSourceCode basenameWithoutExtension) moveTo: MiniDocs appFolder asFileReference.
|
(self yamlToJsonSourceCode parent / self yamlToJsonSourceCode basenameWithoutExtension) moveToPageTitled: MiniDocs appFolder asFileReference.
|
||||||
^ MiniDocs appFolder ]
|
^ MiniDocs appFolder ]
|
||||||
]
|
]
|
||||||
|
|
||||||
|
@ -43,7 +43,7 @@ NanoID class >> install [
|
|||||||
command: 'nim';
|
command: 'nim';
|
||||||
arguments: {'c'. self scriptSourceCode fullName};
|
arguments: {'c'. self scriptSourceCode fullName};
|
||||||
runAndWaitOnExitDo: [ :process :outString |
|
runAndWaitOnExitDo: [ :process :outString |
|
||||||
(self scriptSourceCode parent / (self scriptSourceCode) basenameWithoutExtension) moveTo: MiniDocs appFolder asFileReference.
|
(self scriptSourceCode parent / (self scriptSourceCode) basenameWithoutExtension) moveToPageTitled: MiniDocs appFolder asFileReference.
|
||||||
^ MiniDocs appFolder ]
|
^ MiniDocs appFolder ]
|
||||||
]
|
]
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user