PubPub exporting to Markdeep completed.

This commit is contained in:
Offray Vladimir Luna Cárdenas 2023-05-16 12:06:12 -05:00
parent 5ab022b860
commit ad3e89d891

View File

@ -65,6 +65,21 @@ PubPub >> downloadContents [
^ workingDirectory ^ workingDirectory
] ]
{ #category : #accessing }
PubPub >> exportMarkdeepFiles [
| markdownFiles markdeepDocs |
markdownFiles := self languageFolder allChildren select: [:file |
file basename endsWith: '.md'
].
markdeepDocs := markdownFiles collect: [:file |
(Markdeep fromMarkdownFile:file)
].
markdeepDocs do: [:each |
each fromPubPubToMarkdeep exportAsFile
].
^ self languageFolder
]
{ #category : #accessing } { #category : #accessing }
PubPub >> folder [ PubPub >> folder [
^ folder ensureCreateDirectory ^ folder ensureCreateDirectory
@ -75,6 +90,17 @@ PubPub >> folder: localDirectory [
folder := localDirectory folder := localDirectory
] ]
{ #category : #accessing }
PubPub >> frontPage [
"This should scrap contents of the book's front-page and translate them into Markdeep,
according to our templates."
]
{ #category : #accessing }
PubPub >> languageFolder [
^ self folder / self currentLanguage
]
{ #category : #accessing } { #category : #accessing }
PubPub >> printOn: aStream [ PubPub >> printOn: aStream [
super printOn: aStream. super printOn: aStream.