@redpanda-data/docs-extensions-and-macros 3.4.1 → 3.4.3

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.includes(page.pub.url)) {
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
@@ -58,10 +58,10 @@ module.exports = async () => {
58
58
  }
59
59
 
60
60
  return {
61
- latestRedpandaRelease: {
61
+ latestRedpandaRelease: latestRedpandaReleaseVersion ? {
62
62
  version: latestRedpandaReleaseVersion,
63
63
  commitHash: latestRedpandaReleaseCommitHash.substring(0, 7)
64
- },
64
+ } : null ,
65
65
  latestRcRelease: latestRcReleaseVersion ? {
66
66
  version: latestRcReleaseVersion,
67
67
  commitHash: latestRcReleaseCommitHash.substring(0, 7)
@@ -39,7 +39,7 @@ module.exports.register = function ({ config }) {
39
39
  asciidoc.attributes['latest-connect-version'] = `${LatestConnectVersion}@`
40
40
  logger.info(`Set Redpanda Connect version to ${LatestConnectVersion} in ${name} ${version}`)
41
41
  }
42
- if (LatestRedpandaVersion && LatestRedpandaVersion.latestRcRelease) {
42
+ if (LatestRedpandaVersion && LatestRedpandaVersion.latestRcRelease && LatestRedpandaVersion.latestRcRelease.version) {
43
43
  asciidoc.attributes['redpanda-beta-version'] = `${LatestRedpandaVersion.latestRcRelease.version}@`
44
44
  asciidoc.attributes['redpanda-beta-commit'] = `${LatestRedpandaVersion.latestRcRelease.commitHash}@`
45
45
  logger.info(`Updated to latest Redpanda RC version: ${LatestRedpandaVersion.latestRcRelease.version} with commit: ${LatestRedpandaVersion.latestRcRelease.commitHash}`)
@@ -50,7 +50,7 @@ module.exports.register = function ({ config }) {
50
50
  component.latest.asciidoc = { attributes: {} }
51
51
  }
52
52
 
53
- if (LatestRedpandaVersion && semver.valid(LatestRedpandaVersion.latestRedpandaRelease.version)) {
53
+ if (LatestRedpandaVersion && LatestRedpandaVersion.latestRedpandaRelease && semver.valid(LatestRedpandaVersion.latestRedpandaRelease.version)) {
54
54
  let currentVersion = component.latest.asciidoc.attributes['full-version'] || '0.0.0'
55
55
  if (semver.gt(LatestRedpandaVersion.latestRedpandaRelease.version, currentVersion)) {
56
56
  component.latest.asciidoc.attributes['full-version'] = `${LatestRedpandaVersion.latestRedpandaRelease.version}@`
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@redpanda-data/docs-extensions-and-macros",
3
- "version": "3.4.1",
3
+ "version": "3.4.3",
4
4
  "description": "Antora extensions and macros developed for Redpanda documentation.",
5
5
  "keywords": [
6
6
  "antora",