Skip to content

Commit 219a825

Browse files
authored
Merge pull request #619 from arduino/sebromero/datasheet-renderer-integration
2 parents 77b6b5c + 7a2f3ab commit 219a825

24 files changed

+7948
-2836
lines changed

.github/workflows/deploy-prd.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,9 @@ jobs:
2222
cache: "npm"
2323
cache-dependency-path: "**/package-lock.json"
2424

25+
- name: Render Datasheets
26+
run: cd ${GITHUB_WORKSPACE}/scripts/datasheet-rendering;./render-datasheets.sh
27+
2528
- name: Gatsby main cache
2629
uses: actions/cache@v2
2730
id: gatsby-cache-folder
@@ -41,8 +44,7 @@ jobs:
4144
${{ runner.os }}-public-gatsby-
4245
4346
- run: npm install
44-
45-
- run: GENERATE_DATASHEETS=true npm run build
47+
- run: npm run build
4648

4749
- name: Configure AWS Credentials
4850
uses: aws-actions/configure-aws-credentials@v1

.github/workflows/deploy-stg.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,9 @@ jobs:
2020
node-version: 14
2121
cache: "npm"
2222
cache-dependency-path: "**/package-lock.json"
23+
24+
- name: Render Datasheets
25+
run: cd ${GITHUB_WORKSPACE}/scripts/datasheet-rendering;./render-datasheets.sh
2326

2427
- name: Gatsby main cache
2528
uses: actions/cache@v2
@@ -40,8 +43,7 @@ jobs:
4043
${{ runner.os }}-public-gatsby-
4144
4245
- run: npm install
43-
44-
- run: GENERATE_DATASHEETS=true npm run build
46+
- run: npm run build
4547

4648
- name: Configure AWS Credentials
4749
uses: aws-actions/configure-aws-credentials@v1

.vscode/tasks.json

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -97,14 +97,14 @@
9797
"problemMatcher": []
9898
},
9999
{
100-
"label": "Generate all datasheets",
100+
"label": "Render all datasheets",
101101
"type": "shell",
102-
"command": "./generate-datasheets.sh",
102+
"command": "./render-datasheets.sh",
103103
"options": {
104-
"cwd": "${workspaceFolder}${pathSeparator}scripts${pathSeparator}datasheet-generator"
104+
"cwd": "${workspaceFolder}${pathSeparator}scripts${pathSeparator}datasheet-rendering"
105105
},
106106
"windows": {
107-
"command": ".\\generate-datasheets.cmd"
107+
"command": ".\\render-datasheets.cmd"
108108
},
109109
"group": "none",
110110
"presentation": {
@@ -114,14 +114,14 @@
114114
"problemMatcher": []
115115
},
116116
{
117-
"label": "Generate datasheet (current document)",
117+
"label": "Render datasheet (current document)",
118118
"type": "shell",
119-
"command": "./generate-datasheets.sh '../../${relativeFileDirname}'",
119+
"command": "./render-datasheets.sh '../../${relativeFileDirname}'",
120120
"options": {
121-
"cwd": "${workspaceFolder}${pathSeparator}scripts${pathSeparator}datasheet-generator"
121+
"cwd": "${workspaceFolder}${pathSeparator}scripts${pathSeparator}datasheet-rendering"
122122
},
123123
"windows": {
124-
"command": ".\\generate-datasheets.cmd '..\\..\\${relativeFileDirname}'"
124+
"command": ".\\render-datasheets.cmd '..\\..\\${relativeFileDirname}'"
125125
},
126126
"group": "none",
127127
"presentation": {

0 commit comments

Comments
 (0)