@redpanda-data/docs-extensions-and-macros 3.2.2 → 3.2.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.
@@ -77,7 +77,7 @@ function generateIndex (playbook, contentCatalog, { indexLatestOnly = false, exc
77
77
 
78
78
  // capture the component name and version
79
79
  const cname = component.name
80
- const version = page.src.version
80
+ const version = page.src.prerelease ? page.src.displayVersion : page.src.version;
81
81
 
82
82
  // handle the page keywords
83
83
  const kw = root.querySelector('meta[name=keywords]')
@@ -175,7 +175,7 @@ function generateIndex (playbook, contentCatalog, { indexLatestOnly = false, exc
175
175
  .replace(/\s+/g, ' ')
176
176
  .trim();
177
177
 
178
- var tag = `${component.title}${version ? '-' + version : ''}`
178
+ var tag = `${component.title} ${version ? 'v' + version : ''}`
179
179
  var indexItem;
180
180
  const deployment = page.asciidoc?.attributes['env-kubernetes'] ? 'Kubernetes' : page.asciidoc?.attributes['env-linux'] ? 'Linux' : page.asciidoc?.attributes['env-docker'] ? 'Docker' : page.asciidoc?.attributes['page-cloud'] ? 'Redpanda Cloud' : ''
181
181
 
@@ -198,7 +198,7 @@ function generateIndex (playbook, contentCatalog, { indexLatestOnly = false, exc
198
198
  indexItem.product = component.title;
199
199
  indexItem.breadcrumbs = breadcrumbs;
200
200
  indexItem.type = 'Doc';
201
- indexItem._tags = [tag, 'docs'];
201
+ indexItem._tags = [tag];
202
202
  } else {
203
203
  indexItem.deployment = deployment;
204
204
  indexItem.type = 'Lab';
@@ -114,7 +114,7 @@ function register({
114
114
  }
115
115
 
116
116
  for (const [objectID, obj] of existingObjectsMap) {
117
- if ((obj.type === 'Doc' && !obj._tags.includes('apis')) || (!obj.type) || (obj.type === 'Lab' && !obj.interactive)) {
117
+ if ((obj.type === 'Doc' && !obj.objectID.includes('/api/')) || (!obj.type) || (obj.type === 'Lab' && !obj.interactive)) {
118
118
  objectsToDelete.push(objectID)
119
119
  }
120
120
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@redpanda-data/docs-extensions-and-macros",
3
- "version": "3.2.2",
3
+ "version": "3.2.3",
4
4
  "description": "Antora extensions and macros developed for Redpanda documentation.",
5
5
  "keywords": [
6
6
  "antora",
@@ -52,8 +52,8 @@
52
52
  "url": "git+https://github.com/redpanda-data/docs-extensions-and-macros"
53
53
  },
54
54
  "dependencies": {
55
- "@octokit/plugin-retry": "^4.1.3",
56
- "@octokit/rest": "^19.0.7",
55
+ "@octokit/plugin-retry": "~4.1.3",
56
+ "@octokit/rest": "~19.0.7",
57
57
  "algoliasearch": "^4.17.0",
58
58
  "chalk": "4.1.2",
59
59
  "gulp": "^4.0.2",