Skip to content

Commit

Permalink
type-safe check of the latest properties
Browse files Browse the repository at this point in the history
  • Loading branch information
Deflaimun committed Sep 9, 2024
1 parent 89791f9 commit c72d5a6
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
6 changes: 4 additions & 2 deletions extensions/generate-rp-connect-info.js
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,10 @@ module.exports.register = function ({ config,contentCatalog }) {
const parsedData = Papa.parse(csvData, { header: true, skipEmptyLines: true });
const enrichedData = enrichCsvDataWithUrls(parsedData, pages, logger);
parsedData.data = enrichedData
redpandaConnect.latest.asciidoc.attributes.csvData = parsedData;
redpandaCloud.latest.asciidoc.attributes.csvData = parsedData;
if(redpandaConnect)
redpandaConnect.latest.asciidoc.attributes.csvData = parsedData;
if(redpandaCloud)
redpandaCloud.latest.asciidoc.attributes.csvData = parsedData;

} catch (error) {
logger.error('Error fetching or parsing CSV data:', error.message);
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@redpanda-data/docs-extensions-and-macros",
"version": "3.6.0",
"version": "3.6.1",
"description": "Antora extensions and macros developed for Redpanda documentation.",
"keywords": [
"antora",
Expand Down

0 comments on commit c72d5a6

Please sign in to comment.