Skip to content

Commit 501f530

Browse files
committed
Merge branch 'main' into generate-redirects
2 parents 8c3a240 + 31d15b3 commit 501f530

File tree

276 files changed

+14151
-1865
lines changed

Some content is hidden

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

276 files changed

+14151
-1865
lines changed

.circleci/config.yml

Lines changed: 41 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,8 @@ parameters:
66
default: ""
77

88
orbs:
9-
aws-cli: circleci/[email protected]
9+
aws-cli: circleci/[email protected]
10+
vale: circleci/[email protected]
1011

1112
executors:
1213
node_executor:
@@ -63,9 +64,9 @@ jobs:
6364
steps:
6465
- checkout
6566
- run:
66-
name: Fetch branches matching server-v*
67+
name: Fetch branches matching server-4*
6768
command: |
68-
for branch in $(git ls-remote --heads origin | awk '{print $2}' | grep 'refs/heads/server-v' | sed 's|refs/heads/||'); do
69+
for branch in $(git ls-remote --heads origin | awk '{print $2}' | grep 'refs/heads/server-4' | sed 's|refs/heads/||'); do
6970
echo "[INFO] Fetching branch: $branch"
7071
git checkout "$branch"
7172
git pull origin "$branch"
@@ -108,7 +109,6 @@ jobs:
108109
- notify_error:
109110
message: "Build job failed for branch ${CIRCLE_BRANCH}"
110111

111-
112112
validate:
113113
executor: ruby_executor
114114
steps:
@@ -129,7 +129,6 @@ jobs:
129129
- notify_error:
130130
message: "Validation job failed for branch ${CIRCLE_BRANCH}"
131131

132-
133132
deploy-preview:
134133
executor: node_executor
135134
steps:
@@ -184,19 +183,29 @@ jobs:
184183
- notify_error:
185184
message: "Deploy preview job failed for branch ${CIRCLE_BRANCH}"
186185

187-
188186
deploy-production:
189187
executor: node_executor
188+
parameters:
189+
bucket_name:
190+
description: The name of the s3 bucket where static assets are stored.
191+
type: string
192+
build_dir:
193+
default: "build"
194+
description: The path to the docs build directory
195+
type: string
190196
steps:
191197
- attach_workspace:
192198
at: .
193199
- aws-setup
194200
- run:
195201
name: Deploy Production Site to S3
196202
command: |
203+
AWS_S3_BUCKET=<< parameters.bucket_name >>
204+
BUILD_DIRECTORY=<< parameters.build_dir >>
205+
197206
set -e
198207
echo "[INFO] Deploying production site..."
199-
aws s3 sync build s3://${DOCS_BUILD_BUCKET}/ --delete --endpoint-url ${S3_ENDPOINT}
208+
aws s3 sync "$BUILD_DIRECTORY" "s3://$AWS_S3_BUCKET/"
200209
- notify_error:
201210
message: "Production deployment job failed for branch ${CIRCLE_BRANCH}"
202211

@@ -241,27 +250,48 @@ jobs:
241250
echo "[WARN] Tag '${TAG}' not found."
242251
fi
243252
244-
245253
workflows:
254+
lint:
255+
unless:
256+
equal: [main, << pipeline.git.branch >>]
257+
jobs:
258+
- vale/lint:
259+
reference_branch: main
260+
base_dir: docs
246261
build_validate_and_deploy:
247262
when:
248263
equal: ["", << pipeline.parameters.cleanup_preview_branch >>]
249264
jobs:
250-
- build
265+
- build:
266+
context: circleci-docs-static
251267
- validate:
252268
requires: [build]
253269
- deploy-preview:
254270
requires: [validate]
255271
filters:
256272
branches:
257273
ignore: main
258-
context: circleci-docs-static
274+
context:
275+
[
276+
circleci-docs-static,
277+
docs-platform-assets,
278+
web-ui-npm,
279+
web-ui-datadog,
280+
]
259281
- deploy-production:
260282
requires: [validate]
261283
filters:
262284
branches:
263285
only: main
264-
context: circleci-docs-static
286+
context:
287+
[
288+
circleci-docs-static,
289+
docs-platform-assets,
290+
web-ui-npm,
291+
web-ui-datadog,
292+
]
293+
bucket_name: "circleci-docs-platform-assets/docs-preview"
294+
build_dir: "build"
265295
cleanup_preview:
266296
when: pipeline.parameters.cleanup_preview_branch != ""
267297
jobs:

.env.copy

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
ALGOLIA_APP_ID=
22
ALGOLIA_ADMIN_KEY=
33
ALGOLIA_INDEX_NAME=circleci-docs
4+
COOKIEBOT=
45
SEGMENT_WRITE_KEY=
56
SKIP_INDEX_SEARCH=true

.github/CODEOWNERS

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
* @circleci/docs @circleci/docs-friends @circleci/lifecycle @circleci/product-mgmt-product-experience
2+

.github/ISSUE_TEMPLATE/bug.md

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
---
2+
name: Bug
3+
about: A technical problem
4+
---
5+
6+
# Description
7+
Describe the bug you found.
8+
9+
# Location
10+
Describe where you caught the bug.
11+
If the bug occurs in a specific document,
12+
add the link here.
13+
14+
# Steps to Reproduce
15+
Describe the steps you took to produce the bug.
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
---
2+
name: Grammatical Error
3+
about: Grammatically incorrect writing
4+
---
5+
6+
# Location
7+
A link to the document with the error.
8+
9+
# Error Details
10+
A brief description of the error.
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
---
2+
name: Inconsistent
3+
about: Conflicting information
4+
---
5+
6+
# Locations
7+
Add a link to the document (or documents)
8+
with the conflicting documentation.
9+
10+
# Conflict Description
11+
Describe the conflicting documentation.

.github/ISSUE_TEMPLATE/incorrect.md

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
---
2+
name: Incorrect
3+
about: Incorrect information
4+
---
5+
6+
# Locations
7+
Add a link to the document
8+
with the incorrect information.
9+
10+
# Details
11+
Describe the incorrect information in the document.
12+
Extra evidence like build output or other links
13+
is helpful in "proving" that documentation isn't correct.

.github/ISSUE_TEMPLATE/typo.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
---
2+
name: Typo
3+
about: A typographical error
4+
---
5+
6+
# Location
7+
A link to the document with the typo.
8+
9+
# Error Details
10+
A description of the typo.

.github/ISSUE_TEMPLATE/unclear.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
---
2+
name: Unclear
3+
about: Confusing language
4+
---
5+
6+
# Location
7+
A link to the document that is unclear.
8+
9+
# Explanation
10+
Describe what confused you about the document.
11+
This could be syntax, word choice, sentence length, or something entirely different.
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
---
2+
name: Undocumented
3+
about: Missing information
4+
---
5+
6+
# Missing Information
7+
Give a brief overview of the information you were looking for.
8+
9+
# Already Looked
10+
Provide a list of places you've already looked for this information.
11+
Links are much appreciated.
12+
13+
# Potential Locations
14+
Tell us where you would expect to find this information.
15+
This can be either an existing document,
16+
or an entirely new document.

0 commit comments

Comments
 (0)