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

View File

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