@redpanda-data/docs-extensions-and-macros 5.12.1 → 5.12.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.
|
@@ -273,7 +273,14 @@ function buildComponentVersionNavMap(components) {
|
|
|
273
273
|
map.set(component.name, {
|
|
274
274
|
component,
|
|
275
275
|
versionMap,
|
|
276
|
-
|
|
276
|
+
// component.latest, not component.latestVersion: the latter is not part of
|
|
277
|
+
// Antora's component model (content-catalog.js sets `latest` and
|
|
278
|
+
// `latestPrerelease`), so it was always undefined and this always fell
|
|
279
|
+
// through to versions[0]. Antora stores versions newest-first WITH
|
|
280
|
+
// prereleases at the front, so on any build containing a prerelease the
|
|
281
|
+
// whole bucket -- component metadata, nav tree, version dropdown -- was
|
|
282
|
+
// read from the unreleased version. Nothing threw, so nothing showed it.
|
|
283
|
+
latestVersion: component.latest || component.versions[0],
|
|
277
284
|
})
|
|
278
285
|
}
|
|
279
286
|
|
|
@@ -550,7 +557,7 @@ function buildBucketsFromConfig(
|
|
|
550
557
|
return null // Component not found
|
|
551
558
|
}
|
|
552
559
|
|
|
553
|
-
const latestVersion = component.
|
|
560
|
+
const latestVersion = component.latest || component.versions[0]
|
|
554
561
|
if (!latestVersion) {
|
|
555
562
|
return null
|
|
556
563
|
}
|
|
@@ -646,7 +653,7 @@ function findComponentPath(configTree, targetComponent, contentCatalog) {
|
|
|
646
653
|
|
|
647
654
|
if (!component) continue
|
|
648
655
|
|
|
649
|
-
const latestVersion = component.
|
|
656
|
+
const latestVersion = component.latest || component.versions[0]
|
|
650
657
|
const metadata = latestVersion ? getHeaderData(latestVersion) : null
|
|
651
658
|
|
|
652
659
|
const breadcrumbItem = {
|