Skip to content

Commit 2132afe

Browse files
bot-docsteammarkzegarellitobiordobiforstisabellastayseesong
authored
repo sync (#156)
* DOC-385 FB CAPI Actions * Add note to track method for CleverTap * Apply suggestions from code review Co-authored-by: forstisabella <[email protected]> * First pass of bigquery edits * [netlify-build] * DOC-386 GA 4 Private Beta * Apply suggestions from code review Co-authored-by: kdaswani <[email protected]> * comments from review * Edits to "Getting Started with Segment" and "What is Segment?" * Update CleverTap wording Co-authored-by: markzegarelli <[email protected]> * Refactoring DataBrain branding * Apply suggestions from code review Co-authored-by: pwseg <[email protected]> * Apply suggestions from code review Co-authored-by: forstisabella <[email protected]> * Add support for connection mode overrides in dossier * Update src/connections/destinations/catalog/databrain/index.md * Update index.md * Export Schema * Minor page spec updates * Further edits to BigQuery docs * Update page.md HTML table -> Markdown * Update index.md * fb-capi-actions-edits * small edits to GA4 docs * More Appcues updates * Update index.md * Added edit buttons to the footer for smaller window * Update src/connections/spec/page.md Co-authored-by: rchinn-segment <[email protected]> * Update src/connections/spec/page.md Co-authored-by: rchinn-segment <[email protected]> * Update src/connections/destinations/catalog/appcues/index.md Co-authored-by: markzegarelli <[email protected]> * Update src/connections/destinations/catalog/appcues/index.md Co-authored-by: markzegarelli <[email protected]> * Update src/connections/destinations/catalog/appcues/index.md Co-authored-by: markzegarelli <[email protected]> * Update src/connections/destinations/catalog/appcues/index.md Co-authored-by: markzegarelli <[email protected]> * Update src/connections/destinations/catalog/appcues/index.md Co-authored-by: markzegarelli <[email protected]> * Update index.md * Update index.md * Update src/connections/destination-data-control.md Co-authored-by: stayseesong <[email protected]> * Update src/connections/destination-data-control.md Co-authored-by: stayseesong <[email protected]> * Update src/connections/destination-data-control.md Co-authored-by: stayseesong <[email protected]> * Update src/connections/destination-data-control.md Co-authored-by: stayseesong <[email protected]> * Update src/connections/destination-data-control.md Co-authored-by: stayseesong <[email protected]> * Update src/connections/destination-data-control.md Co-authored-by: stayseesong <[email protected]> * Removing instances of 'we,' 'us' from the BigQuery page * DOC-377 Braze update * DOC-379 replace badge URL * DOC-380 add redirect * DOC-382 add destinations * DOC-392 add context to Facebook App Events * Where > that * Landing page suggestions * Update landing.yml * Update index.md * Apply suggestions from code review Co-authored-by: rchinn-segment <[email protected]> * Apply suggestions from code review Co-authored-by: markzegarelli <[email protected]> * fix(content): fix conflicting settings clarification * [netlify-build] * Spacing fixes * Kameleoon updated their HackMD doc - updated docs accordingly HackMD:https://hackmd.io/tp-iUR10TAqKSTcYi5Rd1g?view * Apply suggestions from code review * this should be visible * adds clarity to Events and fixes a typo * Update src/connections/sources/catalog/cloud-apps/sendgrid/index.md Co-authored-by: stayseesong <[email protected]> * Apply suggestions from code review * Apply suggestions from code review * Update src/connections/sources/catalog/cloud-apps/sendgrid/index.md Co-authored-by: stayseesong <[email protected]> * Update index.md Fixing broken hyperlink * Add clarity to a.js 2.0 requirement for destination actions * Update src/connections/destinations/destination-filters.md Co-authored-by: rchinn-segment <[email protected]> * Update RegalVoice HTML tables * Update src/connections/sources/catalog/cloud-apps/regal-voice/index.md Co-authored-by: rchinn-segment <[email protected]> * Update src/connections/sources/catalog/cloud-apps/regal-voice/index.md Co-authored-by: rchinn-segment <[email protected]> * Update src/connections/sources/catalog/cloud-apps/regal-voice/index.md Co-authored-by: rchinn-segment <[email protected]> * [netlify-build] * forgot to save before committing - fixes to the Amazon S3 destination * Fixing missing sentence piece * [netlify-build] * remove sample warehouse * Personas Overview fixes [DOC-394] * Update develop branch to also unhide GEC * Add GEC to Google strat Adds Google Enhanced Conversions to the Google navigation * Update index.md * Apply suggestions from code review Co-authored-by: markzegarelli <[email protected]> * [netlify-build] * FB CAPI (Actions) updates for Public Beta (#2276) * FB CAPI (Actions) updates for Public Beta * add to strat Co-authored-by: markzegarelli <[email protected]> * Add note to classic FB CAPI destination doc (#2277) * [netlify-build] * fix braze maintenance links (#2282) * fixes 2279 (#2281) * Facebook Conversions API, Google Enhanced Conversions, and Google Analytics 4 destinations (#2278) * this should be visible * Update GEC doc to match new UI experience (#2269) * Update GEC doc to match new UI experience * Update src/connections/destinations/catalog/actions-google-enhanced-conversions/index.md Co-authored-by: markzegarelli <[email protected]> * fix slug, pull data [netlify-build] * fix typo Co-authored-by: markzegarelli <[email protected]> * GA4 destination doc updates (#2273) * GA4 destination doc updates Updates to GA4 docs ahead of Public Beta on 12/14: * Unhide GA4 doc * Add GA4 doc to "strat: google" * Remove private beta instructions * Add more details to the docs * fix hyperlink * fix typo * Add GA4 to strat * add mappings from api Co-authored-by: markzegarelli <[email protected]> * Update GA4 links in GA UA docs (#2272) * Hide or delete GA4-plans doc (#2270) * Hide or delete GA4-plans doc We would like to delete this doc if possible. Otherwise, I have hidden it here because we do not need it anymore as it is outdated and we have a new destination doc for GA4. * unpublish this Co-authored-by: markzegarelli <[email protected]> * catalog [netlify-build] * automate available actions table * fix side nav * fix side nav * google strat * unhide tiktok conversions * catalog update * Apply suggestions from code review Co-authored-by: rchinn-segment <[email protected]> Co-authored-by: forstisabella <[email protected]> Co-authored-by: kdaswani <[email protected]> Co-authored-by: rchinn-segment <[email protected]> * catalog update * Release 21.50.1 (#2283) * remove sample warehouse * Personas Overview fixes [DOC-394] * Update develop branch to also unhide GEC * Add GEC to Google strat Adds Google Enhanced Conversions to the Google navigation * Update index.md * FB CAPI (Actions) updates for Public Beta (#2276) * FB CAPI (Actions) updates for Public Beta * add to strat Co-authored-by: markzegarelli <[email protected]> * Add note to classic FB CAPI destination doc (#2277) * Getting Started Guide (#157) * [netlify-build] * Apply suggestions from code review Co-authored-by: markzegarelli <[email protected]> Co-authored-by: markzegarelli <[email protected]> * fix braze maintenance links (#2282) * fixes 2279 (#2281) * Facebook Conversions API, Google Enhanced Conversions, and Google Analytics 4 destinations (#2278) * this should be visible * Update GEC doc to match new UI experience (#2269) * Update GEC doc to match new UI experience * Update src/connections/destinations/catalog/actions-google-enhanced-conversions/index.md Co-authored-by: markzegarelli <[email protected]> * fix slug, pull data [netlify-build] * fix typo Co-authored-by: markzegarelli <[email protected]> * GA4 destination doc updates (#2273) * GA4 destination doc updates Updates to GA4 docs ahead of Public Beta on 12/14: * Unhide GA4 doc * Add GA4 doc to "strat: google" * Remove private beta instructions * Add more details to the docs * fix hyperlink * fix typo * Add GA4 to strat * add mappings from api Co-authored-by: markzegarelli <[email protected]> * Update GA4 links in GA UA docs (#2272) * Hide or delete GA4-plans doc (#2270) * Hide or delete GA4-plans doc We would like to delete this doc if possible. Otherwise, I have hidden it here because we do not need it anymore as it is outdated and we have a new destination doc for GA4. * unpublish this Co-authored-by: markzegarelli <[email protected]> * catalog [netlify-build] * automate available actions table * fix side nav * fix side nav * google strat * unhide tiktok conversions * catalog update * Apply suggestions from code review Co-authored-by: rchinn-segment <[email protected]> Co-authored-by: forstisabella <[email protected]> Co-authored-by: kdaswani <[email protected]> Co-authored-by: rchinn-segment <[email protected]> * catalog update Co-authored-by: pwseg <[email protected]> Co-authored-by: kdaswani <[email protected]> Co-authored-by: pwseg <[email protected]> Co-authored-by: stayseesong <[email protected]> Co-authored-by: forstisabella <[email protected]> Co-authored-by: rchinn-segment <[email protected]> * republish Google Tag Manager * Hotfix: Republish Google Tag Manager (#2284) * remove sample warehouse * Personas Overview fixes [DOC-394] * Update develop branch to also unhide GEC * Add GEC to Google strat Adds Google Enhanced Conversions to the Google navigation * Update index.md * FB CAPI (Actions) updates for Public Beta (#2276) * FB CAPI (Actions) updates for Public Beta * add to strat Co-authored-by: markzegarelli <[email protected]> * Add note to classic FB CAPI destination doc (#2277) * Getting Started Guide (#157) * [netlify-build] * Apply suggestions from code review Co-authored-by: markzegarelli <[email protected]> Co-authored-by: markzegarelli <[email protected]> * fix braze maintenance links (#2282) * fixes 2279 (#2281) * Facebook Conversions API, Google Enhanced Conversions, and Google Analytics 4 destinations (#2278) * this should be visible * Update GEC doc to match new UI experience (#2269) * Update GEC doc to match new UI experience * Update src/connections/destinations/catalog/actions-google-enhanced-conversions/index.md Co-authored-by: markzegarelli <[email protected]> * fix slug, pull data [netlify-build] * fix typo Co-authored-by: markzegarelli <[email protected]> * GA4 destination doc updates (#2273) * GA4 destination doc updates Updates to GA4 docs ahead of Public Beta on 12/14: * Unhide GA4 doc * Add GA4 doc to "strat: google" * Remove private beta instructions * Add more details to the docs * fix hyperlink * fix typo * Add GA4 to strat * add mappings from api Co-authored-by: markzegarelli <[email protected]> * Update GA4 links in GA UA docs (#2272) * Hide or delete GA4-plans doc (#2270) * Hide or delete GA4-plans doc We would like to delete this doc if possible. Otherwise, I have hidden it here because we do not need it anymore as it is outdated and we have a new destination doc for GA4. * unpublish this Co-authored-by: markzegarelli <[email protected]> * catalog [netlify-build] * automate available actions table * fix side nav * fix side nav * google strat * unhide tiktok conversions * catalog update * Apply suggestions from code review Co-authored-by: rchinn-segment <[email protected]> Co-authored-by: forstisabella <[email protected]> Co-authored-by: kdaswani <[email protected]> Co-authored-by: rchinn-segment <[email protected]> * catalog update * republish Google Tag Manager Co-authored-by: pwseg <[email protected]> Co-authored-by: kdaswani <[email protected]> Co-authored-by: pwseg <[email protected]> Co-authored-by: stayseesong <[email protected]> Co-authored-by: forstisabella <[email protected]> Co-authored-by: rchinn-segment <[email protected]> * fix netlify toml * fix strat * unhide * Update auto collected context table (#2285) Updating the Context Fields Automatically Collected table to confirm that device.type & device.name are collected on analytics-ios. Ref: https://github.com/segmentio/analytics-ios/blob/16368799b097c81c1efde1d9c0a90470faae76c2/Analytics/Classes/Internal/SEGSegmentIntegration.m#L167-L181 * google search console verification * [netlify-build] * Friendbuy destination (#2264) * Friendbuy documentation initial version. * Update for Adam's feedback. * Initial edits to Friendbuy destination doc * Minor adjustments * Apply suggestions from code review Co-authored-by: rchinn-segment <[email protected]> * internal links relative, external links open in new tab * add snippet to pull API data Co-authored-by: David Hull <[email protected]> Co-authored-by: rchinn-segment <[email protected]> * Sprig actions (#2271) * sprig action destination documentation * apply new template, hide until released * Minor edits * Apply suggestions from review * hide for now Co-authored-by: Barak Gila <[email protected]> Co-authored-by: rchinn-segment <[email protected]> * fixed some links * Add note to hubspot docs about event tester (#2286) * add note to hubspot docs about event tester * Update src/connections/destinations/catalog/hubspot/index.md Co-authored-by: markzegarelli <[email protected]> Co-authored-by: markzegarelli <[email protected]> * [netlify-build] * Update Google Universal Analytics with information about Consent Mode (#2287) * Hotfix: Republish Google Tag Manager (#2284) * remove sample warehouse * Personas Overview fixes [DOC-394] * Update develop branch to also unhide GEC * Add GEC to Google strat Adds Google Enhanced Conversions to the Google navigation * Update index.md * FB CAPI (Actions) updates for Public Beta (#2276) * FB CAPI (Actions) updates for Public Beta * add to strat Co-authored-by: markzegarelli <[email protected]> * Add note to classic FB CAPI destination doc (#2277) * Getting Started Guide (#157) * [netlify-build] * Apply suggestions from code review Co-authored-by: markzegarelli <[email protected]> Co-authored-by: markzegarelli <[email protected]> * fix braze maintenance links (#2282) * fixes 2279 (#2281) * Facebook Conversions API, Google Enhanced Conversions, and Google Analytics 4 destinations (#2278) * this should be visible * Update GEC doc to match new UI experience (#2269) * Update GEC doc to match new UI experience * Update src/connections/destinations/catalog/actions-google-enhanced-conversions/index.md Co-authored-by: markzegarelli <[email protected]> * fix slug, pull data [netlify-build] * fix typo Co-authored-by: markzegarelli <[email protected]> * GA4 destination doc updates (#2273) * GA4 destination doc updates Updates to GA4 docs ahead of Public Beta on 12/14: * Unhide GA4 doc * Add GA4 doc to "strat: google" * Remove private beta instructions * Add more details to the docs * fix hyperlink * fix typo * Add GA4 to strat * add mappings from api Co-authored-by: markzegarelli <[email protected]> * Update GA4 links in GA UA docs (#2272) * Hide or delete GA4-plans doc (#2270) * Hide or delete GA4-plans doc We would like to delete this doc if possible. Otherwise, I have hidden it here because we do not need it anymore as it is outdated and we have a new destination doc for GA4. * unpublish this Co-authored-by: markzegarelli <[email protected]> * catalog [netlify-build] * automate available actions table * fix side nav * fix side nav * google strat * unhide tiktok conversions * catalog update * Apply suggestions from code review Co-authored-by: rchinn-segment <[email protected]> Co-authored-by: forstisabella <[email protected]> Co-authored-by: kdaswani <[email protected]> Co-authored-by: rchinn-segment <[email protected]> * catalog update * republish Google Tag Manager Co-authored-by: pwseg <[email protected]> Co-authored-by: kdaswani <[email protected]> Co-authored-by: pwseg <[email protected]> Co-authored-by: stayseesong <[email protected]> Co-authored-by: forstisabella <[email protected]> Co-authored-by: rchinn-segment <[email protected]> * fix netlify toml * fix strat * unhide * google search console verification * Update Google Universal Analytics doc Add a section on Consent Mode, to explain that we do not support it and why. Google partners requested we add this. * Update src/connections/destinations/catalog/google-analytics/index.md * Update netlify.toml Co-authored-by: markzegarelli <[email protected]> Co-authored-by: pwseg <[email protected]> Co-authored-by: kdaswani <[email protected]> Co-authored-by: pwseg <[email protected]> Co-authored-by: stayseesong <[email protected]> Co-authored-by: forstisabella <[email protected]> Co-authored-by: rchinn-segment <[email protected]> * Update index.md * Update index.md (#2290) Update instructions to create a new pixel, based on feedback from our Facebook partners. * Update index.md Sending a few updates to this documentation. Please reach out with any questions. * Fixed the image that appears in the Amazon S3 documentation * [LiveIntent Audiences] new destination documentation * Delete src/connections/destinations/catalog/tableau directory Updating documentation because Tableau isn't a destination we support. Tableau is a BI tool that can be used on top of a warehouse to visualize and analyze data. Setting up Tableau to a warehouse would be configured directly through Tableau. Customer should reach out to Tableau for support. * Update src/connections/destinations/catalog/kameleoon/index.md I've verified with the customer to remove the api name`Kameleoon.API.Visitor.code` Co-authored-by: stayseesong <[email protected]> * Update sql-traits.md * fix(content): minor grammar / spelling suggestions while reviewing (#2299) * Update index.md * update incorrect description of a few fields (#2300) The description of a few fields were incorrect, the description of the business hours were switched with out-of-business hours: requester_wait_time_in_minutes_calendar requester_wait_time_in_minutes_business on_hold_time_in_minutes_calendar on_hold_time_in_minutes_business This was confirmed by looking at the examples here : https://developer.zendesk.com/api-reference/ticketing/tickets/ticket_metrics/ * updates requested from partner (#2304) * Display links for partner owned components (#2305) * Add the NPM option to A.js quickstart (#2306) * Release 22.1.1 (#2307) (#2308) * Kameleoon updated their HackMD doc - updated docs accordingly HackMD:https://hackmd.io/tp-iUR10TAqKSTcYi5Rd1g?view * Apply suggestions from code review * Apply suggestions from code review * Fixed the image that appears in the Amazon S3 documentation * [LiveIntent Audiences] new destination documentation * Delete src/connections/destinations/catalog/tableau directory Updating documentation because Tableau isn't a destination we support. Tableau is a BI tool that can be used on top of a warehouse to visualize and analyze data. Setting up Tableau to a warehouse would be configured directly through Tableau. Customer should reach out to Tableau for support. * Update src/connections/destinations/catalog/kameleoon/index.md I've verified with the customer to remove the api name`Kameleoon.API.Visitor.code` Co-authored-by: stayseesong <[email protected]> * fix(content): minor grammar / spelling suggestions while reviewing (#2299) * Update index.md * update incorrect description of a few fields (#2300) The description of a few fields were incorrect, the description of the business hours were switched with out-of-business hours: requester_wait_time_in_minutes_calendar requester_wait_time_in_minutes_business on_hold_time_in_minutes_calendar on_hold_time_in_minutes_business This was confirmed by looking at the examples here : https://developer.zendesk.com/api-reference/ticketing/tickets/ticket_metrics/ * updates requested from partner (#2304) * Display links for partner owned components (#2305) * Add the NPM option to A.js quickstart (#2306) Co-authored-by: charholt <[email protected]> Co-authored-by: Charity Holt <[email protected]> Co-authored-by: stayseesong <[email protected]> Co-authored-by: forstisabella <[email protected]> Co-authored-by: Thomas Gilbert <[email protected]> Co-authored-by: Yimeng Yu <[email protected]> Co-authored-by: Jason Sooter <[email protected]> Co-authored-by: Atif Javed <[email protected]> Co-authored-by: charholt <[email protected]> Co-authored-by: Charity Holt <[email protected]> Co-authored-by: stayseesong <[email protected]> Co-authored-by: forstisabella <[email protected]> Co-authored-by: Thomas Gilbert <[email protected]> Co-authored-by: Yimeng Yu <[email protected]> Co-authored-by: Jason Sooter <[email protected]> Co-authored-by: Atif Javed <[email protected]> * Updating spelling/style guide elements, rephrasing events to make them consistent with Radar's documentation * Show action fields tables by default (#2309) * Removing HTML tables, replacing them with links to the Radar documentation, adding style guide changes * Updating the excerpt on the Sources Catalog index page * Fixing spelling errro * add troubleshooting section to GA4 (#2310) * add troubleshooting section to GA4 * Update index.md Co-authored-by: pwseg <[email protected]> * Link Check Update (#2317) * init * internal and external checks in place * updates * link fixes * catalog update, hide twilio event source beta * catalog update * fix internal links * some external fixes * update workflow * permissions * update command * update command * external links * fix file output, enable cron Co-authored-by: markzegarelli <[email protected]> Co-authored-by: tawe-segment <[email protected]> Co-authored-by: forstisabella <[email protected]> Co-authored-by: stayseesong <[email protected]> Co-authored-by: kdaswani <[email protected]> Co-authored-by: Rahul <[email protected]> Co-authored-by: pwseg <[email protected]> Co-authored-by: stayseesong <[email protected]> Co-authored-by: rchinn-segment <[email protected]> Co-authored-by: pwseg <[email protected]> Co-authored-by: Jason Sooter <[email protected]> Co-authored-by: charholt <[email protected]> Co-authored-by: Charity Holt <[email protected]> Co-authored-by: Charlie Gerrior <[email protected]> Co-authored-by: Charlie Gerrior <[email protected]> Co-authored-by: Tony Pitkin <[email protected]> Co-authored-by: David Hull <[email protected]> Co-authored-by: Barak Gila <[email protected]> Co-authored-by: Jennifer Skene <[email protected]> Co-authored-by: RadarAl <[email protected]> Co-authored-by: Thomas Gilbert <[email protected]> Co-authored-by: Yimeng Yu <[email protected]> Co-authored-by: Atif Javed <[email protected]>
1 parent 716f448 commit 2132afe

File tree

110 files changed

+7459
-2589
lines changed

Some content is hidden

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

110 files changed

+7459
-2589
lines changed
Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
name: CheckLinks
2+
3+
# **What it does**: Runs a weekly check for broken external links.
4+
# **Why we have it**: We want to make sure that pages we link to work.
5+
# **Who does it impact**: Everyone
6+
7+
8+
9+
on:
10+
schedule:
11+
- cron: "5 4 * * SUN"
12+
13+
jobs:
14+
checklinks-external:
15+
if: github.repository == 'segmentio/segment-docs'
16+
name: Linux
17+
runs-on: ubuntu-latest
18+
env:
19+
GITHUB_TOKEN: ${{ secrets.DOCS_BOT_PAT_REPO_SCOPE }}
20+
REPORT_AUTHOR: docsbot
21+
REPORT_LABEL: report, automated issue, broken links
22+
REPORT_REPOSITORY: segmentio/segment-docs
23+
strategy:
24+
fail-fast: false
25+
steps:
26+
- uses: actions/checkout@v2
27+
- name: Ruby
28+
uses: ruby/setup-ruby@v1
29+
with:
30+
ruby-version: 2.6 # Not needed with a .ruby-version file
31+
bundler-cache: true # runs 'bundle install' and caches installed gems automatically
32+
- name: Yarn install
33+
run: yarn install
34+
- name: Build jekyll website with
35+
run: bundle exec jekyll build
36+
- name: Run Script
37+
run: |
38+
sudo make linkcheck-external > broken_links.md
39+
- if: ${{ failure() }}
40+
name: Create issue from file
41+
id: broken-link-report
42+
uses: peter-evans/create-issue-from-file@b4f9ee0a9d4abbfc6986601d9b1a4f8f8e74c77e
43+
with:
44+
token: ${{ env.GITHUB_TOKEN }}
45+
46+
title: Broken Links Report - External
47+
content-filepath: ./broken_links.md
48+
repository: ${{ env.REPORT_REPOSITORY }}
49+
labels: ${{ env.REPORT_LABEL }}

.github/workflows/check-links.yml renamed to .github/workflows/check-links-internal.yml

Lines changed: 19 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,15 @@ on:
1111
- cron: "5 4 * * SAT"
1212

1313
jobs:
14-
checklinks:
14+
checklinks-internal:
1515
if: github.repository == 'segmentio/segment-docs'
1616
name: Linux
1717
runs-on: ubuntu-latest
18+
env:
19+
GITHUB_TOKEN: ${{ secrets.DOCS_BOT_PAT_REPO_SCOPE }}
20+
REPORT_AUTHOR: docsbot
21+
REPORT_LABEL: report, automated issue, broken links
22+
REPORT_REPOSITORY: segmentio/segment-docs
1823
strategy:
1924
fail-fast: false
2025
steps:
@@ -28,18 +33,17 @@ jobs:
2833
run: yarn install
2934
- name: Build jekyll website with
3035
run: bundle exec jekyll build
31-
- name: Link Checker
32-
uses: lycheeverse/[email protected]
36+
- name: Run Script
37+
run: |
38+
sudo make linkcheck-internal > broken_links.md
39+
- if: ${{ failure() }}
40+
name: Create issue from file
41+
id: broken-link-report
42+
uses: peter-evans/create-issue-from-file@b4f9ee0a9d4abbfc6986601d9b1a4f8f8e74c77e
3343
with:
34-
args: --no-progress _site/**/*.html -a 429 -c ./lychee.toml
35-
env:
36-
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}
37-
# - name: "exclude non-400 errors"
38-
# run: |
39-
# sudo grep -v "error sending request" ./lychee/out.md > ./lychee/out2.md
40-
- name: Create Issue From File
41-
uses: peter-evans/create-issue-from-file@v3
42-
with:
43-
title: Link Checker Report
44-
content-filepath: ./lychee/out.md
45-
labels: report, automated issue
44+
token: ${{ env.GITHUB_TOKEN }}
45+
46+
title: Broken Links Report - Local
47+
content-filepath: ./broken_links.md
48+
repository: ${{ env.REPORT_REPOSITORY }}
49+
labels: ${{ env.REPORT_LABEL }}

.vscode/yml.code-snippets

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,5 +20,9 @@
2020
"prefix": ["- name"],
2121
"body":["- name: ${1:name}\r\tdescription: ${2:description}\r\tdefault: ${3}"],
2222
"description": "Yaml settings"
23-
}
23+
},
24+
"ext_link":{
25+
"prefix": ["{:}"],
26+
"body":["{:target='${1:_blank}'}"]
27+
},
2428
}

Makefile

Lines changed: 23 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -29,13 +29,19 @@ intialize-work-dir:
2929

3030
.PHONY: build
3131
build: node_modules vendor/bundle
32-
@echo "Jekyll env: ${JEKYLL_ENV}"
33-
@chown -R jekyll /workdir
34-
@chmod -R 777 /workdir
35-
@echo "env: ${JEKYLL_ENV}"
36-
@$(BIN)/webpack --mode=production
37-
@JEKYLL_ENV=${JEKYLL_ENV} bundle exec jekyll build --trace
38-
@if [ '${BUILDKITE_BRANCH}' == 'staging' ]; then echo "updating sitemap.xml..." && sed -i -r 's/segment.com/segment.build/g' ./_site/sitemap.xml; fi;
32+
@$(BIN)/concurrently --raw --kill-others -n webpack,jekyll \
33+
"$(BIN)/webpack --mode=development --watch" \
34+
"bundle exec jekyll clean && bundle exec jekyll build -V"
35+
36+
# .PHONY: build
37+
# build: node_modules vendor/bundle
38+
# @echo "Jekyll env: ${JEKYLL_ENV}"
39+
# @chown -R jekyll /workdir
40+
# @chmod -R 777 /workdir
41+
# @echo "env: ${JEKYLL_ENV}"
42+
# @$(BIN)/webpack --mode=production
43+
# @JEKYLL_ENV=${JEKYLL_ENV} bundle exec jekyll build --trace
44+
# @if [ '${BUILDKITE_BRANCH}' == 'staging' ]; then echo "updating sitemap.xml..." && sed -i -r 's/segment.com/segment.build/g' ./_site/sitemap.xml; fi;
3945

4046
.PHONY: upload-docs
4147
upload-docs:
@@ -82,6 +88,16 @@ changelog: vendor/bundle
8288
sidenav: vendor/bundle
8389
@node scripts/nav.js
8490

91+
# check internal links
92+
.PHONY: linkcheck-internal
93+
linkcheck-internal:
94+
@node scripts/checklinks-internal.js
95+
96+
# check external links
97+
.PHONY: linkcheck-external
98+
linkcheck-external:
99+
@node scripts/checklinks-external.js
100+
85101
.PHONY: zip-artifacts
86102
zip-artifacts:
87103
@tar czf build_package.tar.gz _site

netlify.toml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,6 @@
1818
[context.develop]
1919
command = "yarn develop"
2020

21-
2221
[[redirects]]
2322
from = "/docs/*"
2423
to = "/:splat"
@@ -29,3 +28,8 @@
2928
to = "/assets/docs.bundle.js"
3029
status = 200
3130

31+
[[plugins]]
32+
package = "netlify-plugin-jekyll-cache"
33+
34+
[plugins.inputs]
35+
jekyllSource = "/src"

package.json

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,10 +47,16 @@
4747
"ajv": "^6.10.2",
4848
"algoliasearch": "^4.10.5",
4949
"ansi-regex": "^6.0.1",
50+
"browser-sync": "^2.27.7",
51+
"check-links": "^1.1.8",
5052
"clipboard": "^2.0.8",
5153
"dotenv": "^10.0.0",
5254
"glightbox": "^3.1.0",
55+
"globby": "11.0.4",
5356
"handlebars": "^4.7.7",
57+
"ora": "5.4.1",
58+
"posthtml": "^0.16.5",
59+
"posthtml-urls": "^1.0.0",
5460
"search-insights": "^2.0.3",
5561
"tap-spot": "^1.1.1",
5662
"tippy.js": "5.2.0",

scripts/catalog_papi.js

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,6 @@ const getConnectionModes = (destination) => {
118118
}
119119
fs.mkdirSync(docsPath)
120120
fs.writeFileSync(`${docsPath}/index.md`, content)
121-
fs.appendFileSync('src/_data/catalog/incompleteDocs.txt', `${docsPath}\n`)
122121
}
123122
}
124123

@@ -167,6 +166,7 @@ const updateSources = async () => {
167166
const hiddenSources = [
168167
'amp',
169168
'factual-engine',
169+
'twilio-event-streams-beta'
170170
]
171171

172172
sources.forEach(source => {
@@ -197,6 +197,7 @@ const updateSources = async () => {
197197

198198
// create the catalog metadata
199199
let updatedSource = {
200+
id: source.id,
200201
display_name: source.name,
201202
slug,
202203
url,
@@ -272,7 +273,14 @@ const updateDestinations = async () => {
272273

273274

274275
destinations.forEach(destination => {
276+
277+
// We need to be able to keep the system slug in some cases.
278+
const slugOverrides = ['actions-google-enhanced-conversions', 'actions-google-analytics-4', 'actions-facebook-conversions-api']
275279
let slug = slugify(destination.name)
280+
if (slugOverrides.includes(destination.slug)) {
281+
slug = destination.slug
282+
}
283+
276284

277285
// Flip the slug of Actions destinations
278286
const actionsDests = [

scripts/checklinks-external.js

Lines changed: 75 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,75 @@
1+
const globby = require('globby')
2+
const posthtml = require('posthtml')
3+
const fs = require('fs')
4+
const server = require('browser-sync').create()
5+
const checkLinks = require('check-links')
6+
const {
7+
$dataMetaSchema
8+
} = require('ajv')
9+
const ora = require('ora')
10+
11+
12+
13+
const checkForDeadExternalUrls = async () => {
14+
try {
15+
const files = await globby('_site/**/*.html')
16+
const throbber = ora('Link Check Starting').start()
17+
const urls = new Set()
18+
19+
const ph = posthtml([
20+
require('posthtml-urls')({
21+
eachURL: (url) => {
22+
if (!url.startsWith('http://0') && !url.startsWith('/') && !url.startsWith('https://github.com/segmentio')) {
23+
urls.add(url)
24+
}
25+
},
26+
}),
27+
])
28+
throbber.succeed()
29+
throbber.start('Processing files')
30+
31+
files.forEach((file) => {
32+
ph.process(fs.readFileSync(file))
33+
})
34+
throbber.succeed()
35+
throbber.start('Starting server')
36+
await new Promise((resolve) => {
37+
server.init({
38+
port: 3000,
39+
server: {
40+
baseDir: '_site',
41+
},
42+
open: false,
43+
logLevel: 'silent',
44+
},
45+
resolve,
46+
)
47+
throbber.succeed()
48+
})
49+
50+
throbber.start('Checking the links')
51+
const results = await checkLinks(
52+
Array.from(urls).map((url) =>
53+
url
54+
),
55+
)
56+
const deadUrls = Array.from(urls).filter(
57+
(url) => results[url].status === 'dead',
58+
)
59+
60+
if (deadUrls.length > 0) {
61+
throbber.fail(`Dead URLS: ${deadUrls.length}\n\n`)
62+
console.log(`Dead URLS: ${deadUrls.length}\n\n${deadUrls.join('\n')}`)
63+
process.exit(1)
64+
} else {
65+
console.log('All links work!')
66+
process.exit
67+
}
68+
throbber.stop()
69+
server.exit()
70+
} catch (e) {
71+
console.error(e)
72+
server.exit()
73+
}
74+
}
75+
checkForDeadExternalUrls()

0 commit comments

Comments
 (0)