Add .RegularPagesRecursive

Fixes #6411
This commit is contained in:
Bjørn Erik Pedersen
2020-03-16 11:37:57 +01:00
parent 94fb4dc3dd
commit 03b93bb988
8 changed files with 100 additions and 2 deletions

View File

@@ -803,6 +803,12 @@ func (b *pagesMapBucket) getPages() page.Pages {
return b.pages
}
func (b *pagesMapBucket) getPagesRecursive() page.Pages {
pages := b.owner.treeRef.collectPagesRecursive()
page.SortByDefault(pages)
return pages
}
func (b *pagesMapBucket) getPagesAndSections() page.Pages {
b.pagesAndSectionsInit.Do(func() {
b.pagesAndSections = b.owner.treeRef.collectPagesAndSections()