@redpanda-data/docs-extensions-and-macros 3.1.3 → 3.1.4

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.
@@ -28,6 +28,8 @@ function generateIndex (playbook, contentCatalog, { indexLatestOnly = false, exc
28
28
 
29
29
  console.log(chalk.cyan('Indexing...'))
30
30
 
31
+ const unixTimestamp = Math.floor(Date.now() / 1000)
32
+
31
33
  // Select indexable pages
32
34
  const pages = contentCatalog.getPages((page) => {
33
35
  if (!page.out || page.asciidoc?.attributes?.noindex != null) return
@@ -45,7 +47,6 @@ function generateIndex (playbook, contentCatalog, { indexLatestOnly = false, exc
45
47
  }
46
48
  const urlPath = extractUrlPath(siteUrl)
47
49
 
48
- const documents = {}
49
50
  var algoliaCount = 0
50
51
 
51
52
  for (var i = 0; i < pages.length; i++) {
@@ -181,13 +182,13 @@ function generateIndex (playbook, contentCatalog, { indexLatestOnly = false, exc
181
182
  title: documentTitle,
182
183
  product: component.title,
183
184
  version: version,
184
- //image: image? image: '',
185
185
  text: text,
186
186
  breadcrumbs: breadcrumbs,
187
187
  intro: intro,
188
188
  objectID: urlPath + page.pub.url,
189
189
  titles: titles,
190
190
  keywords: keywords,
191
+ unixTimestamp: unixTimestamp,
191
192
  type: 'Doc',
192
193
  _tags: [tag, 'docs']
193
194
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@redpanda-data/docs-extensions-and-macros",
3
- "version": "3.1.3",
3
+ "version": "3.1.4",
4
4
  "description": "Antora extensions and macros developed for Redpanda documentation.",
5
5
  "keywords": [
6
6
  "antora",