Skip to content

Commit 3635efc

Browse files
gadams999Gavin Adams
andauthored
v2 base import (#29)
Co-authored-by: Gavin Adams <[email protected]>
1 parent 5dd9043 commit 3635efc

File tree

485 files changed

+26154
-769
lines changed

Some content is hidden

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

485 files changed

+26154
-769
lines changed

.github/PULL_REQUEST_TEMPLATE.md

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
1-
*Issue #, if available:*
2-
3-
*Description of changes:*
1+
Issue #, if available:
42

3+
Description of changes:
54

65
By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

.github/workflows/pull_request.yml

Lines changed: 70 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,70 @@
1+
name: validate
2+
3+
on:
4+
pull_request:
5+
types: [opened, synchronize, reopened]
6+
7+
jobs:
8+
pull_request_validate:
9+
runs-on: ubuntu-latest
10+
env:
11+
working-directory: ./src
12+
name: Hugo content processing
13+
steps:
14+
- name: Checkout branch
15+
uses: actions/checkout@v2
16+
- name: Set up Docker Buildx
17+
uses: docker/setup-buildx-action@v1
18+
- name: Cache Docker layers
19+
uses: actions/cache@v2
20+
with:
21+
path: /tmp/.buildx-cache
22+
key: ${{ runner.os }}-buildx-${{ github.sha }}
23+
restore-keys: |
24+
${{ runner.os }}-buildx-
25+
- name: Build Hugo container image
26+
uses: docker/build-push-action@v2
27+
with:
28+
context: ./src
29+
file: ./src/Dockerfile-build
30+
# Do not push to remote registry
31+
push: false
32+
# Load as a local image
33+
load: true
34+
tags: temporary/hugo-ubuntu:latest
35+
cache-from: type=local,src=/tmp/.buildx-cache
36+
cache-to: type=local,dest=/tmp/.buildx-cache-new
37+
- # Temp fix
38+
# https://github.com/docker/build-push-action/issues/252
39+
# https://github.com/moby/buildkit/issues/1896
40+
name: Move cache to keep size low
41+
run: |
42+
rm -rf /tmp/.buildx-cache
43+
mv /tmp/.buildx-cache-new /tmp/.buildx-cache
44+
- name: Validate Hugo content, internal, and external web links
45+
run: ./make_hugo.sh -v
46+
working-directory: ${{env.working-directory}}
47+
- name: Content has successfully PASSED validation
48+
if: ${{ success() }}
49+
uses: actions/github-script@v3
50+
with:
51+
github-token: ${{secrets.GITHUB_TOKEN}}
52+
script: |
53+
github.issues.createComment({
54+
issue_number: context.issue.number,
55+
owner: context.repo.owner,
56+
repo: context.repo.repo,
57+
body: 'All content has passed validation tests and can be merged based upon reviewer approval.'
58+
})
59+
- name: Content has FAILED validation
60+
if: ${{ failure() }}
61+
uses: actions/github-script@v3
62+
with:
63+
github-token: ${{secrets.GITHUB_TOKEN}}
64+
script: |
65+
github.issues.createComment({
66+
issue_number: context.issue.number,
67+
owner: context.repo.owner,
68+
repo: context.repo.repo,
69+
body: 'Content validation has failed. Review the details of the specific check failure. Before updating the pull request, please perform local validation. All validation check must be successfully resolved before your pull request can be reviewed for approval.'
70+
})

.gitignore

Lines changed: 27 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,11 @@
1+
# All the temp file
2+
tmp/**
3+
14
# IDE and Editor artifacts #
25
*.bbprojectd
36
.idea
7+
.vscode/settings.json
8+
.vscode/launch.json
49

510
# Temporary Files #
611
tmp_*
@@ -11,7 +16,27 @@ cfg.tmp.json
1116
.DS_Store?
1217

1318
# Hugo generated content
14-
public/
19+
/src/hugo/public/*
20+
!/src/hugo/public/.gitkeep
21+
/src/hugo/tmp/*
22+
/src/hugo/.asciidoctor/*
1523

1624
# Dev files
17-
Pipfile*
25+
Pipfile*
26+
27+
# Microsoft temp files
28+
*.tmp
29+
# Word temporary
30+
~$*.doc*
31+
# Word Auto Backup File
32+
Backup of *.doc*
33+
# Excel temporary
34+
~$*.xls*
35+
# Excel Backup File
36+
*.xlk
37+
# PowerPoint temporary
38+
~$*.ppt*
39+
# Visio autosave temporary files
40+
*.~vsd*
41+
# Misc
42+
config-template.yml

.gitmodules

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

CONTRIBUTING.md

Lines changed: 14 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -6,17 +6,17 @@ Please read through this document before you submit any pull requests or issues.
66

77
## What to expect when you contribute
88

9-
When you submit a pull request, our team is notified and will respond as quickly as we can. We'll do our best to work with you to ensure that your pull request adheres to our style and standards. If we merge your pull request, we might make additional edits later for style or clarity.
9+
When you submit a pull request, our team is notified and will respond as quickly as we can. We'll do our best to work with you to ensure that your pull request adheres to our style and standards. If we merge your pull request, we might make, or request, additional edits later for style or clarity.
1010

1111
The documentation in this repository are not published directly to the IoT Atlas website. If we merge your pull request, we'll publish your changes to the documentation website as soon as we can, but they won't appear immediately or automatically.
1212

1313
We look forward to receiving your pull requests for:
1414

15-
* New content you'd like to contribute (such as new designs, considerations, or examples)
16-
* Inaccuracies in the content
17-
* Information gaps in the content that need more detail to be complete
18-
* Typos or grammatical errors
19-
* Suggested rewrites that improve clarity and reduce confusion
15+
- New content you'd like to contribute (such as new patterns, considerations, or examples)
16+
- Inaccuracies in the content
17+
- Information gaps in the content that need more detail to be complete
18+
- Typos or grammatical errors
19+
- Suggested rewrites that improve clarity and reduce confusion
2020

2121
**Note:** We all write differently, and you might not like how we've written or organized something currently. We want that feedback. But please be sure that your request for a rewrite is supported by the previous criteria. If it isn't, we might decline to merge it.
2222

@@ -25,24 +25,22 @@ We look forward to receiving your pull requests for:
2525
To contribute, send us a pull request. For small changes, such as fixing a typo or adding a link, you can use the [GitHub Edit Button](https://blog.github.com/2011-04-26-forking-with-the-edit-button/). For larger changes:
2626

2727
1. [Fork the repository](https://help.github.com/articles/fork-a-repo/).
28-
2. In your fork, make your change in a branch that's based on this repository's **master** branch.
29-
3. Test your change
30-
* [Install and run](https://gohugo.io/getting-started/quick-start/) Hugo in the local copy of your repository
31-
* If you have issues with rendering the site, make sure you've included the template using this command: `git submodule update --init --recursive`
28+
2. In your fork, make your change in a branch that's based on this repository's **main** branch.
29+
3. Test your change. Review the [contributor development process](https://github.com/aws/iot-atlas/blob/main/src/README.md) for instructions on testing local content.
3230
4. Commit the change to your fork, using a clear and descriptive commit message.
3331
5. [Create a pull request](https://help.github.com/articles/creating-a-pull-request-from-a-fork/), answering any questions in the pull request form.
3432

3533
Before you send us a pull request, please be sure that:
3634

37-
1. You're working from the latest source on the **master** branch.
38-
2. You check [existing open](https://github.com/awsdocs/iot-atlas/pulls), and [recently closed](https://github.com/awsdocs/iot-atlas/pulls?q=is%3Apr+is%3Aclosed), pull requests to be sure that someone else has not already addressed the problem.
39-
3. You [create an issue](https://github.com/awsdocs/iot-atlas/issues/new) before working on a contribution that will take a significant amount of your time.
35+
1. You're working from the latest source on the **main** branch.
36+
2. You check [existing open](https://github.com/aws/iot-atlas/pulls), and [recently closed](https://github.com/aws/iot-atlas/pulls?q=is%3Apr+is%3Aclosed), pull requests to be sure that someone else has not already addressed the problem.
37+
3. You [create an issue](https://github.com/aws/iot-atlas/issues/new) before working on a contribution that will take a significant amount of your time.
4038

41-
For contributions that will take a significant amount of time, [open a new issue](https://github.com/awsdocs/iot-atlas/issues/new) to pitch your idea before you get started. Explain the problem and describe the content you want to see added. Let us know if you'll write it yourself or if you'd like us to help. We'll discuss your proposal with you and let you know whether we're likely to accept it. We don't want you to spend a lot of time on a contribution that might be outside the scope of the IoT Atlas or that is already in the works.
39+
For contributions that will take a significant amount of time, [open a new issue](https://github.com/aws/iot-atlas/issues/new) to pitch your idea before you get started. Explain the problem and describe the content you want to see added. Let us know if you'll write it yourself or if you'd like us to help. We'll discuss your proposal with you and let you know whether we're likely to accept it. We don't want you to spend a lot of time on a contribution that might be outside the scope of the IoT Atlas or that is already in the works.
4240

4341
## Finding contributions to work on
4442

45-
If you'd like to contribute, but don't have a project in mind, look at the [open issues](https://github.com/awsdocs/iot-atlas/issues) in this repository for some ideas. Any issues with the [help wanted](https://github.com/awsdocs/iot-atlas/labels/help%20wanted) or [enhancement](https://github.com/awsdocs/iot-atlas/labels/enhancement) labels are a great place to start.
43+
If you'd like to contribute, but don't have a project in mind, look at the [open issues](https://github.com/aws/iot-atlas/issues) in this repository for some ideas. Any issues with the [help wanted](https://github.com/aws/iot-atlas/labels/help%20wanted) or [enhancement](https://github.com/aws/iot-atlas/labels/enhancement) labels are a great place to start.
4644

4745
In addition to written content, we really appreciate new examples for each design, such as examples for different platforms or environments, and code samples in additional languages.
4846

@@ -56,4 +54,4 @@ If you discover a potential security issue, please notify AWS Security via our [
5654

5755
## Licensing
5856

59-
See the [LICENSE](https://github.com/awsdocs/iot-atlas/blob/master/LICENSE) file for this project's licensing. We will ask you to confirm the licensing of your contribution. We may ask you to sign a [Contributor License Agreement (CLA)](http://en.wikipedia.org/wiki/Contributor_License_Agreement) for larger changes.
57+
See the [LICENSE](https://github.com/aws/iot-atlas/blob/main/LICENSE) file for this project's licensing. We will ask you to confirm the licensing of your contribution. We may ask you to sign a [Contributor License Agreement (CLA)](http://en.wikipedia.org/wiki/Contributor_License_Agreement) for larger changes.

FAQ.md

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,5 @@
11
# Frequently Asked Questions
2+
23
### How can I test content before submitting a pull request?
3-
If you have forked the repository, you need to install and run the IoT Atlas in a local copy of Hugo. You can do that through the following steps.
4-
1. In the local forked repository execute: `git submodule update --init --recursive` which will pull in the necessary Hugo templates.
5-
1. Install Hugo following [these instructions](https://gohugo.io/getting-started/installing/).
6-
1. Start a local Hugo server: `hugo server --buildDrafts -v` which will build all pages, if they are in a draft state or not.
7-
**Note**: you should see a message such as `Web Server is available at http://localhost:1313/ (bind address 127.0.0.1)
8-
` when the Hugo server is operating correctly.
9-
1. Browse to the local Hugo server.
4+
5+
Please review the [contributor development process](https://github.com/aws/iot-atlas/blob/main/src/README.md) for instructions on testing local content.

README.md

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,14 @@
1-
![](https://codebuild.us-west-2.amazonaws.com/badges?uuid=eyJlbmNyeXB0ZWREYXRhIjoiTmR3cllNQ09temo0MXVWU0JnWUswL09LeTdCRmM1QTZyTHAwVElRVHNIaDh2b3NRME1FRU85V2w3cmg2aWFJWlpPM1I5Z1JtcW0wU2FZV1U0SmxFNWNFPSIsIml2UGFyYW1ldGVyU3BlYyI6ImsrNTlZVHlMSHpCcjVFSngiLCJtYXRlcmlhbFNldFNlcmlhbCI6MX0%3D&branch=master)
21
## IoT Atlas
32

4-
This repository contains the content of the [IoT Atlas](http://iotatlas.net)
3+
This repository contains the content of the [IoT Atlas](http://iotatlas.net)
54

65
The IoT Atlas supports your project by explaining the why, what, and who of commonly used, modern IoT designs.
76

8-
It would be great to have you join us and [contribute](https://github.com/aws/iot-atlas/blob/master/CONTRIBUTING.md) your ideas for designs, considerations, and examples. Please also read the [FAQ](https://github.com/aws/iot-atlas/blob/master/FAQ.md).
7+
It would be great to have you join us and [contribute](https://github.com/aws/iot-atlas/blob/main/CONTRIBUTING.md) your ideas for designs, considerations, and examples. Please also read the [FAQ](https://github.com/aws/iot-atlas/blob/main/FAQ.md).
8+
9+
## Local Development
10+
11+
Please review the [contributor development process](https://github.com/aws/iot-atlas/blob/main/src/README.md) for instructions on testing local content.
912

1013
## License Summary
1114

build/README.me

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
This folder contains the tooling used to build the test and deployment of the IoT Atlas site.

buildspec.yml

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

config.json

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

0 commit comments

Comments
 (0)