Skip to content

Commit 9e7e9d3

Browse files
authored
Upgrade to Docusarus 3.4.0, Update Nav Bar (#616)
* Upgrade to docusarus 3.4.0 * adjust the nav bar * fix build * fix mdx * Add components * finish upgrade to 3.4 * bump node version * add placeholders * add placeholders * fix deprecated actions * upgrade actions * upgrade modules
1 parent 1194976 commit 9e7e9d3

File tree

545 files changed

+15546
-80838
lines changed

Some content is hidden

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

545 files changed

+15546
-80838
lines changed

.github/actions/build-website/action.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,14 +24,14 @@ runs:
2424
steps:
2525
# https://github.com/marketplace/actions/configure-aws-credentials-action-for-github-actions
2626
- name: Configure AWS Credentials
27-
uses: aws-actions/configure-aws-credentials@v1
27+
uses: aws-actions/configure-aws-credentials@v4
2828
with:
2929
aws-region: ${{ inputs.aws_region }}
3030
role-to-assume: ${{ inputs.iam_role_arn }}
3131
role-session-name: ${{ inputs.iam_role_session_name }}
3232

3333
- name: Checkout Repository
34-
uses: actions/checkout@v3
34+
uses: actions/checkout@v4
3535
with:
3636
fetch-depth: 0
3737

@@ -41,7 +41,7 @@ runs:
4141
node-version-file: ".nvmrc"
4242

4343
- name: "Checkout 'terraform-aws-components' Repository"
44-
uses: actions/checkout@v3
44+
uses: actions/checkout@v4
4545
with:
4646
fetch-depth: 1
4747
repository: cloudposse/terraform-aws-components

.github/workflows/website-deploy-preview.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -43,32 +43,32 @@ jobs:
4343
steps:
4444
# https://github.com/marketplace/actions/configure-aws-credentials-action-for-github-actions
4545
- name: Configure AWS Credentials
46-
uses: aws-actions/configure-aws-credentials@v1
46+
uses: aws-actions/configure-aws-credentials@v4
4747
with:
4848
aws-region: ${{ env.AWS_REGION }}
4949
role-to-assume: ${{ env.IAM_ROLE_ARN }}
5050
role-session-name: ${{ env.IAM_ROLE_SESSION_NAME }}
5151

5252
- name: Checkout Repository
53-
uses: actions/checkout@v3
53+
uses: actions/checkout@v4
5454
with:
5555
fetch-depth: 0
5656

5757
- name: Setup Node
58-
uses: actions/setup-node@v3
58+
uses: actions/setup-node@v4
5959
with:
6060
node-version-file: ".nvmrc"
6161

6262
- name: "Checkout 'terraform-aws-components' Repository"
63-
uses: actions/checkout@v3
63+
uses: actions/checkout@v4
6464
with:
6565
fetch-depth: 1
6666
repository: cloudposse/terraform-aws-components
6767
ref: main
6868
path: tmp/components/terraform-aws-components
6969

7070
- name: "Setup Python"
71-
uses: actions/setup-python@v4
71+
uses: actions/setup-python@v5
7272
with:
7373
python-version: '3.10'
7474

.github/workflows/website-deploy-staging-preview.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ jobs:
3434

3535
steps:
3636
- name: Checkout Repository
37-
uses: actions/checkout@v3
37+
uses: actions/checkout@v4
3838
with:
3939
fetch-depth: 0
4040

.github/workflows/website-deploy-staging-release.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ jobs:
3333

3434
steps:
3535
- name: Checkout Repository
36-
uses: actions/checkout@v3
36+
uses: actions/checkout@v4
3737
with:
3838
fetch-depth: 0
3939

.nvmrc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
v19.4.0
1+
v21.7.3

Makefile

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ all: real-clean build
88
@exit 0
99

1010
deps:
11-
npm install --only=production
11+
npm install
1212

1313
.PHONY: build
1414

@@ -23,6 +23,7 @@ build: deps
2323
build-production: build
2424
@exit 0
2525

26+
up: start
2627
start:
2728
npm start
2829

@@ -33,3 +34,6 @@ real-clean:
3334
rm -fr .docusaurus && \
3435
rm -fr build && \
3536
rm -fr node_modules
37+
38+
lint:
39+
npx docusaurus-mdx-checker --cwd docs

docs/best-practices/docker-best-practices.md

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,9 @@ Inheritance is when you use `FROM some-image:1.2.3` (vs `FROM scratch`) in a `Do
1010
Try to leverage the same base image in as many of your images as possible for faster `docker pulls`.
1111

1212
:::info
13-
- <https://docs.docker.com/engine/reference/builder/#from>
13+
14+
- https://docs.docker.com/engine/reference/builder/#from
15+
1416
:::
1517

1618
## Multi-stage Builds
@@ -21,8 +23,8 @@ There are two ways to leverage multi-stage builds:
2123
2. *Multiple-Inheritance* We like to think of "multi-stage builds" as a mechanism for "multiple inheritance" as it relates to docker images. While not technically the same thing, using multi-stage images makes it possible to `COPY --from=other-image` to keep things very DRY.
2224

2325
:::info
24-
- <https://docs.docker.com/develop/develop-images/multistage-build/>
25-
- <https://blog.alexellis.io/mutli-stage-docker-builds/>
26+
- https://docs.docker.com/develop/develop-images/multistage-build/
27+
- https://blog.alexellis.io/mutli-stage-docker-builds/
2628
:::
2729

2830
## Use Scratch Base Image
@@ -41,7 +43,7 @@ When using self-hosted GitHub Actions Runners in an AWS environment, however, we
4143

4244
The following example demonstrates how to configure the [cloudposse/github-action-docker-build-push](https://github.com/cloudposse/github-action-docker-build-push) action to use ECR as the remote cache storage backend:
4345

44-
```diff
46+
```diff
4547
- name: Build
4648
id: build
4749
uses: cloudposse/github-action-docker-build-push@main

docs/best-practices/editor-config.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -67,11 +67,11 @@ indent_size = 4
6767

6868
## Editor Plugins
6969

70-
Find all plugins here: <http://editorconfig.org/#download>
70+
Find all plugins here: http://editorconfig.org/#download
7171

7272
- [Vim](https://github.com/editorconfig/editorconfig-vim#readme)
7373
- [Visual Studio](https://marketplace.visualstudio.com/items?itemName=EditorConfigTeam.EditorConfig)
7474

7575
## References
7676

77-
- <http://editorconfig.org/>
77+
- http://editorconfig.org/

docs/best-practices/github-feature-branches.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ A _Pull Request_ allows many things to happen:
3030
- **Description**: A long description that details **_What_** was changed, **_Why_** it was deemed necessary, and any other **_References_** that might be useful (E.g. Jira ticket)
3131
- **Comments**: let anyone provide arbitrary feedback viewable by everyone.
3232
- **Diffs**: show what changed between this feature and the current master branch
33-
- **Formal Code Review Process:** let multiple people contribute to the code review process by submitting comments on a line-by-line basis. Having these code reviews formally documented serves as an excellent teaching tool. Over time, the reviews become faster and faster as developers learn what is expected. {{< img src="/assets/9df4fad-image_2.png" title="Example of Code Review" >}}
33+
- **Formal Code Review Process:** let multiple people contribute to the code review process by submitting comments on a line-by-line basis. Having these code reviews formally documented serves as an excellent teaching tool. Over time, the reviews become faster and faster as developers learn what is expected. ![Example of Code Review](/assets/9df4fad-image_2.png)
3434
- **Merging**: Once the PR is approved, the developer can squash and merge their code into the master branch. Squashing allows the master branch to have a very clean commit history where every commit corresponds to a PR. ![Example of Merging](/assets/2b3e7eb-image_4.png)
3535
- **Clean Commit History**: means that every change to the master branch is documented and justified. No one is sneaking in changes. ![Example of Clean Commit History](/assets/b3dae79-image_5.png)
3636
- **History of Features** and when they were added ![History of Features](/assets/f9a3727-image_7.png)

docs/best-practices/github-pull-requests.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ Once that is happy, push the rebased changes back to the origin.
2525
git push origin newfeature -f
2626
```
2727

28-
Then follow these instructions once you're ready: <https://help.github.com/articles/creating-a-pull-request/>
28+
Then follow these instructions once you're ready: https://help.github.com/articles/creating-a-pull-request/
2929

3030
## Pull Request Template
3131

@@ -45,5 +45,5 @@ Use the following markdown template to describe the Pull Request.
4545
**Pro Tip:** Use a `.github/pull_request_template.md` file to automatically populate this template when creating new Pull Requests.
4646

4747
:::info
48-
<https://help.github.com/articles/creating-a-pull-request-template-for-your-repository/>
48+
https://help.github.com/articles/creating-a-pull-request-template-for-your-repository/
4949
:::

docs/best-practices/project-management-managers-vs-makers.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,5 +12,6 @@ Developers (Makers) and Managers work differently.
1212

1313
Interrupts are costly for developers and therefore the business.
1414

15-
<http://www.paulgraham.com/makersschedule.html>
15+
http://www.paulgraham.com/makersschedule.html
16+
1617
(Paul Graham - YCombinator Founder)

docs/best-practices/terraform-tips-tricks.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -62,8 +62,8 @@ resource "aws_s3_bucket" "assets" {
6262
For an example of how we use it, check out our [`terraform-aws-s3-log-storage`](https://github.com/cloudposse/terraform-aws-s3-log-storage) module.
6363

6464
:::info
65-
- <https://docs.aws.amazon.com/AmazonS3/latest/dev/object-lifecycle-mgmt.html>
66-
- <https://www.terraform.io/docs/providers/aws/r/s3_bucket.html#using-object-lifecycle>
65+
- https://docs.aws.amazon.com/AmazonS3/latest/dev/object-lifecycle-mgmt.html
66+
- https://www.terraform.io/docs/providers/aws/r/s3_bucket.html#using-object-lifecycle
6767
:::
6868

6969

docs/category/README.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
## Placeholder Categories
2+
3+
Due to an issue with the Docusaurus build process, placeholder directories and files were created for the following categories:
4+
5+
- `how-to`
6+
- `legacy`

docs/category/how-to/index.md

Whitespace-only changes.

docs/category/legacy/index.md

Whitespace-only changes.

docs/generated/components/_category_.json

Lines changed: 0 additions & 8 deletions
This file was deleted.

docs/generated/components/index.md

Lines changed: 0 additions & 18 deletions
This file was deleted.

0 commit comments

Comments
 (0)