@redpanda-data/docs-extensions-and-macros 3.4.1 → 3.4.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -16,7 +16,7 @@ module.exports.register = function ({ config }) {
|
|
|
16
16
|
const unlistedPages = contentCatalog
|
|
17
17
|
.findBy({ component, version, family: 'page' })
|
|
18
18
|
.reduce((collector, page) => {
|
|
19
|
-
if (siteCatalog.unpublishedPages
|
|
19
|
+
if (siteCatalog.unpublishedPages?.includes(page.pub.url)) {
|
|
20
20
|
logger.info({ file: page.src, source: page.src.origin }, 'removing unpublished page from nav tree');
|
|
21
21
|
removePageFromNav(nav, page.pub.url); // Remove the page from navigationCatalog
|
|
22
22
|
return collector; // Skip adding this page to the collector
|