From ff9fbb92f9aa101da73be804fa0f22788da76e9c Mon Sep 17 00:00:00 2001 From: Offray Luna Date: Wed, 21 Aug 2024 11:54:25 -0500 Subject: [PATCH] Debugging page importation. --- src/MiniDocs/LeDatabase.extension.st | 21 ++++++++++++++++----- 1 file changed, 16 insertions(+), 5 deletions(-) diff --git a/src/MiniDocs/LeDatabase.extension.st b/src/MiniDocs/LeDatabase.extension.st index 9ac431a..de501c0 100644 --- a/src/MiniDocs/LeDatabase.extension.st +++ b/src/MiniDocs/LeDatabase.extension.st @@ -61,11 +61,22 @@ LeDatabase >> addPageFromMarkdeep: markdeepDocTree withRemote: externalDocLocati (self hasBlockUID: snippet uid) ifTrue: [ | existingPage | existingPage := self pages - detect: [ :pageTemp | pageTemp includesSnippetUid: snippet uid ] ifNone: [ ^ snippet ]. - self importErrorForLocal: existingPage withRemote: externalDocLocation. - ^ self ] - ifFalse: [ snippet database: self. - self registerSnippet: snippet ] ]. + detect: [ :pageTemp | pageTemp includesSnippetUid: snippet uid ] + ifFound: [ + self importErrorForLocal: existingPage withRemote: externalDocLocation. + ^ self + ] + ifNone: [ + snippet database: self. + self registerSnippet: snippet + ]. + + ] + ifFalse: [ + snippet database: self. + self registerSnippet: snippet + ] + ]. self addPage: page. ^ page ]