Fixing STON wiki exportation.

This commit is contained in:
Offray Vladimir Luna Cárdenas 2023-05-19 09:54:55 -05:00
parent ad3e89d891
commit 9a4a87a45e
1 changed files with 8 additions and 1 deletions

View File

@ -6,7 +6,8 @@ Class {
'tableOfContents',
'titles',
'folder',
'currentLanguage'
'currentLanguage',
'languages'
],
#category : #'MiniDocs-Model'
}
@ -80,6 +81,11 @@ PubPub >> exportMarkdeepFiles [
^ self languageFolder
]
{ #category : #accessing }
PubPub >> extractContents [
^ self frontPage xpath: '//div[@class="layout-pubs-block"]'
]
{ #category : #accessing }
PubPub >> folder [
^ folder ensureCreateDirectory
@ -94,6 +100,7 @@ PubPub >> folder: localDirectory [
PubPub >> frontPage [
"This should scrap contents of the book's front-page and translate them into Markdeep,
according to our templates."
^ (XMLHTMLParser on: (self address asUrl retrieveContents)) parseDocument
]
{ #category : #accessing }