Skip to content

Commit c63437b

Browse files
authored
Merge pull request #201 from segmentio/repo-sync
repo sync
2 parents fea8f05 + 02cba21 commit c63437b

File tree

64 files changed

+276
-106
lines changed

Some content is hidden

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

64 files changed

+276
-106
lines changed

.vscode/yml.code-snippets

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,4 @@
2121
"body":["- name: ${1:name}\r\tdescription: ${2:description}\r\tdefault: ${3}"],
2222
"description": "Yaml settings"
2323
},
24-
"ext_link":{
25-
"prefix": ["{:}"],
26-
"body":["{:target='${1:_blank}'}"]
27-
},
2824
}

CONTRIBUTING.md

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ Before you begin:
1010

1111
## Use the contribution links from any docs page
1212

13-
Not all pages have a 1-1 mapping with their location within the repository. This can make browsing and locating the file you're trying to reference a challenge. As you browse [segment.com/docs](https://segment.com/docs), you'll notice two links in the right sidebar, at the top of the page. Click **Edit this page** to open the page in the Github editor. Or, click **Request docs change** to create a new issue that references the page.
13+
Not all pages have a 1-1 mapping with their location within the repository. This can make browsing and locating the file you're trying to reference a challenge. As you browse [segment.com/docs](https://segment.com/docs), you'll notice two links in the right sidebar, at the top of the page. Click **Edit this page** to open the page in the GitHub editor. Or, click **Request docs change** to create a new issue that references the page.
1414

1515
## Want to go deeper? Fork the repository
1616

@@ -39,7 +39,7 @@ The most interesting ones are:
3939

4040
### Images
4141

42-
**Save all images locally! No linking to 3rd party-hosted images!** Images are published to our CDN from the build step, and this means they won't go missing if the hosting service dujour goes out of business.
42+
**Save all images locally! No linking to third-party hosted images!** Images are published to our CDN from the build step, and this means they won't go missing if the hosting service dujour goes out of business.
4343

4444
There are no _enforced_ naming conventions at this time. Files that start with an underscore are ignored by Jekyll. Anything you see with `asset` was dowloaded by a script to migrate it out of Contents.io.
4545

@@ -77,11 +77,11 @@ Sources pages check if the source is a cloud-app, then include information about
7777

7878
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).
7979

80-
### Frontmatter
80+
### Front matter
8181

82-
Each Markdown file in the docs can have "frontmatter" associated with it at the top of the file. These are considered by Jekyll to be "properties" of a page, generally control how the HTML page is built or rendered.
82+
Repository Markdown files often contain front matter metadata, which you'll find at the top of the file. These front matter variables instruct Jekyll how to build and render the page as HTML.
8383

84-
Frontmatter in a file will look something like this:
84+
Front matter in a file will look something like this:
8585

8686
```md
8787
---
@@ -90,25 +90,25 @@ hide-feedback: false
9090
---
9191
```
9292

93-
Each piece of frontmatter does something special!
93+
Front matter variables have unique functions, including the following:
9494

95-
#### Content-related frontmatter
95+
#### Content-related front matter
9696
- `beta`: default false. When true, show an "in beta" warning in the page layout (see the warning in `_includes/content/beta-note.md`)
97-
- `rewrite`: defaults to false. This is a legacy frontmatter flag that comes from the old `site-docs` repo, and which labels any destination that was rewritten in ~2018 to a standardized template. It disables the duplicate "connection modes" table that would otherwise show up in the boilerplate content at the end of the page.
97+
- `rewrite`: defaults to false. This is a legacy front matter flag that comes from the old `site-docs` repo, and which labels any destination that was rewritten in ~2018 to a standardized template. It disables the duplicate "connection modes" table that would otherwise show up in the boilerplate content at the end of the page.
9898
- `hide-dossier`: defaults to false. When true, hides the "quick info" box at the top of a destination page.
9999
- `hide-boilerplate`: defaults to false. When true, none of the content from `destination-footer.md` is appended to the destination page.
100100
- `hide-cmodes`: defaults to false. A renaming of "rewrite" for more clarity, hides the connection modes table in the boilerplate.
101101
- `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.
102102
- `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.
103103
- `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.
104104

105-
#### Utility frontmatter
105+
#### Utility front matter
106106
- `published`: defaults to true. Set this to "false" to prevent Jekyll from rendering an HTML page for this file. Good for when you're working on something in the repo but aren't ready to release it yet, and don't want to use a Draft PR.
107107
- `hidden`: omits the file from the `sitemap.xml`, adds a `<meta name="robots" content="noindex" />` to the top of the generated HTML file, and drops it from the convenience script for regenerating the nav.
108108
- `hide-sidebar`: defaults to false. When true, hide the entire right-nav sidebar. Use with `hide-feedback` if you want to disable *all* feedback affordances.
109109
- `hide-feedback`: defaults to false. When true, hide the feedback in both rnav and footer. Good for landing pages.
110110
- `hide_toc`: hides the right-nav TOC that's generated from H2s. Also good for landing pages.
111111
- `landing`: defaults to false. Use this to drop the noun set by `integration_type` from the tab title.
112-
- `redirect_from`: Defaults to null. Takes an array of URLs from the frontmatter in a file, and generates a "stub" page at each URL at build-time. Each stub file redirects to the original file. Use the path from the root of the content directory, for example `/connections/destinations/catalog/` rather than `/docs/connections/destinations/catalog/`. **Note** We are mostly using NGINX redirects for SEO purposes. Approximately quarterly, we'll collect these and add them to NGINX.
112+
- `redirect_from`: Defaults to null. Takes an array of URLs from the front matter in a file, and generates a "stub" page at each URL at build-time. Each stub file redirects to the original file. Use the path from the root of the content directory, for example `/connections/destinations/catalog/` rather than `/docs/connections/destinations/catalog/`. **Note** We are mostly using NGINX redirects for SEO purposes. Approximately quarterly, we'll collect these and add them to NGINX.
113113
- `seo-changefreq`: default: `weekly `. Use the values [in the sitemap spec](https://www.sitemaps.org/protocol.html#xmlTagDefinitions). - sets the `changefreq` tag in the sitemap.xml generator, which tells search crawlers how often to check back.
114114
- `seo-priority`: values from `1.0` to `0.1`, default: `0.5 `. Sets the `Priority` tag in the sitemap

src/_includes/content/destination-footer.md

Lines changed: 0 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -20,28 +20,6 @@ When you first create an audience, Personas sends an Identify call for every use
2020

2121
{% endif %}
2222

23-
{% unless page.rewrite == true or page.hide-cmodes == true%}
24-
## Supported Sources and Connection Modes
25-
{% if currentIntegration.components.size > 0 %}
26-
{% include content/connection-modes.md %}
27-
28-
{% endif %}
29-
30-
{% if currentIntegration.browserUnbundlingSupported == true and currentIntegration.browserUnbundlingPublic == true %}
31-
Segment offers an optional **Cloud-based** Connection Mode for **Web** data with {{ currentIntegration.display_name }}. As a reminder, this removes the {{ currentIntegration.display_name }} javascript library from your site, improving performance.
32-
{% endif %}
33-
34-
{% unless page.hide-device == true %}
35-
{% if currentIntegration.platforms.mobile == true %}
36-
{% if currentIntegration.platforms.server == true %}
37-
Segment offers an *optional* **Device-based** Connection Mode for **Mobile** data going to {{ currentIntegration.display_name }}, so that you can use {{ currentIntegration.display_name }} features that collect data directly from the mobile device. To do this, you must package the Segment-{{ currentIntegration.display_name }} mobile SDK with the Segment mobile library.
38-
{% else %}
39-
This destination *requires* that you use a **Device-based** Connection Mode for **Mobile** data. Make sure you package the {{ currentIntegration.display_name }} mobile SDK with the Segment mobile library.
40-
{% endif %}
41-
{% endif %}
42-
{% endunless %}
43-
{% endunless %}
44-
4523
{% unless page.hide-settings == true %}
4624
## Settings
4725
Segment lets you change these destination settings from the Segment app without having to touch any code.
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
<div class="premonition warning">
2+
<div class="fa fa-check-square"></div>
3+
<div class="content">
4+
<p class="header">This {{ page.integration_type }} is supported in US data processing regions.</p>
5+
<p markdown=1>
6+
The {{ page.title | replace: 'Source', '' }} source is only supported in workspaces configured to process data in the US region. Workspaces configured with data processing regions outside of the US cannot connect to this source. For more information, see [Regional Segment](/docs/guides/regional-segment/).
7+
</p>
8+
</div>
9+
</div>

0 commit comments

Comments
 (0)