Skip to content

Commit a76f75e

Browse files
authored
Attempt to skip code in misspell (project-chip#17335)
* Attempt to skip code in misspell * Changed a readme.md containing odd words to see if filtering works * Escape a md file and try to ignore hyperlink content in spellcheck * More escaping for code in mbedos_commissioning.md * Add instructions for local spelling run * More updates to make spell checker happy * Cleanup some image logic in mbed unit test files * More updates for spelling - move code blocks into code blocks * More paths updates for lwip patch readme * Restyle * update for allow language in 3 backticks, replaced a lot of mbedos logo pictures * Code and image block updates on guides * Updating several nrf files for code blocks * update k32w android doc for code blocks * Code blocks for several readmes * Code blocks for some silabs and esp32 * Code blocks * More code blocks * More code blocks * More code blocks * More code blocks * More code blocks * Roll back some of the wordlist - this takes too long. Just fix some super obvious ones and have some code improvements * Restyle * Fix misplaced backtick
1 parent 213869f commit a76f75e

Some content is hidden

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

49 files changed

+833
-285
lines changed

.github/.wordlist.txt

-14
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@
88
21
99
22
1010
AAAA
11-
aabbccddeeff
1211
aarch
1312
abcdef
1413
abfb
@@ -510,7 +509,6 @@ ffeebaefa
510509
FFF
511510
fffe
512511
fffff
513-
fHtcwcAAAAAAAAAwQAAAAAAXPMlAAAAAAA
514512
Fi
515513
filepath
516514
fini
@@ -1392,17 +1390,13 @@ xAAAA
13921390
xab
13931391
xaver
13941392
xb
1395-
xBEEF
13961393
xbef
13971394
xc
13981395
xcd
13991396
Xcode
14001397
xcodeproj
14011398
xcworkspace
14021399
xd
1403-
xDEAD
1404-
xDEADBEEF
1405-
xdeadbeefcafe
14061400
xds
14071401
xdsdfu
14081402
xEA
@@ -1420,15 +1414,8 @@ xFF
14201414
xFFF
14211415
xFFFF
14221416
xfffff
1423-
xFFFFFFFD
1424-
xffffffffe
1425-
xfffffffff
1426-
xffffffffffff
1427-
xffffffffffffXXXX
14281417
xtensa
14291418
xwayland
1430-
XXXX
1431-
XXXXXXXX
14321419
xyz
14331420
xz
14341421
xzvf
@@ -1439,7 +1426,6 @@ YNJV
14391426
Yocto
14401427
yoctoproject
14411428
YourFolder
1442-
yWsC
14431429
zapt
14441430
zaptool
14451431
ZCL

.spellcheck.yml

+41
Original file line numberDiff line numberDiff line change
@@ -12,12 +12,53 @@
1212
# See the License for the specific language governing permissions and
1313
# limitations under the License.
1414

15+
# To run locally:
16+
# Prerequisits (only once):
17+
#
18+
# apt-get install aspell aspell-en
19+
# pip install pyspelling
20+
#
21+
# Actual run:
22+
#
23+
# pyspelling pyspelling --config .spellcheck.yml
24+
1525
matrix:
1626
- name: markdown
1727
dictionary:
1828
wordlists:
1929
- .github/.wordlist.txt
2030
pipeline:
31+
# See https://facelessuser.github.io/pyspelling/configuration/#pipeline
32+
# and https://facelessuser.github.io/pyspelling/filters/context/
33+
34+
# context-aware logic: we have a LOT of code examples in markdown,
35+
# avoid trying to spellcheck code.
36+
- pyspelling.filters.context:
37+
context_visible_first: true
38+
escapes: \\[\\`~]
39+
delimiters:
40+
# Ignore multiline content between fences (fences can have 3 or more back ticks)
41+
# ```
42+
# content
43+
# ```
44+
#
45+
# Allows language marker (since github allows it) like:
46+
# ```python
47+
# content
48+
# ```
49+
- open: '(?s)^(?P<open> *`{3,})[a-z]*$'
50+
close: '^(?P=open)$'
51+
# Ignore text between inline back ticks
52+
- open: '(?P<open>`+)'
53+
close: '(?P=open)'
54+
# Ignore URL in hyperlinks [title](url)
55+
- open: '\[[^]]*\]\('
56+
close: '\)'
57+
# Ignore code markers
58+
- open: '<code>'
59+
close: '</code>'
60+
61+
# converts markdown to HTML
2162
- pyspelling.filters.markdown:
2263
sources:
2364
- '**/*.md|!third_party/**|!examples/common/**/repo/**'

docs/api/device_runner.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -99,5 +99,5 @@ enable reusing tests between different devices.
9999
The TSG is targeting the following platforms/boards for early bringup:
100100

101101
- Nordic nRF52 board <TODO: REF>
102-
- SiLabs XXXX board <TODO:REF>
103-
- Espressif ESP32 XXXX board <TODO:REF>
102+
- SiLabs `XXXX` board <TODO:REF>
103+
- Espressif ESP32 `XXXX` board <TODO:REF>

docs/discussion/lwip_ipv6.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,8 @@ addresses for communication to nodes on the same network (wifi or thread). When
2727
there is more than one netif in the system (ex. loopback, softAP, STA), the link
2828
local address needs more information to determine which link the address is
2929
local to. This is normally added as the link local scope and can be seen on
30-
addresses ex. FE80::xxxx:xxxx:xxxx:xxxx%<scope>, where the <scope> identifies
31-
the netif (something like %wlan0 or %eno1 etc.).
30+
addresses ex. `FE80::xxxx:xxxx:xxxx:xxxx%<scope>`, where the <scope> identifies
31+
the netif (something like `%wlan0` or `%eno1` etc.).
3232

3333
Without this indicator, the link local address can only be resolved if there is
3434
one netif. LwIP will also allow a direct address match to the netif source
@@ -122,7 +122,7 @@ Instead, it might be better to build this into the ICMP layer itself.
122122
LwIP's DNS handling isn’t great and breaks down when the router supports
123123
IPv4/IPv6. There is a single list of DNS servers, DHCP, SLAAC and DHCPv6 all
124124
update the list without locks. Basically, whatever wrote to the list last gets
125-
to set the list. Although there is handling for IP type (requesting A or AAAA
125+
to set the list. Although there is handling for IP type (requesting A or `AAAA`
126126
records), there isn’t handling to specify an IPv6 or IPv4 server specifically,
127127
which can be challenging since not all servers serve all record types.
128128

docs/examples/discussion/PID_allocation_for_example_apps.md

+22-22
Original file line numberDiff line numberDiff line change
@@ -3,34 +3,34 @@
33
Unless specifically overridden by the platform, example apps in this SDK use the
44
Example credentials implementation in `DeviceAttestationCredsExample.cpp`.
55

6-
The SDK holds example certificates for VID '0xFFF1' and any PID in
7-
'0x8000-0x801F'. The device VID and PID supplied by the basic information
6+
The SDK holds example certificates for VID `0xFFF1` and any PID in
7+
`0x8000-0x801F`. The device VID and PID supplied by the basic information
88
cluster must correspond to the VID/PID given in the certificate for the device
99
to pass verification.
1010

1111
Certificates are selected using the value in
1212
CHIP_DEVICE_CONFIG_DEVICE_PRODUCT_ID. The vendor ID for every example app is the
13-
same because they are all signed by the same PAI (vendor id '0xFFF1').
13+
same because they are all signed by the same PAI (vendor id `0xFFF1`).
1414

1515
In order to allow some differentiation between the various example apps, each
1616
app is assigned a PID from the list below:
1717

18-
| App | PID |
19-
| ----------------------- | ------ |
20-
| All Clusters | 0x8001 |
21-
| Bridge | 0x8002 |
22-
| Door Lock | 0x8003 |
23-
| Light switch | 0x8004 |
24-
| Lighting | 0x8005 |
25-
| Lock | 0x8006 |
26-
| OTA provider | 0x8007 |
27-
| OTA requestor | 0x8008 |
28-
| Persistent Storage | 0x8009 |
29-
| Pigweed | 0x800B |
30-
| Pump | 0x800A |
31-
| Pump Controller | 0x8011 |
32-
| Shell | 0x8012 |
33-
| Temperature measurement | 0x800D |
34-
| Thermostat | 0x800E |
35-
| TV | 0x800F |
36-
| Window | 0x8010 |
18+
| App | PID |
19+
| ----------------------- | -------- |
20+
| All Clusters | `0x8001` |
21+
| Bridge | `0x8002` |
22+
| Door Lock | `0x8003` |
23+
| Light switch | `0x8004` |
24+
| Lighting | `0x8005` |
25+
| Lock | `0x8006` |
26+
| OTA provider | `0x8007` |
27+
| OTA requestor | `0x8008` |
28+
| Persistent Storage | `0x8009` |
29+
| Pigweed | `0x800B` |
30+
| Pump | `0x800A` |
31+
| Pump Controller | `0x8011` |
32+
| Shell | `0x8012` |
33+
| Temperature measurement | `0x800D` |
34+
| Thermostat | `0x800E` |
35+
| TV | `0x800F` |
36+
| Window | `0x8010` |

docs/guides/BUILDING.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -182,7 +182,7 @@ To run all tests, run:
182182
ninja -C out/host check
183183
```
184184

185-
To run only the tests in src/inet/tests, you can run:
185+
To run only the tests in `src/inet/tests`, you can run:
186186

187187
```
188188
ninja -C out/host src/inet/tests:tests_run

docs/guides/matter-repl.md

+1-3
Original file line numberDiff line numberDiff line change
@@ -149,9 +149,7 @@ cloud-hosted playground.
149149
The following icon is present at the top of applicable guides that can be
150150
launched into the playground:
151151
152-
<a href="https://www.w3schools.com">
153-
<img src="https://i.ibb.co/hR3yWsC/launch-playground.png" alt="drawing" width="130"/>
154-
</a>
152+
![Launch playground icon](https://i.ibb.co/hR3yWsC/launch-playground.png")
155153
<br></br>
156154
157155
## Guides

docs/guides/mbedos_add_new_target.md

+1-3
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,4 @@
1-
<p align="center">
2-
<img src="https://raw.githubusercontent.com/ARMmbed/mbed-os/master/logo.png" alt="ARM Mbed-OS logo"/>
3-
</p>
1+
![ARM Mbed-OS logo](https://raw.githubusercontent.com/ARMmbed/mbed-os/master/logo.png)
42

53
<h1> Mbed-OS add new hardware target </h1>
64

docs/guides/mbedos_commissioning.md

+7-3
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,4 @@
1-
<p align="center">
2-
<img src="https://raw.githubusercontent.com/ARMmbed/mbed-os/master/logo.png" alt="ARM Mbed-OS logo"/>
3-
</p>
1+
![ARM Mbed-OS logo](https://raw.githubusercontent.com/ARMmbed/mbed-os/master/logo.png)
42

53
<h1> Matter Arm Mbed OS provisioning guide </h1>
64

@@ -67,7 +65,9 @@ After building, install the application by completing the following steps:
6765
1. Install the Android Debug Bridge (adb) package by running the following
6866
command:
6967

68+
```
7069
$ sudo apt install android-tools-adb
70+
```
7171

7272
2. Enable **USB debugging** on your smartphone. See the
7373
[Configure on-device developer options](https://developer.android.com/studio/debug/dev-options)
@@ -94,7 +94,9 @@ complete the following steps:
9494
accessory device. You can use **mbed-tools** for this purpose
9595
([mbed-tools](https://github.com/ARMmbed/mbed-tools)):
9696

97+
```
9798
mbed-tools sterm -p /dev/ttyACM0 -b 115200 -e off
99+
```
98100

99101
To start the rendezvous, CHIPTool must get the commissioning information from
100102
the Matter device. The data payload is encoded within a QR code and is printed
@@ -104,8 +106,10 @@ to the UART console.
104106

105107
- Find a message similar to the following one in the application logs:
106108

109+
```
107110
[INFO][CHIP]: [SVR]Copy/paste the below URL in a browser to see the QR Code:
108111
[INFO][CHIP]: [SVR]https://dhrishi.github.io/connectedhomeip/qrcode.html?data=MT%3AYNJV7VSC00CMVH7SR00
112+
```
109113

110114
- Open URL from the console to display the QR in a web browser.
111115

docs/guides/mbedos_platform_overview.md

+2-6
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,4 @@
1-
<p align="center">
2-
<img src="https://raw.githubusercontent.com/ARMmbed/mbed-os/master/logo.png" alt="ARM Mbed-OS logo"/>
3-
</p>
1+
![ARM Mbed-OS logo](https://raw.githubusercontent.com/ARMmbed/mbed-os/master/logo.png)
42

53
# Mbed-OS platform overview
64

@@ -11,9 +9,7 @@ Mbed-OS 6.
119
The following diagram shows a simplified structure of a Matter application which
1210
runs on the top of the Mbed-OS.
1311

14-
<p align="center">
15-
<img src="images/matter_mbedos_overview_simplified.png" alt="matter_mbedos_overview_simplified">
16-
</p>
12+
![matter_mbedos_overview_simplified](images/matter_mbedos_overview_simplified.png)
1713

1814
# ARM Mbed-OS
1915

docs/guides/nrfconnect_android_commissioning.md

+6-2
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,9 @@ After building, install the application by completing the following steps:
111111
1. Install the Android Debug Bridge (adb) package by running the following
112112
command:
113113

114-
$ sudo apt install android-tools-adb
114+
```
115+
sudo apt install android-tools-adb
116+
```
115117

116118
2. Enable **USB debugging** on the smartphone. See the
117119
[Configure on-device developer options](https://developer.android.com/studio/debug/dev-options)
@@ -122,7 +124,9 @@ After building, install the application by completing the following steps:
122124
5. Run the following command to install the application, with _chip-dir_
123125
replaced with the path to the Matter source directory:
124126

125-
$ adb install -r chip-dir/src/android/CHIPTool/app/build/outputs/apk/debug/app-debug.apk
127+
```
128+
adb install -r chip-dir/src/android/CHIPTool/app/build/outputs/apk/debug/app-debug.apk
129+
```
126130

127131
6. Navigate to settings on your smartphone and grant **Camera** and
128132
**Location** permissions to CHIPTool.

docs/guides/nrfconnect_examples_cli.md

+4-2
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,12 @@ To access the CLI console, use a serial terminal emulator of your choice, like
1010
Minicom or GNU Screen. Use the baud rate set to `115200`.
1111

1212
For example, to start using the CLI console with Minicom, run the following
13-
command with _/dev/ttyACM0_ replaced with the device node name of your
13+
command with `/dev/ttyACM0` replaced with the device node name of your
1414
development kit:
1515

16-
$ minicom -D /dev/ttyACM0 -b 115200
16+
```
17+
minicom -D /dev/ttyACM0 -b 115200
18+
```
1719

1820
When you reboot the kit, you will see the boot logs in the console, similar to
1921
the following messages:

docs/guides/nrfconnect_examples_configuration.md

+9-3
Original file line numberDiff line numberDiff line change
@@ -34,12 +34,16 @@ Complete the following steps:
3434
directory, with _build-target_ replaced with the build target name of the
3535
kit, for example _nrf52840dk_nrf52840_:
3636

37-
$ west build -b build-target
37+
```
38+
west build -b build-target
39+
```
3840

3941
2. Run the terminal-based interface called menuconfig by typing the following
4042
command:
4143

42-
$ west build -t menuconfig
44+
```
45+
west build -t menuconfig
46+
```
4347

4448
The menuconfig terminal window appears, in which you can navigate using
4549
arrow keys and other keys, based on the description at the bottom of the
@@ -93,7 +97,9 @@ that you rebuild your application after editing them by typing the following
9397
command in the example directory, with _build-target_ replaced with the build
9498
target name of the kit, for example _nrf52840dk_nrf52840_:
9599

96-
$ west build -b build-target
100+
```
101+
west build -b build-target
102+
```
97103

98104
<hr>
99105

0 commit comments

Comments
 (0)