Skip to content

Commit 188e7da

Browse files
committed
Use cspell for spelling
1 parent c4f6e47 commit 188e7da

File tree

17 files changed

+2627
-933
lines changed

17 files changed

+2627
-933
lines changed

.spelling

Lines changed: 16 additions & 76 deletions
Original file line numberDiff line numberDiff line change
@@ -1,79 +1,19 @@
1-
×
2-
100x100mm
3-
11.1V
4-
15cm
5-
2.2A.
6-
2m
7-
4.5m
8-
2.5m
9-
20000Hz
10-
20Hz
11-
2200mAh
12-
250x250mm
13-
2m
14-
2mm
15-
3.3V
16-
3.81mm
17-
3m
18-
4mm
19-
5cm
20-
5mm
21-
7-zip
22-
7.5mm
23-
70x84x20mm
24-
83x99x24mm
25-
Adafruit
26-
AprilTag
27-
Arduino
28-
booleans
29-
CamCon
30-
CamCons
31-
Codecademy
1+
# Custom spellings for this repo.
2+
#
3+
# Keep each section alphabetically sorted.
4+
BIDMAS
325
Datacamp
33-
dropdown
34-
elif
35-
energised
36-
enum
37-
forklift
38-
FreeCodeCamp
39-
H0-1
40-
iMAX
41-
inputted
42-
IntelliSense
43-
kickstart
44-
L0-3
45-
LearnPython
46-
LiPo
47-
macOS
48-
Math
49-
matplotlib
50-
microswitch
51-
microswitches
52-
numpy
53-
piezo
54-
plt
6+
GPIO
557
Programiz
56-
PyCharm
57-
pyplot
58-
python3
59-
r.zone
60-
R2021b
61-
scikit-learn
62-
scipy
63-
Smallpeice
64-
SourceBots
65-
square-ish
66-
StackOverflow
67-
submodule
68-
TargetInfo
69-
TeckNet
708
Tutorialspoint
71-
Uno
72-
vcc
73-
VSCode
74-
W3Schools
75-
Webots
76-
www.python.org
77-
python-396
78-
_f_
79-
×
9+
10+
# Specific
11+
PULLUP
12+
sbot
13+
Smallpeice
14+
15+
# Technical things
16+
fontawesome
17+
matplotlib
18+
scikit
19+
scipy

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ This will build the site once, and place it in `site/` in the root of the projec
4747

4848
### Spell checking
4949

50-
This project uses `markdown-spellcheck` for spell checking. Plugins are
50+
This project uses `cspell` for spell checking. Plugins are
5151
available for a variety of editors and a command line runner is available
5252
through `npm`:
5353

@@ -59,4 +59,4 @@ npm install
5959
npm run spellcheck
6060
```
6161

62-
Words that `markdown-spellcheck` is unaware of can be added to the `.spelling` file.
62+
Words that `cspell` is unaware of can be added to the `.spelling` file.

cspell.json

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
{
2+
"$schema": "https://raw.githubusercontent.com/streetsidesoftware/cspell/main/cspell.schema.json",
3+
"version": "0.2",
4+
"dictionaryDefinitions": [
5+
{
6+
"name": "project-words",
7+
"path": "./.spelling",
8+
"addWords": true
9+
}
10+
],
11+
"dictionaries": ["en-gb", "python", "project-words"]
12+
}

docs/api/arduino.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ The first few digital pins are occupied by digital inputs, the next few by
2727
digital outputs, and the analogue pins are attached to ultrasound sensors.
2828

2929
To find out how many inputs and outputs each type of robot has, check the
30-
[robot docs](/robots/).
30+
[robot docs]().
3131

3232
You won't be able to change pin mode like in
3333
a physical robot (see below), but pins 0 and 1 are still unavailable.

docs/api/compass.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
title: Compass
33
---
44

5-
The forklift robot has a compass unit. This allows [robots](/robots/) to determine the direction it's facing in the arena.
5+
The forklift robot has a compass unit. This allows [robots]() to determine the direction it's facing in the arena.
66

77
```python
88
# Get the heading of the robot.

docs/api/encoder.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ Linear encoders are attached to joints that move in a straight line (i.e. raisin
1010

1111
Linear encoders measure the distance the joint has moved from its start position, in *metres*.
1212

13-
All encoders are stored in a list called `encoders`, you can access the encoder with `encoders[i]`, where `i` is the slot the encoder is plugged into. You can find this number in the [documentation for the robot](/robots/).
13+
All encoders are stored in a list called `encoders`, you can access the encoder with `encoders[i]`, where `i` is the slot the encoder is plugged into. You can find this number in the [documentation for the robot]().
1414

1515
```python
1616
# Get the distance from the start position
@@ -23,7 +23,7 @@ Rotary encoders are attached to joints that rotate (i.e. wheel rotations).
2323

2424
Rotary encoders measure the total rotation the joint has moved from its start position, in *radians*.
2525

26-
All encoders are stored in a list called `encoders`, you can access the encoder with `encoders[i]`, where `i` is the slot the encoder is plugged into. You can find this number in the [documentation for the robot](/robots/).
26+
All encoders are stored in a list called `encoders`, you can access the encoder with `encoders[i]`, where `i` is the slot the encoder is plugged into. You can find this number in the [documentation for the robot]().
2727

2828
```python
2929
# Get the total rotation from the start position

docs/api/magnet.md

Lines changed: 0 additions & 35 deletions
This file was deleted.

docs/api/radio.md

Lines changed: 0 additions & 81 deletions
This file was deleted.

docs/api/servos.md

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,7 @@
22
title: Servos
33
---
44

5-
{{% notice note %}}
6-
Servos only apply to the [physical robot](/robots/physical/).
7-
{{% /notice %}}
8-
9-
You can control attached servo motors from the [Arduino](/api/arduino/). By default, servos will be unpowered when your robot starts, and can freely rotate when turned by hand. Upon setting a value, they will hold the corresponding position. They will become unpowered again when you turn off your robot, unplug your USB stick, or set their position to the special value `None`.
5+
You can control attached servo motors from the [Arduino](./arduino.md). By default, servos will be unpowered when your robot starts, and can freely rotate when turned by hand. Upon setting a value, they will hold the corresponding position. They will become unpowered again when you turn off your robot, unplug your USB stick, or set their position to the special value `None`.
106

117
## Querying servos
128

docs/api/touch.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ Microswitches, or touch sensors, are used to measure when something is touching
1010

1111
The touch sensors will be connected to a specific pin in the Arduino, typically wired in such a way that the pin's voltage is changed when the switch is pressed by an object.
1212

13-
To read this, you need to read the digital value of the correct pin. You can get the correct pin number by looking at [the documentation for the robot](/robots/), then writing the code like so:
13+
To read this, you need to read the digital value of the correct pin. You can get the correct pin number by looking at [the documentation for the robot](), then writing the code like so:
1414

1515
``` python
1616
# Get if something is touching the touch sensor.

0 commit comments

Comments
 (0)