Skip to content

Commit 0e2f04e

Browse files
committed
make overrides a data file
1 parent f5fb1c8 commit 0e2f04e

File tree

3 files changed

+25
-20
lines changed

3 files changed

+25
-20
lines changed

src/_data/catalog/overrides.yml

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
items:
2+
- slug: hubspot
3+
components:
4+
- type: WEB
5+
- type: CLOUD
6+
connection_modes:
7+
device:
8+
web: true
9+
mobile: false
10+
server: false
11+
cloud:
12+
web: false
13+
mobile: true
14+
server: true
15+
summary: >-
16+
accepts data from any Segment mobile or server source in cloud mode.
17+
It does not accept data from a web source, and does not offer device-mode connections.
18+
cmode_type: mixed
19+
case: '6'

src/_includes/content/connection-modes.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,20 @@
11
<!-- in the file we're pulling from the API, "name" corresponds with the path to the yml blob for a specific destination.-->
22
{% assign currentSlug = page.url | split: "/" | last %}
3-
{% assign currentIntegration = site.data.catalog.destinations.items | where: "slug", currentSlug | first %}
4-
{% if page.connection_modes %}
5-
{% assign connectionModes = page.connection_modes %}
3+
{% if page.cmode-override %}
4+
{% assign currentIntegration = site.data.catalog.overrides.items | where: "slug", currentSlug | first %}
65
{% else %}
7-
{% assign connectionModes = currentIntegration.connection_modes %}
6+
{% assign currentIntegration = site.data.catalog.destinations.items | where: "slug", currentSlug | first %}
87
{% endif %}
98

9+
{% assign connectionModes = currentIntegration.connection_modes %}
10+
1011
{% if currentIntegration.components.size > 0 %}
1112
<!--don't show a blank table if we can't find any info about these. -->
1213
<!--
1314
components -> how do we send data
1415
platforms -> what data do we recognize-->
1516

1617

17-
1818
Before you start, make sure {{ currentIntegration.display_name }} supports the source type and connection mode you've chosen to implement. You can learn more about [connection modes here](https://segment.com/docs/connections/destinations/#connection-modes).
1919

2020
<table>

src/connections/destinations/catalog/hubspot/index.md

Lines changed: 1 addition & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -2,21 +2,7 @@
22
rewrite: true
33
title: HubSpot Destination
44
hide-personas-partial: true
5-
connection_modes:
6-
device:
7-
web: true
8-
mobile: false
9-
server: false
10-
cloud:
11-
web: false
12-
mobile: true
13-
server: true
14-
summary: >-
15-
accepts data from any Segment mobile or server source in cloud mode.
16-
It does not accept data from a web source, and does not offer device-mode connections.
17-
cmode_type: mixed
18-
case: '6'
19-
5+
cmode-override: true
206
---
217

228
[HubSpot](https://www.hubspot.com/) is an inbound marketing and sales platform that helps companies attract visitors, convert leads, and close customers. The `analytics.js` HubSpot Destination is open-source. You can browse the code [on GitHub](https://github.com/segment-integrations/analytics.js-integration-hubspot).

0 commit comments

Comments
 (0)