Skip to content

Commit 39842fc

Browse files
committed
Make internal links root-relative
This ensures that they work regardless of any trailing slash on the page that they're rendered. It also makes them more consistent and ensures they match our style (which exists to ensure they always work).
1 parent e35f23b commit 39842fc

File tree

7 files changed

+9
-9
lines changed

7 files changed

+9
-9
lines changed

content/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](/robots/).
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.

content/api/compass.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ title: Compass
33
weight: 10
44
---
55

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

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

content/api/magnet.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@ title: Magnet API
33
weight: 8
44
---
55

6-
The magnet is only available on the [Crane robot](../../robots/crane).
7-
6+
The magnet is only available on the [Crane robot](/robots/crane).
7+
88
The magnet of the crane will only stick to containers.
99

1010
## Getting the magnet's status

content/api/servos.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ title: Servos
66
Servos only apply to the [physical robot](/robots/physical/).
77
{{% /notice %}}
88

9-
You can control attached servo motors from the [Arduino](../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`.
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`.
1010

1111
## Querying servos
1212

content/api/ultrasound.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,13 +9,13 @@ Ultrasound sensors can measure distance of objects from the sensor. Ultrasound s
99

1010
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).
1111

12-
In our robots, ultrasound sensors are connected to the ['Arduino'](../arduino) board, which is used to read sensors for many different purposes. Keep reading to learn how to take measurements.
12+
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.
1313

1414
## Reading the ultrasound sensor
1515

1616
### Simulator
1717

18-
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.
18+
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.
1919

2020
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.
2121

content/robots/_index.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,4 +10,4 @@ In this year's competition we have 2 Robots, which are each controlled by their
1010

1111
There is also a [Physical Robot](physical).
1212

13-
See [the API section](../api/) for more details on how to run your code.
13+
See [the API section](/api/) for more details on how to run your code.

content/robots/physical.md

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

5-
The physical robot is closely modelled after the [forklift](../forklift) robot, however is different in a few important ways. The physical robot has two [radial motors](/api/motor-board), allowing it to move itself around the arena.
5+
The physical robot is closely modelled after the [forklift](/robots/forklift) robot, however is different in a few important ways. The physical robot has two [radial motors](/api/motor-board), allowing it to move itself around the arena.
66

77
## Motor layout
88

0 commit comments

Comments
 (0)