From d3efdf7238a4a6d2b0baad85c0f43e676860f758 Mon Sep 17 00:00:00 2001 From: ruidajo Date: Mon, 3 Oct 2022 17:50:44 -0500 Subject: [PATCH] Fixing page and snippets database registration for importing markdeep format pages. --- src/MiniDocs/LeDatabase.extension.st | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/MiniDocs/LeDatabase.extension.st b/src/MiniDocs/LeDatabase.extension.st index c159063..f19778e 100644 --- a/src/MiniDocs/LeDatabase.extension.st +++ b/src/MiniDocs/LeDatabase.extension.st @@ -23,6 +23,8 @@ LeDatabase >> addPageFromMarkdeep: markdeepDocTree [ createEmail: (remoteMetadata at: 'creator'); editEmail: (remoteMetadata at: 'modifier'). snippets do: [ :snippet | page addSnippet: snippet ]. + page children collect: [ :snippet | snippet database: self. self registerSnippet: snippet ]. + self addPage: page. ^ page ]