Skip to content

Commit 59415f8

Browse files
authored
Merge pull request #39 from arduino/sebromero/datasheet-fix
Better error handling when rendering datasheets
2 parents 28b526b + 6f88b79 commit 59415f8

File tree

7 files changed

+14
-20
lines changed

7 files changed

+14
-20
lines changed

content/hardware/04.pro/shields/portenta-cat-m1-nb-iot-gnss-shield/datasheet/datasheet.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ Internet of Things, outdoor asset tracking, positioning, cellular connectivity,
1515

1616
# Features
1717
**Note:** This board requires a compatible MKR or Portenta board to function. Use together with the Arduino® Vision Shield is not supported.
18+
1819
- Cinterion TX62 wireless module
1920
- Cellular connectivity and positioning support
2021
- Embedded IPv4 and IPv6 TCP/IP stack access
@@ -125,6 +126,7 @@ The **Arduino® Portenta Cat. M1/NB IoT GNSS Shield** provide access to various
125126
### Positioning
126127
Four major GNSS systems are supported by the **Arduino® Portenta Cat. M1/NB IoT GNSS Shield**. NMEA protocol is used for transmission of GNSS information. An active antenna can be connected via the micro UFL connector (J8) and has a bias voltage of 3.0V.
127128
**Note:** GNSS and cellular services cannot be used simultaneously.
129+
128130
### Power Tree
129131
![Portenta Cat. M1/NB IoT GNSS Shield Power Tree](assets/thalesShieldPowerTree.svg)
130132
Power to the **Arduino® Portenta Cat. M1/NB IoT GNSS Shield** is provided by the host Portenta board via the high density connector. A 3.0V voltage is provided via TC1185-3.0VCT713 (U8) for the active GNSS antenna.
@@ -229,7 +231,6 @@ Hereby, Arduino S.r.l. declares that this product is in compliance with essentia
229231

230232
## Company Information
231233

232-
233234
| Company name | Arduino S.r.l |
234235
| --------------- | ------------------------------------------ |
235236
| Company Address | Via Andrea Appiani, 25 20900 MONZA (Italy) |

package-lock.json

Lines changed: 6 additions & 6 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
},
1919
"homepage": "https://github.com/arduino/docs-content#readme",
2020
"dependencies": {
21-
"@arduino/docs-arduino-cc": "^1.0.13",
21+
"@arduino/docs-arduino-cc": "^1.0.14",
2222
"gatsby": "^4.3.0"
2323
},
2424
"volta": {

scripts/validation/config/config-generic.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,4 +19,7 @@ validateMetadata: true
1919
verbose: true
2020

2121
# Allows to debug the rules by outputting process messages
22-
debug: false
22+
debug: false
23+
24+
# Defines rules for what links not to check. Usually relative links should not be checked.
25+
brokenLinkExcludePatterns: [^./, ^../, ^#, ^chrome://, localhost , ^assets/, ^images/]

scripts/validation/config/config-tutorials.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,4 +10,3 @@ validationRuleFiles: [./rules/rules-spelling.yml, ./rules/rules-trademarks.yml,
1010
allowNestedLists: false
1111
metadataSchema: rules/tutorial-metadata-schema.json
1212

13-
brokenLinkExcludePatterns: [^./, ^../, ^#, ^chrome://, localhost , ^assets/, ^images/]

scripts/validation/rules/rules-spelling.yml

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -14,12 +14,6 @@
1414
includeCodeBlocks: false
1515
errorMessage: Incorrect spelling of 'Wi-Fi' found.
1616

17-
- regex: "(?!.*Flash)[fF][lL][aA][sS][hH]\\b"
18-
shouldMatch: false
19-
type: warning
20-
format: markdown
21-
errorMessage: Incorrect spelling of 'Flash' found.
22-
2317
- regex: "(?<!\\/|-)\\b(master|slave)\\b"
2418
regexModifiers: "gi"
2519
shouldMatch: false

scripts/validation/validate.js

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -30,9 +30,6 @@ if(!allArticles || allArticles.length == 0){
3030
// Verify that all meta data is valid JSON and contains the correct attributes
3131
if(configManager.getConfig("generic").validateMetadata){
3232
validator.addValidation(tutorials, validateMetaData, configManager.getConfig("tutorials").metadataSchema);
33-
}
34-
35-
if(configManager.getConfig("generic").validateMetadata){
3633
validator.addValidation(datasheets, validateMetaData, configManager.getConfig("datasheets").metadataSchema);
3734
}
3835

@@ -56,7 +53,7 @@ validator.addValidation(allArticles, validateSVGFiles);
5653

5754
// Verify that there are no broken links
5855
if(configManager.options.checkBrokenLinks){
59-
validator.addValidation(tutorials, validateBrokenLinks, configManager.getConfig("tutorials").brokenLinkExcludePatterns, configManager.getConfig("generic").baseURL, configManager.options.verbose);
56+
validator.addValidation(allArticles, validateBrokenLinks, configManager.getConfig("generic").brokenLinkExcludePatterns, configManager.getConfig("generic").baseURL, configManager.options.verbose);
6057
};
6158

6259
// Verify that all files in the assets folder are referenced

0 commit comments

Comments
 (0)