Skip to content

Commit 9e8d268

Browse files
Detect typos in Markdown documents (2nd attempt) (project-chip#9347)
* Fix documentation's typos Signed-off-by: Victor Morales <v.morales@samsung.com> * Add Spell checker CI action Signed-off-by: Victor Morales <v.morales@samsung.com>
1 parent fa0ef98 commit 9e8d268

File tree

31 files changed

+1110
-64
lines changed

31 files changed

+1110
-64
lines changed

.github/.wordlist.txt

+982
Large diffs are not rendered by default.

.github/workflows/spell.yml

+39
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
# Copyright (c) 2020-2021 Project CHIP Authors
2+
#
3+
# Licensed under the Apache License, Version 2.0 (the "License");
4+
# you may not use this file except in compliance with the License.
5+
# You may obtain a copy of the License at
6+
#
7+
# http://www.apache.org/licenses/LICENSE-2.0
8+
#
9+
# Unless required by applicable law or agreed to in writing, software
10+
# distributed under the License is distributed on an "AS IS" BASIS,
11+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12+
# See the License for the specific language governing permissions and
13+
# limitations under the License.
14+
15+
name: Run misspell
16+
17+
on:
18+
push:
19+
paths:
20+
- '**.md'
21+
- '!.github/*'
22+
pull_request:
23+
paths:
24+
- '**.md'
25+
- '!.github/*'
26+
27+
jobs:
28+
check-reviewdog:
29+
runs-on: ubuntu-latest
30+
steps:
31+
- uses: actions/checkout@v2
32+
- uses: reviewdog/action-misspell@v1
33+
with:
34+
github_token: ${{ secrets.GITHUB_TOKEN }}
35+
check-spellcheck:
36+
runs-on: ubuntu-latest
37+
steps:
38+
- uses: actions/checkout@v2
39+
- uses: igsekor/pyspelling-any@v0.0.2

.spellcheck.yml

+25
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
# Copyright (c) 2020-2021 Project CHIP Authors
2+
#
3+
# Licensed under the Apache License, Version 2.0 (the "License");
4+
# you may not use this file except in compliance with the License.
5+
# You may obtain a copy of the License at
6+
#
7+
# http://www.apache.org/licenses/LICENSE-2.0
8+
#
9+
# Unless required by applicable law or agreed to in writing, software
10+
# distributed under the License is distributed on an "AS IS" BASIS,
11+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12+
# See the License for the specific language governing permissions and
13+
# limitations under the License.
14+
15+
matrix:
16+
- name: markdown
17+
dictionary:
18+
wordlists:
19+
- .github/.wordlist.txt
20+
pipeline:
21+
- pyspelling.filters.markdown:
22+
sources:
23+
- '**/*.md|!third_party/**|!examples/common/**/repo/**'
24+
aspell:
25+
ignore-case: true

docs/VSCODE_DEVELOPMENT.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ session.
8585

8686
Developers are encouraged to add tasks to the
8787
[launch json](../.vscode/launch.json) over time to make sure everyone is using
88-
the same base debuging setup.
88+
the same base debugging setup.
8989

9090
## Submitting a Pull Request - Practical Advice
9191

docs/discussion/lwip_ipv6.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ Instead, it might be better to build this into the ICMP layer itself.
118118

119119
## DNS
120120

121-
LwIPs DNS handling isn’t great and breaks down when the router supports
121+
LwIP's DNS handling isn’t great and breaks down when the router supports
122122
IPv4/IPv6. There is a single list of DNS servers, DHCP, SLAAC and DHCPv6 all
123123
update the list without locks. Basically, whatever wrote to the list last gets
124124
to set the list. Although there is handling for IP type (requesting A or AAAA

docs/guides/nrfconnect_examples_configuration.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ them default values for any application.
107107

108108
The application configuration is specified using Kconfig configuration files
109109
(`*.conf`), where available Kconfig options can be used and their default values
110-
overrided. Typically, there are many files having impact on the final
110+
overridden. Typically, there are many files having impact on the final
111111
configuration shape.
112112

113113
There is no need to modify all these files separately. See the following list

docs/guides/nxp_k32w_android_commissioning.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ onto a CHIP-enabled Thread network.
2727

2828
The commissioning process is composed of the following main stages:
2929

30-
- K32W061 (CHIP accessory) device is put in BLE advertisment mode by pressing
30+
- K32W061 (CHIP accessory) device is put in BLE advertisement mode by pressing
3131
the USERINTERFACE button;
3232
- CHIPTool discovers the CHIP accessory over BLE;
3333
- CHIPTool establishes a secure channel with the accessory using a SPAKE2+
@@ -182,7 +182,7 @@ To make your PC work as a Thread Border Router, complete the following tasks:
182182

183183
- On System startup, dnsmasq will not wait for wlan0 interface to
184184
initialize and will fail. We need to tell systemd to launch it after
185-
networks get ready, so we will modify dnsmasq service file by specifing
185+
networks get ready, so we will modify dnsmasq service file by specifying
186186
the initialization order under the _After=_ and _Wants=_ sections:
187187

188188
$ sudo vim /lib/systemd/system/dnsmasq.service

docs/guides/python_chip_controller_advanced_usage.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ Reading symbols from python3...
110110
```
111111
112112
The Python will create lots of threads due to main loop, so you may want to
113-
supress thread related outputs first by running the following command:
113+
suppress thread related outputs first by running the following command:
114114
115115
```
116116
(gdb) set print thread-events off
@@ -247,4 +247,4 @@ then you can use `bt` (for `backtrace`) to see the backtrace of the call stack.
247247
```
248248
249249
The frame #0 and frame #1 are the function frames in the CHIP C++ library, the
250-
other frames live in the Python intepreter so you can ignore it.
250+
other frames live in the Python interpreter so you can ignore it.

docs/guides/python_chip_controller_building.md

+4-4
Original file line numberDiff line numberDiff line change
@@ -223,7 +223,7 @@ with network credentials.
223223
Done
224224
```
225225
226-
Matter specifiction does not define how the Thread or Wi-Fi credentials are
226+
Matter specification does not define how the Thread or Wi-Fi credentials are
227227
obtained by Controller. For example, for Thread, instead of fetching
228228
datasets directly from the Thread Border Router, you might also use a
229229
different out-of-band method.
@@ -248,7 +248,7 @@ with network credentials.
248248
#### Commissioning a Wi-Fi device
249249
250250
1. Assuming your Wi-Fi SSID is _TESTSSID_, and your Wi-Fi password is
251-
_P455W4RD_, inject the credentials to the device by excuting the following
251+
_P455W4RD_, inject the credentials to the device by executing the following
252252
command:
253253
254254
```
@@ -396,7 +396,7 @@ If no nodeid given, a random Node ID will be used.
396396
397397
### `close-session <nodeid>`
398398
399-
If case there eixsts an open session (PASE or CASE) to the device with a given
399+
If case there exists an open session (PASE or CASE) to the device with a given
400400
Node ID, mark it as expired.
401401
402402
### `discover`
@@ -470,7 +470,7 @@ chip-device-ctrl > zcl LevelControl MoveWithOnOff 12344321 1 0 moveMode=1 rate=2
470470
For any integer and char string (null terminated) types, just use `key=value`,
471471
for example: `rate=2`, `string=123`, `string_2="123 456"`
472472
473-
For byte string type, use `key=encoding:value`, currectly, we support `str` and
473+
For byte string type, use `key=encoding:value`, currently, we support `str` and
474474
`hex` encoding, the `str` encoding will encode a NULL terminated string. For
475475
example, `networkId=hex:0123456789abcdef` (for
476476
`[0x01, 0x23, 0x45, 0x67, 0x89, 0xab, 0xcd, 0xef]`), `ssid=str:Test` (for

examples/all-clusters-app/esp32/README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -224,7 +224,7 @@ commissioning and cluster control.
224224

225225
`chip-device-ctrl > zcl LevelControl MoveToLevel 135246 1 1 level=10 transitionTime=0 optionMask=0 optionOverride=0`
226226

227-
- For ESP32C3-DevKitM, use the ColorContorl cluster commands to control the
227+
- For ESP32C3-DevKitM, use the ColorControl cluster commands to control the
228228
CurrentHue and CurrentSaturation attribute. This allows you to control the
229229
color of on-board LED.
230230

examples/chip-tool/README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ where:
6464

6565
- ssid is the Wi-Fi SSID either as a string, or in the form hex:XXXXXXXX where
6666
the bytes of the SSID are encoded as two-digit hex numbers.
67-
- paswword is the Wi-Fi password, again either as a string or as hex data
67+
- password is the Wi-Fi password, again either as a string or as hex data
6868
- The 0 is the fabric id, until more complete support for multiple fabrics is
6969
implemented in our commissioning process.
7070

examples/lighting-app/efr32/README.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -221,7 +221,7 @@ combination with JLinkRTTClient as follows:
221221

222222
- _Press and Release_ : Start, or restart, BLE advertisement in fast mode. It will advertise in this mode
223223
for 30 seconds. The device will then switch to a slower interval advertisement.
224-
After 15 minutes, the adverstiment stops.
224+
After 15 minutes, the advertisement stops.
225225

226226
- _Pressed and hold for 6 s_ : Initiates the factory reset of the device.
227227
Releasing the button within the 6-second window cancels the factory reset
@@ -280,7 +280,7 @@ via 2002::2
280280
- To use the chip-rpc console after it has been installed run:
281281
`python3 -m chip_rpc.console --device /dev/tty.<SERIALDEVICE> -b 115200 -o /<YourFolder>/pw_log.out`
282282
283-
- Then you can simulate a button press or realease using the following command
283+
- Then you can simulate a button press or release using the following command
284284
where : idx = 0 or 1 for Button PB0 or PB1 action = 0 for PRESSED, 1 for
285285
RELEASE Test toggling the LED with
286286
`rpcs.chip.rpc.Button.Event(idx=1, pushed=True)`

examples/lighting-app/nxp/linux-imx/imx8m/README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -155,7 +155,7 @@ The generated executable file supports to work with below commandline argument:
155155
- Prerequisites
156156

157157
By following the [Building](#building) section of this document, the Yocto
158-
image is cross-compiled and programed to a microSD card.
158+
image is cross-compiled and programmed to a microSD card.
159159

160160
Follow the steps below to setup the environment needed to run the example on
161161
the i.MX 8M Mini EVK:

examples/lighting-app/telink/Readme.md

+10-10
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
```
1616
1717
here `${CHIP_BASE}` is directory which contains CHIP repo files **!!!Pay
18-
attention that OUTPUT_DIR should conatins ABSOLUTE path to output dir**
18+
attention that OUTPUT_DIR should contains ABSOLUTE path to output dir**
1919
2020
1. Bootstrap the build environment:
2121
@@ -79,7 +79,7 @@ $ BORDER_ROUTING=0 NETWORK_MANAGER=1 ./script/setup
7979
8080
### Setup IPv6
8181
82-
Pay attention that border router shoud be configured as IPv6 access point.
82+
Pay attention that border router should be configured as IPv6 access point.
8383
8484
1. To do so perform the following command:
8585
```
@@ -94,7 +94,7 @@ Pay attention that border router shoud be configured as IPv6 access point.
9494
### Config network
9595
9696
Use [Web GUI](https://openthread.io/guides/border-router/web-gui) to config
97-
Thread network **tlsr9518adk80d** board supports only static comissioning with
97+
Thread network **tlsr9518adk80d** board supports only static commissioning with
9898
predefined Thread credentials shown in table below:
9999
100100
| Item | Value |
@@ -123,11 +123,11 @@ To get output from device, connect UART to following pins:
123123
124124
The following buttons are available on **tlsr9518adk80d** board:
125125
126-
| Name | Function | Description |
127-
| :------- | :--------------- | :---------------------------------------------------------------------------------------------------- |
128-
| Button 1 | Factory reset | Perform factory reset to forget currently commissioned Thread network and back to uncommisioned state |
129-
| Button 2 | Lighting control | Manually triggers the lighting state |
130-
| Button 3 | Thread start | Comission thread with static credentials and enables the Thread on device |
126+
| Name | Function | Description |
127+
| :------- | :--------------- | :----------------------------------------------------------------------------------------------------- |
128+
| Button 1 | Factory reset | Perform factory reset to forget currently commissioned Thread network and back to uncommissioned state |
129+
| Button 2 | Lighting control | Manually triggers the lighting state |
130+
| Button 3 | Thread start | Commission thread with static credentials and enables the Thread on device |
131131
132132
### LEDs
133133
@@ -136,7 +136,7 @@ following states:
136136
137137
| State | Description |
138138
| :-------------------------- | :--------------------------------------------------------------------------- |
139-
| Blinks with short pulses | Device is not commisioned to Thread, Thred is disabled |
139+
| Blinks with short pulses | Device is not commissioned to Thread, Thread is disabled |
140140
| Blinls with frequent pulses | Device is commissioned, Thread enabled. Device trying to JOIN thread network |
141141
| Blinks with whde pulses | Device commissioned and joined to thread network as CHILD |
142142
@@ -147,7 +147,7 @@ following states:
147147
1. With your client device (PC, Laptop etc.) connect to BorderRouterAP WiFi
148148
2. Press Button 3 on **tlsr9518adk80d** board and wait till it joins to Thread
149149
network
150-
3. Find ajusted IPv6 address in UART output of **tlsr9518adk80d**
150+
3. Find adjusted IPv6 address in UART output of **tlsr9518adk80d**
151151
4. Perform following command on your client device:
152152
```
153153
ping -6 ${IP_ADDRESS_OF_CHIP_DEVICE}

examples/lock-app/cc13x2x7_26x2x7/README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -265,7 +265,7 @@ fully provisioned, BLE advertising will stop.
265265
266266
#### Bluetooth LE Rendezvous
267267
268-
To commission and control this application wtihin a CHIP-eanbled Thread network,
268+
To commission and control this application within a CHIP-enabled Thread network,
269269
consult the [CHIPTool README](../../../src/android/CHIPTool/README.md) for
270270
information on the Android smartphone application. Reference the Device
271271
Configuration information printed in the Logging Output of this application.

examples/lock-app/efr32/README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -210,7 +210,7 @@ combination with JLinkRTTClient as follows:
210210

211211
- _Press and Release_ : Start, or restart, BLE advertisement in fast mode. It will advertise in this mode
212212
for 30 seconds. The device will then switch to a slower interval advertisement.
213-
After 15 minutes, the adverstiment stops.
213+
After 15 minutes, the advertisement stops.
214214

215215
- _Pressed and hold for 6 s_ : Initiates the factory reset of the device.
216216
Releasing the button within the 6-second window cancels the factory reset

examples/lock-app/k32w/README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -256,7 +256,7 @@ below:
256256
![POWER_VIEW](../../platform/k32w/doc/images/power_view.JPG)
257257

258258
Please note that that the Power Measurement Tool is not very accurate and
259-
professional tools must be used if exact power consumption needs to be kwnown.
259+
professional tools must be used if exact power consumption needs to be known.
260260

261261
## Known issues
262262

examples/minimal-mdns/README.md

+13-13
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ discovery.
8585

8686
### Advertising to test client listings
8787

88-
#### Simulated uncommisioned node
88+
#### Simulated uncommissioned node
8989

9090
```sh
9191
dns-sd -R DD200C20D25AE5F7 _matterc._udp,S52,L840,V123 . 11111 D=840 VP=123+456
@@ -99,11 +99,11 @@ S52._sub._matterc._udp.local. PTR DD200C20D25AE5F7._matterc._udp.loca
9999
L840._sub._matterc._udp.local. PTR DD200C20D25AE5F7._matterc._udp.local.
100100
V123._sub._matterc._udp.local. PTR DD200C20D25AE5F7._matterc._udp.local.
101101
DD200C20D25AE5F7._matterc._udp.local. TXT "D=840" "VP=123+456"
102-
DD200C20D25AE5F7._mattterc._udp.local. SRV 0 0 11111 B75AFB458ECD.local.
102+
DD200C20D25AE5F7._matterc._udp.local. SRV 0 0 11111 B75AFB458ECD.local.
103103
B75AFB458ECD.local. AAAA ba2a:b311:742e:b44c:f515:576f:9783:3f30
104104
```
105105

106-
#### Simulated commisioning node
106+
#### Simulated commissioning node
107107

108108
```sh
109109
dns-sd -R DD200C20D25AE5F7 _matterd._udp,S52,L840,V123 . 11111 D=840 VP=123+456 PH=3
@@ -121,7 +121,7 @@ DD200C20D25AE5F7._matterd._udp.local. SRV 0 0 11111 B75AFB458ECD.local.
121121
B75AFB458ECD.local. AAAA ba2a:b311:742e:b44c:f515:576f:9783:3f30
122122
```
123123

124-
#### Simulated commisioned node
124+
#### Simulated commissioned node
125125

126126
```sh
127127
dns-sd -R 2906C908D115D362-8FC7772401CD0696 _matter._tcp . 22222
@@ -132,15 +132,15 @@ dns-sd -R 2906C908D115D362-8FC7772401CD0696 _matter._tcp . 22222
132132
Nodes:
133133

134134
```sh
135-
dns-sd -B _matterc._udp # Nodes awaiting commisioning
136-
dns-sd -B _matterc._udp,S52 # Nodes awaiting commisioning with short discriminator 52
137-
dns-sd -B _matterc._udp,L840 # Nodes awaiting commisioning with long discriminator 840
138-
dns-sd -B _matterc._udp,V123 # Nodes awaiting commisioning with vendor id 123
139-
140-
dns-sd -B _matterd._udp # Commisionable nodes
141-
dns-sd -B _matterd._udp,S52 # Commisionable nodes with short discriminator 52
142-
dns-sd -B _matterd._udp,L840 # Commisionable nodes with long discriminator 840
143-
dns-sd -B _matterd._udp,V123 # Commisionable nodes with vendor id 123
135+
dns-sd -B _matterc._udp # Nodes awaiting commissioning
136+
dns-sd -B _matterc._udp,S52 # Nodes awaiting commissioning with short discriminator 52
137+
dns-sd -B _matterc._udp,L840 # Nodes awaiting commissioning with long discriminator 840
138+
dns-sd -B _matterc._udp,V123 # Nodes awaiting commissioning with vendor id 123
139+
140+
dns-sd -B _matterd._udp # Commissionable nodes
141+
dns-sd -B _matterd._udp,S52 # Commissionable nodes with short discriminator 52
142+
dns-sd -B _matterd._udp,L840 # Commissionable nodes with long discriminator 840
143+
dns-sd -B _matterd._udp,V123 # Commissionable nodes with vendor id 123
144144
```
145145

146146
IP Address:

examples/persistent-storage/efr32/README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ platforms.
2929
## EFR32
3030

3131
The EFR32 platform KVS is fully implemented, the KVS is enabled and configured
32-
using theese defines:
32+
using these defines:
3333

3434
```
3535
defines = [

examples/pump-app/cc13x2x7_26x2x7/doc/programming-ccs.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ file) in the `Load Program` dialog. Click `OK` to begin loading the target.
106106

107107
![CCS step 9](images/ccs-12.jpg)
108108

109-
- After loacating the source file for `main.cpp` we can step through the code
109+
- After locating the source file for `main.cpp` we can step through the code
110110
as it executes.
111111

112112
![CCS step 9](images/ccs-13.jpg)

examples/pump-controller-app/cc13x2x7_26x2x7/doc/programming-ccs.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ file) in the `Load Program` dialog. Click `OK` to begin loading the target.
106106

107107
![CCS step 9](images/ccs-12.jpg)
108108

109-
- After loacating the source file for `main.cpp` we can step through the code
109+
- After locating the source file for `main.cpp` we can step through the code
110110
as it executes.
111111

112112
![CCS step 9](images/ccs-13.jpg)

examples/tv-casting-app/linux/README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
This is a CHIP TV Casting app that can be used to cast content to a TV. This app
44
discovers TVs on the local network that act as commissioners, lets the user
55
select one, sends the TV a User Directed Commissioning request, enters
6-
commisioning mode, advertises itself as a Commissionable Node and gets
6+
commissioning mode, advertises itself as a Commissionable Node and gets
77
commissioned. Then it allows the user to send CHIP ContentLauncher commands to
88
the TV.
99

0 commit comments

Comments
 (0)