@redpanda-data/docs-extensions-and-macros 4.17.1 → 4.17.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.
@@ -38,7 +38,8 @@ function generateIndex (playbook, contentCatalog, { indexLatestOnly = false, exc
38
38
 
39
39
  // Select indexable pages
40
40
  const pages = contentCatalog.getPages((page) => {
41
- if (!page.out || page.asciidoc?.attributes?.noindex != null) return
41
+ // Skip pages without output, noindex pages, and field-only pages (internal includes)
42
+ if (!page.out || page.asciidoc?.attributes?.noindex != null || page.isFieldOnlyPage) return
42
43
  return {}
43
44
  })
44
45
 
@@ -20,6 +20,9 @@ module.exports.register = function ({ config }) {
20
20
  return collector; // Skip adding this page to the collector
21
21
  }
22
22
 
23
+ // Skip field-only pages (generated for includes, not standalone navigation)
24
+ if (page.isFieldOnlyPage) return collector;
25
+
23
26
  if (!(page.pub.url in navEntriesByUrl) && page.pub.url !== defaultUrl) {
24
27
  logger.warn({ file: page.src, source: page.src.origin }, 'detected unlisted page');
25
28
  return collector.concat(page);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@redpanda-data/docs-extensions-and-macros",
3
- "version": "4.17.1",
3
+ "version": "4.17.2",
4
4
  "description": "Antora extensions and macros developed for Redpanda documentation.",
5
5
  "keywords": [
6
6
  "antora",