Skip to content

Commit 188e7da

Browse files
committedJun 24, 2023
Use cspell for spelling
1 parent c4f6e47 commit 188e7da

17 files changed

+2627
-933
lines changed
 

‎.spelling

+16-76
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

+2-2
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

+12
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

+1-1
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

+1-1
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

+2-2
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

-35
This file was deleted.

‎docs/api/radio.md

-81
This file was deleted.

‎docs/api/servos.md

+1-5
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

+1-1
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.

‎docs/api/ultrasound.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -8,13 +8,13 @@ Ultrasound sensors can measure distance of objects from the sensor. Ultrasound s
88

99
Ultrasound sensors measure distance in a 18 degree diameter cone in front of the sensor, and report the closest measured distance in that cone. Ultrasound sensors also have a maximum distance. (Ultrasound sensors typically also have a minimum distance too, but we do not simulate that in our simulator).
1010

11-
In our robots, ultrasound sensors are connected to the ['Arduino'](/api/arduino) board, which is used to read sensors for many different purposes. Keep reading to learn how to take measurements.
11+
In our robots, ultrasound sensors are connected to the ['Arduino'](./arduino.md) board, which is used to read sensors for many different purposes. Keep reading to learn how to take measurements.
1212

1313
## Reading the ultrasound sensor
1414

1515
### Simulator
1616

17-
The ultrasound sensors will be connected to a specific pin in the Arduino, and will constantly measure distances. Consult the description of the [robot](/robots/) to see which pin you should use. The analogue value of the pin will be the measured distance, in metres.
17+
The ultrasound sensors will be connected to a specific pin in the Arduino, and will constantly measure distances. Consult the description of the [robot]() to see which pin you should use. The analogue value of the pin will be the measured distance, in metres.
1818

1919
Ultrasound sensors have a maximum range of 2 metres, if objects are further than 2m away from the robot, it will report a distance of 2m.
2020

‎docs/kit/motor-board.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ The case measures 70x84x20mm. Don’t forget that the cables will stick out.
3535
## Designs
3636
You can access the schematics and source code of the firmware on the motor board in the following places. You do not need this information to use the board but it may be of interest to some people.
3737

38-
- [Full Schematics](/docs/motor-schematic.pdf)
38+
- [Full Schematics](../assets/docs/motor-schematic.pdf)
3939
- [Firmware Source](https://github.com/sourcebots/motor-v4-fw)
4040
- [Hardware Source](https://github.com/sourcebots/motor-v4-hw)
4141

‎docs/kit/power-board.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,6 @@ The case measures 83x99x24mm. Don’t forget that the cables will stick out.
7070
## Designs
7171
You can access the schematics and source code of the firmware for the power board in the following places. You do not need this information to use the board but it may be of interest to some people.
7272

73-
- [Full Schematics](/docs/power-schematic.pdf)
73+
- [Full Schematics](../assets/docs/power-schematic.pdf)
7474
- [Firmware Source](https://github.com/sourcebots/power-v4-fw)
7575
- [Hardware Source](https://github.com/sourcebots/power-v4-hw)

‎docs/kit/servo-assembly/servos.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,4 +8,4 @@ By itself, an Arduino is incapable of driving servos, without a lot of hard work
88
There are a total of sixteen servo connectors, grouped into four groups of four. Servo cables are connected with 0V (the black or brown wire) towards the side of the reset button.
99

1010
## Power
11-
The Arduino itself is powered entirely over USB. If you wish to use servos, you'll need to supply an additional 5V through the connector on the shield from the [power board](/kit/power-board). There are two red LEDs next to the power input that will turn on if the board is correctly powered.
11+
The Arduino itself is powered entirely over USB. If you wish to use servos, you'll need to supply an additional 5V through the connector on the shield from the [power board](../power-board.md). There are two red LEDs next to the power input that will turn on if the board is correctly powered.

‎docs/kit/servo-assembly/ultrasound.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ Ultrasound should only be considered accurate up to around two metres, beyond wh
99
{{% /notice %}}
1010

1111
## Wiring up the sensor
12-
The sensor has four pin connections: ground, 5V (sometimes labelled _vcc_), _trigger_ and _echo_. Most ultrasound sensors will label which pin is which. The ground and 5V should be wired to the ground and 5V pins of the Arduino respectively. The trigger and echo pins should be attached to two different digital IO pins. Take note of these two pins, you'll need them to [use the sensor](/api/arduino#ultrasound-sensors).
12+
The sensor has four pin connections: ground, 5V (sometimes labelled _vcc_), _trigger_ and _echo_. Most ultrasound sensors will label which pin is which. The ground and 5V should be wired to the ground and 5V pins of the Arduino respectively. The trigger and echo pins should be attached to two different digital IO pins. Take note of these two pins, you'll need them to [use the sensor](../../../api/arduino#ultrasound-sensors).
1313

1414
{{% notice tip %}}
1515
If the sensor always returns a distance of zero, it means the _trigger_ and _echo_ pins are connected the wrong way! Either change the pin numbers in the code, or swap the connections.

‎package-lock.json

+2,583-720
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

‎package.json

+2-3
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"version": "1.0.0",
44
"description": "",
55
"scripts": {
6-
"spellcheck": "mdspell --en-gb --report --ignore-acronyms --ignore-numbers --no-suggestions 'docs/**/*.md'",
6+
"spellcheck": "cspell 'docs/**/*.md'",
77
"broken-link-local": "blcl --recursive --ordered --exclude-external ./site/",
88
"broken-link-all": "blcl --recursive --exclude farnell --exclude microsoft --exclude https://github.com/sourcebots/docs/tree/master/docs/* --ordered ./site/",
99
"test": "npm run spellcheck && npm run broken-link-local",
@@ -19,9 +19,8 @@
1919
"url": "https://github.com/sourcebots/docs/issues"
2020
},
2121
"homepage": "https://github.com/sourcebots/docs#readme",
22-
"devDependencies": {},
2322
"dependencies": {
2423
"broken-link-checker-local": "0.2.1",
25-
"markdown-spellcheck": "1.3.1"
24+
"cspell": "^6.31.1"
2625
}
2726
}

0 commit comments

Comments
 (0)
Please sign in to comment.