Skip to content

Commit 0708787

Browse files
committed
Remove LR
1 parent 84bf633 commit 0708787

File tree

309 files changed

+180
-14305
lines changed

Some content is hidden

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

309 files changed

+180
-14305
lines changed

.github/workflows/cloudflare.yml

+62
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,62 @@
1+
name: Cloudflare Pages
2+
3+
on:
4+
workflow_dispatch:
5+
6+
jobs:
7+
run:
8+
runs-on: ubuntu-latest
9+
env:
10+
REPO_ACCESS_TOKEN: ${{ secrets.REPO_ACCESS_TOKEN }}
11+
APP_ENV: prod
12+
13+
steps:
14+
- uses: actions/checkout@v3
15+
with:
16+
fetch-depth: 0
17+
- uses: actions/setup-node@v3
18+
with:
19+
node-version: 18
20+
cache: "npm"
21+
cache-dependency-path: "**/package-lock.json"
22+
23+
- name: Render Datasheets
24+
run: cd ${GITHUB_WORKSPACE}/scripts/datasheet-rendering;./render-datasheets.sh
25+
26+
- name: Copy Static Files
27+
run: |
28+
mkdir -p static/resources/datasheets static/resources/schematics static/resources/pinouts
29+
find ./content/hardware -type f -name "*-schematics.pdf" -exec cp {} ./static/resources/schematics/ \;
30+
find ./content/hardware -type f -name "*-datasheet.pdf" -exec cp {} ./static/resources/datasheets/ \;
31+
find ./content/hardware -type f -name "*-full-pinout.pdf" -exec cp {} ./static/resources/pinouts/ \;
32+
find ./content/hardware -type f -name "*-pinout.png" -exec cp {} ./static/resources/pinouts/ \;
33+
find ./content/hardware -type f -name "*-step.zip" -exec cp {} ./static/resources/models/ \;
34+
35+
- name: Gatsby main cache
36+
uses: actions/cache@v3
37+
id: gatsby-cache-folder
38+
with:
39+
path: .cache
40+
key: ${{ runner.os }}-cache-gatsbyV2-${{ github.sha }}
41+
restore-keys: |
42+
${{ runner.os }}-cache-gatsbyV2-
43+
44+
- name: Gatsby Public Folder
45+
uses: actions/cache@v3
46+
id: gatsby-public-folder
47+
with:
48+
path: public/
49+
key: ${{ runner.os }}-public-gatsbyV2-${{ github.sha }}
50+
restore-keys: |
51+
${{ runner.os }}-public-gatsbyV2-
52+
53+
- run: npm install
54+
- run: npm run build
55+
56+
- name: Docs
57+
uses: ./.github/actions/cloudflare-upload
58+
with:
59+
upload-dir: public
60+
project-name: docs-content
61+
cloudflare-api-token: ${{ secrets.CLOUDFLARE_API_TOKEN }}
62+
cloudflare-account: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }}

.github/workflows/deploy-prd.yml

+1
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@ jobs:
3838
find ./content/hardware -type f -name "*-datasheet.pdf" -exec cp {} ./static/resources/datasheets/ \;
3939
find ./content/hardware -type f -name "*-full-pinout.pdf" -exec cp {} ./static/resources/pinouts/ \;
4040
find ./content/hardware -type f -name "*-pinout.png" -exec cp {} ./static/resources/pinouts/ \;
41+
find ./content/hardware -type f -name "*-step.zip" -exec cp {} ./static/resources/models/ \;
4142
4243
- name: Gatsby main cache
4344
uses: actions/cache@v4

.github/workflows/deploy-stg.yml

+1
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@ jobs:
3838
find ./content/hardware -type f -name "*-datasheet.pdf" -exec cp {} ./static/resources/datasheets/ \;
3939
find ./content/hardware -type f -name "*-full-pinout.pdf" -exec cp {} ./static/resources/pinouts/ \;
4040
find ./content/hardware -type f -name "*-pinout.png" -exec cp {} ./static/resources/pinouts/ \;
41+
find ./content/hardware -type f -name "*-step.zip" -exec cp {} ./static/resources/models/ \;
4142
4243
- name: Gatsby main cache
4344
uses: actions/cache@v4

.gitignore

+4-1
Original file line numberDiff line numberDiff line change
@@ -7,4 +7,7 @@ node_modules
77
public
88
src
99
.DS_Store
10-
.vscode/settings.json
10+
.vscode/settings.json
11+
content/en
12+
content/de
13+
content/pt

content/_dev-test/content.md

+9
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
---
2+
id: ""
3+
title: ""
4+
categories: ""
5+
subCategories: ""
6+
leaf: false
7+
mainDescription: ""
8+
mainTitle: ""
9+
---

content/en/01.functions/01.advanced-io/noTone/function.md

-30
This file was deleted.

content/en/01.functions/01.advanced-io/pulseIn/function.md

-59
This file was deleted.

content/en/01.functions/01.advanced-io/pulseInLong/function.md

-67
This file was deleted.

content/en/01.functions/01.advanced-io/shiftIn/function.md

-40
This file was deleted.

0 commit comments

Comments
 (0)