Skip to content

Commit 73b9010

Browse files
Merge branch 'develop' into retl-docs-refresh
2 parents c85d2bb + 110929b commit 73b9010

File tree

192 files changed

+11945
-5164
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

192 files changed

+11945
-5164
lines changed

CONTRIBUTING.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ Sources pages check if the source is a cloud-app, then include information about
7575

7676
## Edit pages
7777

78-
Content with in each `.md` file is markdown. For information about styling, and available extensions, see `_src/utils/formatguide.md` or the live version [here](https://segment.com/docs/utils/formatguide).
78+
Content with in each `.md` file is markdown. For information about styling, and available extensions, see `_src/utils/formatguide.md` or the live version in the [utils section of the docs](/docs/utils/formatguide).
7979

8080
## Building a preview
8181

@@ -109,6 +109,7 @@ Front matter variables have unique functions, including the following:
109109
- `hide-boilerplate`: defaults to false. When true, none of the content from `destination-footer.md` is appended to the destination page.
110110
- `hide-cmodes`: defaults to false. A renaming of "rewrite" for more clarity, hides the connection modes table in the boilerplate.
111111
- `hide-personas-partial`: defaults to false. When true, hides the section of content from `destination-footer.md` that talks about being able to receive personas data.
112+
- `hide_actions`: used to hide individual actions. Requires the `id` and `name` of each action.
112113
- `integration_type`: This is set in the `_config.yml` on three paths to add a noun (Source, Destination, or Warehouse) to the end of the title, and the end of the title tag in the html layout. It also controls the layout and icon for some of these.
113114
- `source-type`: These are only used to supplement when a Cloud App in the sources path doesn't appear in the Config API list, and needs its type explicitly set. It runs some logic in the `cloud-app-note.md` to explain which cloud-apps are object vs event sources.
114115
- `private`: Used to indicate that a destination is not publicly available (Private Beta or Pilot status), and is not available in the public catalog. When `private: true`, the build pulls integration metadata from `src/_data/catalog/destinations_private.yml`. To update the list of private destinations, use the `make private_destination` command, and enter the integration's ID when prompted.

scripts/catalog/updateDestinations.js

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,15 @@ require('dotenv').config();
1414

1515
const PAPI_URL = "https://api.segmentapis.com";
1616

17+
// Function to remove hidden fields from action
18+
const removeHiddenFields=function (actions) {
19+
return actions.map(action => ({
20+
...action,
21+
fields: action.fields.filter(field => !field.hidden)
22+
})
23+
);
24+
}
25+
1726

1827
const updateDestinations = async () => {
1928
let destinations = [];
@@ -88,9 +97,9 @@ const updateDestinations = async () => {
8897
settings.forEach(setting => {
8998
setting.description = sanitize(setting.description);
9099
});
91-
92-
let actions = destination.actions;
93-
let presets = destination.presets;
100+
101+
let actions = removeHiddenFields(destination.actions);
102+
let presets = destination.presets;
94103

95104
const clone = (obj) => Object.assign({}, obj);
96105
const renameKey = (object, key, newKey) => {

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-08-01
2+
# destination categories last updated 2024-08-09
33
items:
44
- display_name: A/B Testing
55
slug: a-b-testing

0 commit comments

Comments
 (0)