Skip to content

Commit a16a511

Browse files
author
markzegarelli
authored
Merge branch 'master' into putRecords-Migration
2 parents 1219988 + a7530f2 commit a16a511

File tree

250 files changed

+17962
-12031
lines changed

Some content is hidden

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

250 files changed

+17962
-12031
lines changed

.env.example

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
1-
PLATFORM_API_TOKEN=look for me in chamber
1+
PLATFORM_API_TOKEN=look for me in chamber
2+
PAPI_TOKEN=get one from a papi-enabled workspace

.github/workflows/link-check.yml

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
# This is a basic workflow to help you get started with Actions
2+
3+
name: Link Check
4+
5+
# Controls when the action will run.
6+
on:
7+
# Triggers the workflow on push or pull request events but only for the master branch
8+
pull_request:
9+
10+
# A workflow run is made up of one or more jobs that can run sequentially or in parallel
11+
jobs:
12+
markdown-link-check:
13+
runs-on: ubuntu-latest
14+
steps:
15+
- uses: actions/checkout@master
16+
- uses: gaurav-nelson/github-action-markdown-link-check@v1
17+
with:
18+
use-quiet-mode: 'yes'
19+
config-file: '.mlc-config.json'
20+
use-verbose-mode: 'yes'
21+
check-modified-files-only: 'yes'

.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,3 +12,6 @@ src/assets/docs.bundle.js
1212
yarn-error.log
1313
# Make sure to update `analytics` to the full path to your Typewriter client.
1414
.vscode/spellright.dict
15+
16+
# Local Netlify folder
17+
.netlify

.mlc-config.json

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
{
2+
"replacementPatterns": [
3+
{
4+
"pattern": "^/docs",
5+
"replacement": "/github/workspace/src"
6+
},
7+
{
8+
"pattern": "(\\S+?)\/(\\S+?)\/?$",
9+
"replacement": "$1/$2.md"
10+
}
11+
]
12+
}

.vale.ini

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,5 @@ StylesPath = vale-styles
33
Vocab = Docs
44

55
[*.md]
6-
BasedOnStyles = write-good, Segment
6+
BasedOnStyles = write-good, segment
7+
TokenIgnores = ({% .* %})

.vscode/launch.json

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
{
2+
// Use IntelliSense to learn about possible attributes.
3+
// Hover to view descriptions of existing attributes.
4+
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
5+
"version": "0.2.0",
6+
"configurations": []
7+
}

Gemfile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ group :jekyll_plugins do
1818
gem "premonition", "~> 2.0.0"
1919
gem "jekyll-include-cache"
2020
gem 'jekyll-algolia'
21+
gem 'jekyll-dotenv'
2122
end
2223

2324
# Windows does not include zoneinfo files, so bundle the tzinfo-data gem

Gemfile.lock

Lines changed: 11 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,9 @@ GEM
6060
jekyll-commonmark (1.3.1)
6161
commonmarker (~> 0.14)
6262
jekyll (>= 3.7, < 5.0)
63+
jekyll-dotenv (0.2.0)
64+
dotenv (~> 2.7)
65+
jekyll (~> 4)
6366
jekyll-include-cache (0.2.1)
6467
jekyll (>= 3.7, < 5.0)
6568
jekyll-last-modified-at (1.3.0)
@@ -85,12 +88,14 @@ GEM
8588
rb-fsevent (~> 0.10, >= 0.10.3)
8689
rb-inotify (~> 0.9, >= 0.9.10)
8790
mercenary (0.4.0)
88-
mini_portile2 (2.5.0)
91+
mini_portile2 (2.5.1)
8992
multipart-post (2.1.1)
90-
nokogiri (1.11.1)
93+
nokogiri (1.11.4)
9194
mini_portile2 (~> 2.5.0)
9295
racc (~> 1.4)
93-
nokogiri (1.11.1-x86_64-linux)
96+
nokogiri (1.11.4-x86_64-darwin)
97+
racc (~> 1.4)
98+
nokogiri (1.11.4-x86_64-linux)
9499
racc (~> 1.4)
95100
pathutil (0.16.2)
96101
forwardable-extended (~> 2.6)
@@ -103,7 +108,7 @@ GEM
103108
rb-fsevent (0.10.4)
104109
rb-inotify (0.10.1)
105110
ffi (~> 1.0)
106-
rexml (3.2.4)
111+
rexml (3.2.5)
107112
rouge (3.25.0)
108113
ruby-enum (0.8.0)
109114
i18n
@@ -124,6 +129,7 @@ GEM
124129

125130
PLATFORMS
126131
ruby
132+
x86_64-darwin-20
127133
x86_64-linux
128134

129135
DEPENDENCIES
@@ -132,6 +138,7 @@ DEPENDENCIES
132138
jekyll!
133139
jekyll-algolia
134140
jekyll-commonmark
141+
jekyll-dotenv
135142
jekyll-include-cache
136143
jekyll-last-modified-at
137144
jekyll-redirect-from

Makefile

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,10 @@ serve: package
5353
catalog: vendor/bundle
5454
@node scripts/catalog.js
5555

56+
.PHONY: changelog
57+
changelog: vendor/bundle
58+
@node scripts/changelog.js
59+
5660
.PHONY: sidenav
5761
sidenav: vendor/bundle
5862
@node scripts/nav.js

README.md

Lines changed: 12 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ See the [Contributor Guide](contributors.md) for more info.
6464

6565
If you're planning substantial changes to the docs, follow this process for great success! 🏆
6666

67-
1. 📞 Contact the docs team* during the planning phase. This way, we can help with logistics and information architecture, and alert you to any gotchas in your content area.
67+
1. 📞 Contact the docs team ( @segmentio/segment-doc-team ) during the planning phase. This way, we can help with logistics and information architecture, and alert you to any gotchas in your content area.
6868
2. 📝 Unless previously booked, we don't need to be involved in the writing - go for it! (We're happy to consult if you get stuck or need someone to bounce ideas off.)
6969
3. 👀 When you've got a draft at least 70% ready for review, tag a member of the docs team, who'll do an initial review. (This can be either in Paper/Gdocs, or in a Github [Draft PR](#draft-prs) with markdown changes if you're comfortable with that.) They'll do a copy edit pass, and ask clarifying questions.
7070
4. ❓The doc author/owner should answer the questions asked in the review phase. Either the doc author, or the docs team member can resolve comments as they are clarified in the doc text.👍
@@ -76,8 +76,6 @@ If you're planning substantial changes to the docs, follow this process for grea
7676

7777
Once the PR is merged, the docs site rebuilds and the changes are live!
7878

79-
(* The docs team is just Laura right now.)
80-
8179

8280
### The Docs Process for direct contributors
8381

@@ -88,17 +86,16 @@ Once the PR is merged, the docs site rebuilds and the changes are live!
8886
3. Commit your changes.
8987
3. Push the branch to `segment-docs` and make a PR to master.
9088
- Include any context you can in the PR: links to ZD tickets, Jira tickets, Paper docs or wiki pages about the project. (If you include a Jira ticket number, Jira can often link directly to the PR.)
91-
3. [Check if you need a review](#most-frequently-asked-question-do-i-need-a-review) and tag @sanscontext (or another member of the docs team). (Github also tags the CODEOWNERS for the path you're editing.)
89+
3. [Check if you need a review](#most-frequently-asked-question-do-i-need-a-review) and tag a member of the docs team. (Github also tags the CODEOWNERS for the path you're editing.)
9290
5. If the reviewers ask for clarifications or edits:
9391
- make the changes
9492
- push the new commits to the branch
9593
5. Once you get an approving review and the checks pass, merge your PR.
96-
6. Once you've merged the branch, _delete it_!
97-
7. Once merged, you can track build and deploy process in [buildkite/segment-docs](https://buildkite.com/segment/segment-docs).
94+
7. Once merged, Netlify builds the changes to `master` and redeploys the docs site.
9895

9996
### Draft PRs
10097

101-
If you're doing a substantial change and you're going to want to spend a few weeks on it, use [Github's Draft PRs feature](https://help.github.com/en/articles/about-pull-requests#draft-pull-requests), or add `WIP` to the title of your PR. This lets us know to ignore the PR until you're ready (otherwise Laura will ping you weekly about it!).
98+
If you're doing a substantial change and you're going to want to spend a few weeks on it, use [Github's Draft PRs feature](https://help.github.com/en/articles/about-pull-requests#draft-pull-requests), or add `DRAFT` or `WIP` to the title of your PR. This lets us know to ignore the PR until you're ready (otherwise we might ping you weekly about it!).
10299

103100

104101
## How the docs build works
@@ -111,10 +108,10 @@ When you run `make dev` (or `make docs`) on your laptop, Jekyll runs the same pr
111108

112109
Some of these files include Liquid script, which allows them to load reusable content ("includes"), render fancy HTML styling, and run simple code processes to build programmatic content. As long as the Jekyll process is running on your laptop, you can edit the content of a page in markdown and save it, and Jekyll will detect the change and rebuild that page so you can view it locally. However, this doesn't work if you're editing the page layouts or stylesheets, which are assumed to be static at build time.
113110

114-
When you merge a PR to master, our build system runs the Jekyll program, and automatically publishes the rebuilt HTML files to our web server. (Which is why we *require* that the Buildkite build passes before you merge!)
111+
When you merge a PR to master, the Netlify build system runs the Jekyll program, and automatically publishes the rebuilt HTML files.
115112

116113
## Formatting and Prettifying
117-
Some important tips are in the [styleguide](styleguide.md). We also have a (rendering)[Formatting guide](/src/utils/formatguide.md) available so you can see how different formatting looks when rendered.
114+
Some important tips are in the [styleguide](styleguide.md). We also have a (rendering) [Formatting guide](/src/utils/formatguide.md) available so you can see how different formatting looks when rendered.
118115

119116
## Repo structure
120117

@@ -147,15 +144,13 @@ A few possibilities/suggestions:
147144
- **Name images to describe a process flow**. For example `checkout-1-add-to-cart.png`, `checkout-2-est-shipping.png` and so on.
148145

149146

150-
### Diagram Library
151-
152-
We have a diagram library in Sketch, which you can use to build pretty, on-brand architecture diagrams, etc. There's a [readme file in that directory](diagram-library/readme.md) with instructions on how to use it.
153-
154147
### Content structure
155148

156149
There are folders for each of the top level products, and those folders might also contain topics that are related to that product area (for example the Privacy Portal section also contains GDPR/CCPA docs).
157150

158-
For the Connections product, the section is divided into the Spec, then Sources, Destinations, and Warehouses, with general accessory topics at the folder root. (More specific accessory topics are in each sub directory.) Each also contains a `catalog` directory, which contains all the directories with information about specific integrations. The top-level of this folder (the `index.md`) is a pretty "catalog" page which gives a tile-like view by category, suitable for browsing. It pulls the logo for these tiles from the path for the integration in the metadata service.
151+
For the Connections product, the section is divided into the Spec, then Sources, Destinations, and Storage Destinations (formerly called "Warehouses"), with general accessory topics at the folder root. (More specific accessory topics are in each sub directory.)
152+
153+
Each also contains a `catalog` directory, which contains all the directories with information about specific integrations. The top-level of this `catalog` folder (the `index.md`) is a pretty "catalog" page which gives a tile-like view by category, suitable for browsing. It pulls the logo for these tiles from the path for the integration in the metadata, either in `destinations.yml`, `sources.yml`, or `warehouses.yml`.
159154

160155

161156
### Programmatic content
@@ -166,7 +161,7 @@ Programmatic content is built using information in the files in `/src/_data/cata
166161

167162
Most of the programmatic content is built into the `_layouts` templates that each page uses. Sources, Destinations, and Warehouses use the `integration.html` template, which uses some Liquid logic, and calls an `include` depending on the integration type. Most of logic for the actual content must live in the include file itself, however logic controlling *if* the include is built can live in the `layout`.
168163

169-
Destination pages include the `integration_foot.md` content which uses Liquid scripting and pulls from the catalog metadata.
164+
Destination pages include the `destination-dossier.html` and `destination_footer.md` content, which use Liquid scripting and pulls from the catalog metadata.
170165

171166
Sources pages check if the source is a cloud-app, then include information about if the source is an object or event source, based on the `type` data from the ConfigAPI.
172167

@@ -189,6 +184,7 @@ Each piece of frontmatter does something special!
189184
#### Content-related frontmatter
190185
- `beta`: default false. When true, show an "in beta" warning in the page layout (see the warning in `_includes/content/beta-note.md`)
191186
- `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.
187+
- `hide-dossier`: defaults to false. When true, hides the "quick info" box at the top of a destination page.
192188
- `hide-boilerplate`: defaults to false. When true, none of the content from `destination-footer.md` is appended to the destination page.
193189
- `hide-cmodes`: defaults to false. A renaming of "rewrite" for more clarity, hides the connection modes table in the boilerplate.
194190
- `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.
@@ -222,14 +218,10 @@ We have two neat icons that you can add to a bottom-level menu item to mark it w
222218
- `dev`: runs `jekyll serve` locally with incremental builds. Useful when updating CSS, JS, or content and you don't want to rebuild every time.
223219
- `docs`: same as `make dev`, but for Laura's convenience.
224220
- `build`: Builds the site docs. Used by CI to publish the docs to staging and production
225-
- `catalog`: Pulls in the latest catalog data from the Platform API and saves it in the respective data files. Requires an API key to be passed in env via PLATFORM_API_TOKEN. [Instructions here](#bring-your-own-token).
221+
- `catalog`: Pulls in the latest catalog data from the Platform API and saves it in the respective data files. Requires an API key to be passed in env via PLATFORM_API_TOKEN. [Instructions here](https://github.com/segmentio/segment-docs/blob/master/contributors.md#refresh-the-segment-catalog).
226222
- `sidenav`: Builds the side navs for 'main', 'legal', 'api', 'partners' and stores the output in `/src/_data/sidenav-auto/`. This output isn't used for the actual build.
227223
- `typewriter`: pulls in the current state of the Docs tracking plan for implementing Segment tracking
228224
- `seed`: copies all example data files out of the `_templates` directory and puts them in the `_data` directory. Useful if you don't have a way to set up an API key.
229225
- `clean`: removes all build artifacts
230226
- `clean-deps`: removes all downloaded `gems` and `node_modules`
231227
- `deps`: installs the required `gems` and `node_modules`
232-
233-
234-
- docker-build: runs `make build` on a docker host.
235-
- docker-dev: runs `make dev` on a docker host.

0 commit comments

Comments
 (0)