@redpanda-data/docs-extensions-and-macros 3.0.8 → 3.0.9
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.
|
@@ -69,7 +69,6 @@ function generateIndex (playbook, contentCatalog, { indexLatestOnly = false, exc
|
|
|
69
69
|
// "current" component version.
|
|
70
70
|
// When indexLatestOnly is set, we only index the current version.
|
|
71
71
|
const component = contentCatalog.getComponent(page.src.component)
|
|
72
|
-
const home = contentCatalog.getComponent('home')
|
|
73
72
|
const thisVersion = contentCatalog.getComponentVersion(component, page.src.version)
|
|
74
73
|
const latestVersion = component.latest
|
|
75
74
|
const isCurrent = thisVersion === latestVersion
|
|
@@ -102,26 +101,6 @@ function generateIndex (playbook, contentCatalog, { indexLatestOnly = false, exc
|
|
|
102
101
|
})
|
|
103
102
|
})
|
|
104
103
|
|
|
105
|
-
const images = {
|
|
106
|
-
'get started': 'get-started-icon.png',
|
|
107
|
-
'develop': 'develop-icon.png',
|
|
108
|
-
'deploy': 'deploy-icon.png',
|
|
109
|
-
'manage': 'manage-icon.png'
|
|
110
|
-
}
|
|
111
|
-
|
|
112
|
-
var image = {}
|
|
113
|
-
|
|
114
|
-
if (breadcrumbs.length > 1) {
|
|
115
|
-
const lowercaseBreadcrumb = breadcrumbs[1].t.toLowerCase()
|
|
116
|
-
for (let key in images) {
|
|
117
|
-
if (lowercaseBreadcrumb.includes(key)) {
|
|
118
|
-
image.src = `${home.url}_images/${images[key]}`
|
|
119
|
-
image.alt = key
|
|
120
|
-
break
|
|
121
|
-
}
|
|
122
|
-
}
|
|
123
|
-
}
|
|
124
|
-
|
|
125
104
|
// Start handling the article content
|
|
126
105
|
const article = root.querySelector('article.doc')
|
|
127
106
|
if (!article) {
|
|
@@ -178,7 +157,7 @@ function generateIndex (playbook, contentCatalog, { indexLatestOnly = false, exc
|
|
|
178
157
|
title: documentTitle,
|
|
179
158
|
product: component.title,
|
|
180
159
|
version: version,
|
|
181
|
-
image: image? image: '',
|
|
160
|
+
//image: image? image: '',
|
|
182
161
|
//text: text,
|
|
183
162
|
breadcrumbs: breadcrumbs,
|
|
184
163
|
intro: intro,
|