-
-
Notifications
You must be signed in to change notification settings - Fork 483
Test 2.0.0 #1268
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Test 2.0.0 #1268
Changes from all commits
Commits
Show all changes
16 commits
Select commit
Hold shift + click to select a range
a5409fa
Test 2.0.0
Matteo-it bc691a9
test upgrade node
Matteo-it df7b45c
Update deploy actions
Matteo-it 1117cf7
Programming section
Matteo-it c107637
Programming order
Matteo-it c50ca10
Prgramming page improvements
Matteo-it 63c9dca
Update frontmatter for new section Programming
Matteo-it cda0dfa
Add custom videoInfo and product banner buttons. Update README
Matteo-it f5f2008
Language reference structure
Matteo-it 7579a1f
Improve programming and language reference new structure
Matteo-it 2c956a4
Github cloudflare action (#1576)
Matteo-it b7ea0b4
2.0.0-alpha-24.9
Matteo-it b362421
2.0.0-alpha-25
Matteo-it 0a2273f
2.0.0-alpha-25
Matteo-it 9f2ea78
2.0.0-alpha-25.1
Matteo-it dbe37a0
2.0.0
Matteo-it File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
There are no files selected for viewing
81 changes: 81 additions & 0 deletions
.github/actions/cloudflare-upload/action.yml
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,81 @@ | ||
name: "Upload an app to Cloudflare Pages" | ||
description: "Manually deploy an app to cloudflare pages" | ||
inputs: | ||
upload-dir: | ||
description: "The name of the app to build and export" | ||
required: true | ||
|
||
project-name: | ||
description: "The name of the project to upload to" | ||
required: true | ||
|
||
cloudflare-account: | ||
description: "The Cloudflare account ID" | ||
required: true | ||
|
||
cloudflare-api-token: | ||
description: "The Cloudflare API token" | ||
required: true | ||
|
||
runs: | ||
using: composite | ||
steps: | ||
|
||
- name: Find PR Preview Comment | ||
if: github.event_name == 'pull_request' | ||
uses: peter-evans/find-comment@v1 | ||
id: deploy-preview-comment | ||
with: | ||
issue-number: ${{ github.event.pull_request.number }} | ||
comment-author: "github-actions[bot]" | ||
body-includes: ${{ inputs.project-name }} | ||
|
||
- name: Update Comment if exists | ||
if: github.event_name == 'pull_request' && steps.deploy-preview-comment.outputs.comment-id != 0 | ||
uses: peter-evans/create-or-update-comment@v1.4.5 | ||
with: | ||
comment-id: ${{ steps.deploy-preview-comment.outputs.comment-id }} | ||
edit-mode: replace | ||
body: | | ||
### ${{ inputs.project-name }} | ||
Waiting for deployment to complete... | ||
|
||
- id: branch-name | ||
uses: tj-actions/branch-names@v5 | ||
|
||
- id: format-branch | ||
shell: bash | ||
run: format=$(echo ${{ steps.branch-name.outputs.current_branch }} | tr / -) && echo "::set-output name=branch::$(echo "${format:0:28}")" | ||
|
||
- name: deploy-cloudflare | ||
uses: cloudflare/pages-action@v1 | ||
id: deploy-cloudflare | ||
with: | ||
apiToken: ${{ inputs.cloudflare-api-token }} | ||
accountId: ${{ inputs.cloudflare-account }} | ||
projectName: ${{ inputs.project-name }} | ||
directory: ${{ inputs.upload-dir }} | ||
branch: ${{ steps.format-branch.outputs.branch }} | ||
|
||
- name: Create PR Preview Comment | ||
if: github.event_name == 'pull_request' && steps.deploy-preview-comment.outputs.comment-id == 0 | ||
uses: peter-evans/create-or-update-comment@v1.4.5 | ||
with: | ||
issue-number: ${{ github.event.pull_request.number }} | ||
body: | | ||
### ${{ inputs.project-name }} | ||
🚀 Preview this PR: ${{ steps.deploy-cloudflare.outputs.url }} | ||
📍 Commit SHA: ${{ github.sha }} | ||
|
||
|
||
- name: Update PR Preview Comment | ||
if: github.event_name == 'pull_request' && steps.deploy-preview-comment.outputs.comment-id != 0 | ||
uses: peter-evans/create-or-update-comment@v1.4.5 | ||
with: | ||
comment-id: ${{ steps.deploy-preview-comment.outputs.comment-id }} | ||
edit-mode: replace | ||
body: | | ||
### ${{ inputs.project-name }} | ||
🚀 Preview this PR: ${{ steps.deploy-cloudflare.outputs.url }} | ||
📍 Commit SHA: ${{ github.sha }} | ||
|
62 changes: 62 additions & 0 deletions
.github/workflows/cloudflare.yml
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,62 @@ | ||
name: Cloudflare Pages | ||
|
||
on: | ||
push: | ||
branches: ["main"] | ||
pull_request: | ||
types: [opened, synchronize] | ||
|
||
jobs: | ||
run: | ||
runs-on: ubuntu-latest | ||
env: | ||
REPO_ACCESS_TOKEN: ${{ secrets.REPO_ACCESS_TOKEN }} | ||
APP_ENV: prod | ||
|
||
steps: | ||
- uses: actions/checkout@v3 | ||
- uses: actions/setup-node@v3 | ||
with: | ||
node-version: 18 | ||
cache: "npm" | ||
cache-dependency-path: "**/package-lock.json" | ||
|
||
- name: Render Datasheets | ||
run: cd ${GITHUB_WORKSPACE}/scripts/datasheet-rendering;./render-datasheets.sh | ||
|
||
- name: Copy Static Files | ||
run: | | ||
mkdir -p static/resources/datasheets static/resources/schematics static/resources/pinouts | ||
find ./content/hardware -type f -name "*-schematics.pdf" -exec cp {} ./static/resources/schematics/ \; | ||
find ./content/hardware -type f -name "*-datasheet.pdf" -exec cp {} ./static/resources/datasheets/ \; | ||
find ./content/hardware -type f -name "*-full-pinout.pdf" -exec cp {} ./static/resources/pinouts/ \; | ||
find ./content/hardware -type f -name "*-pinout.png" -exec cp {} ./static/resources/pinouts/ \; | ||
|
||
- name: Gatsby main cache | ||
uses: actions/cache@v3 | ||
id: gatsby-cache-folder | ||
with: | ||
path: .cache | ||
key: ${{ runner.os }}-cache-gatsbyV2-${{ github.sha }} | ||
restore-keys: | | ||
${{ runner.os }}-cache-gatsbyV2- | ||
|
||
- name: Gatsby Public Folder | ||
uses: actions/cache@v3 | ||
id: gatsby-public-folder | ||
with: | ||
path: public/ | ||
key: ${{ runner.os }}-public-gatsbyV2-${{ github.sha }} | ||
restore-keys: | | ||
${{ runner.os }}-public-gatsbyV2- | ||
|
||
- run: npm install | ||
- run: npm run build | ||
|
||
- name: Docs | ||
uses: ./.github/actions/cloudflare-upload | ||
with: | ||
upload-dir: public | ||
project-name: docs-content | ||
cloudflare-api-token: ${{ secrets.CLOUDFLARE_API_TOKEN }} | ||
cloudflare-account: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
3 changes: 2 additions & 1 deletion
.npmrc
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,5 @@ | ||
@bcmi-labs:registry=https://npm.pkg.github.com/ | ||
@serjlee:registry=https://npm.pkg.github.com/ | ||
@arduino:registry=https://npm.pkg.github.com/ | ||
//npm.pkg.github.com/:_authToken=${REPO_ACCESS_TOKEN} | ||
//npm.pkg.github.com/:_authToken=${REPO_ACCESS_TOKEN} | ||
legacy-peer-deps=true |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1 change: 1 addition & 0 deletions
content/arduino-cloud/01.guides/guides.md
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
--- | ||
title: Guides | ||
icon: IconBrackets | ||
--- |
3 changes: 2 additions & 1 deletion
content/arduino-cloud/02.hardware/hardware.md
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
--- | ||
title: Hardware & Devices | ||
--- | ||
icon: IconBoard | ||
--- |
1 change: 1 addition & 0 deletions
content/arduino-cloud/03.cloud-interface/cloud-interface.md
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
--- | ||
title: Cloud Interface | ||
icon: IconCloud | ||
--- |
3 changes: 2 additions & 1 deletion
content/arduino-cloud/04.cloud-editor/cloud-editor.md
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
--- | ||
title: Cloud Editor | ||
--- | ||
icon: IconCloud | ||
--- |
1 change: 1 addition & 0 deletions
content/arduino-cloud/05.iot-remote-app/iot-remote-app.md
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
--- | ||
title: IoT Remote App | ||
icon: IconBooks | ||
--- |
1 change: 1 addition & 0 deletions
content/arduino-cloud/06.features/features.md
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
--- | ||
title: Features | ||
icon: IconSquare | ||
--- |
3 changes: 2 additions & 1 deletion
content/arduino-cloud/07.api/api.md
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
--- | ||
title: API | ||
--- | ||
icon: IconProgramming | ||
--- |
1 change: 1 addition & 0 deletions
content/arduino-cloud/08.arduino-cloud-cli/arduino-cloud-cli.md
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
--- | ||
title: Arduino Cloud CLI | ||
icon: IconProgramming | ||
--- |
3 changes: 2 additions & 1 deletion
content/arduino-cloud/09.business/business.md
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
--- | ||
title: Cloud Business | ||
--- | ||
icon: IconBooks | ||
--- |
3 changes: 2 additions & 1 deletion
content/arduino-cloud/10.education/education.md
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
--- | ||
title: Cloud Education | ||
--- | ||
icon: IconCloud | ||
--- |
1 change: 1 addition & 0 deletions
content/arduino-cloud/11.application-notes/application-notes.md
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
--- | ||
title: Application Notes | ||
icon: IconDatasheet | ||
--- |
30 changes: 30 additions & 0 deletions
content/arduino-cloud/videoInfo.md
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
--- | ||
url: https://www.youtube.com/embed/uaLrmLCqGnc?si=mrZrx8NTxS3RksyI | ||
info: | ||
[ | ||
{ | ||
icon: IconNet, | ||
title: Getting Started with Arduino Cloud, | ||
description: 'An online platform that makes it easy for you to code, deploy and monitor IoT projects.', | ||
link: /arduino-cloud/guides/overview, | ||
}, | ||
{ | ||
icon: IconBrackets, | ||
title: Arduino / C++, | ||
description: Get started with the Arduino Cloud using the C++ programming language., | ||
link: /arduino-cloud/guides/arduino-c, | ||
}, | ||
{ | ||
icon: IconCLI, | ||
title: ESP32 / ESP8266, | ||
description: Learn how to set up ESP32/ESP8266 based boards in the Arduino Cloud., | ||
link: /arduino-cloud/guides/esp32, | ||
}, | ||
{ | ||
icon: IconBooks, | ||
title: Cloud Editor, | ||
description: A step-by-step guide to set up your online development environment., | ||
link: /arduino-cloud/guides/cloud-editor, | ||
}, | ||
] | ||
--- |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.