Skip to content

Commit dc8e6f4

Browse files
committed
rmv engage: true from catalog file
1 parent d0e39f5 commit dc8e6f4

File tree

7 files changed

+6
-486
lines changed

7 files changed

+6
-486
lines changed

scripts/catalog/updateDestinations.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,6 @@ const updateDestinations = async () => {
121121
name: destination.name,
122122
slug,
123123
hidden: isCatalogItemHidden(url),
124-
engage: engageDestinations(url),
125124
endpoints,
126125
regions,
127126
url,

scripts/catalog/utilities.js

Lines changed: 1 addition & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -159,19 +159,6 @@ const isCatalogItemHidden = (itemURL) => {
159159
}
160160
};
161161

162-
const engageDestinations = (itemURL) => {
163-
try {
164-
const catalogPath = path.resolve('src', itemURL, 'index.md');
165-
if (fs.existsSync(catalogPath)) {
166-
const f = fm(fs.readFileSync(catalogPath, 'utf8'));
167-
if (f.attributes.engage) return true;
168-
}
169-
return false;
170-
} catch (e) {
171-
console.log(error);
172-
return false;
173-
}
174-
};
175162

176163
const sanitize = (text) => {
177164
const regex = /(<[^\/a].*?>)/ig;
@@ -186,5 +173,4 @@ exports.getCatalog = getCatalog;
186173
exports.getConnectionModes = getConnectionModes;
187174
exports.isCatalogItemHidden = isCatalogItemHidden;
188175
exports.sanitize = sanitize;
189-
exports.doesCatalogItemExist = doesCatalogItemExist;
190-
exports.engageDestinations = engageDestinations;
176+
exports.doesCatalogItemExist = doesCatalogItemExist;

src/_data/catalog/destination_categories.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# AUTOGENERATED FROM PUBLIC API. DO NOT EDIT
2-
# destination categories last updated 2024-05-17
2+
# destination categories last updated 2024-05-20
33
items:
44
- display_name: A/B Testing
55
slug: a-b-testing

0 commit comments

Comments
 (0)