Skip to content

Commit 16e46be

Browse files
committed
Fix dead links
1 parent dc62eba commit 16e46be

File tree

6 files changed

+11
-32
lines changed

6 files changed

+11
-32
lines changed

docs/src/modules/1-getting-started/4-cheat.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@ Both the `--tsc` and `--lint` options can be used togther to run `tsc` and ESLin
120120
#### NOTES
121121

122122
- Running `yarn lint --fix` will fix any automatically fixable errors
123-
- The test command has several options. Refer to [this](../4-advanced/testing) page for more information.
123+
- The test command has several options. Refer to [this](../4-testing/4-unit) page for more information.
124124

125125
## Root Repository Commands
126126

docs/src/modules/1-getting-started/5-faq.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ title: FAQ
1515
> 1. `bundle/**/*.ts` is where we store all logical functions
1616
> 2. `tabs/**/*.tsx` is where we use all the react and jsx which will be shown in the frontend
1717
18-
A brief overview of the current infrastructure is explained [here](../4-advanced/flow/flow). However, I would like to explain in more detail how the `bundle` and `tab` interacts with `js-slang` and `cadet-frontend` respectively.
18+
A brief overview of the current infrastructure is explained [here](../5-advanced/flow/flow). However, I would like to explain in more detail how the `bundle` and `tab` interacts with `js-slang` and `cadet-frontend` respectively.
1919

2020
Firstly, a `bundle` is defined as the suite of functions that are provided by the module. More specifically, what we mean by this is that the bundle will provide all the functions and constants that are intended to be available for use by the cadet when programming in the Source language.
2121

docs/src/modules/2-bundle/3-editing.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,4 +79,4 @@ instead of implementing your own versions of them.
7979
8080
## Adding Unit Tests
8181
82-
Where possible, you should add unit tests to your bundle. Refer to [this](/modules/4-advanced/testing) page for instructions.
82+
Where possible, you should add unit tests to your bundle. Refer to [this](/modules/4-testing/) page for instructions.

docs/src/modules/3-tabs/4-context/4-context.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Working with Module Contexts
22

3-
Module contexts are a way to pass information between bundles and tabs. A more in-depth introduction to module contexts can be found [here](/modules/4-advanced/context).
3+
Module contexts are a way to pass information between bundles and tabs. A more in-depth introduction to module contexts can be found [here](/modules/5-advanced/context).
44

55
A module's tabs are always loaded after its bundle, and only if its bundle was imported by the Source program.
66
This means that it is safe to assume that a module's context object has been initialized (if there is code in the bundle that does so)
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,10 @@
11
---
22
title: Dev and Testing
33
---
4+
5+
There are several ways you can test your bundles and tabs during development. This section lists those methods.
6+
7+
- [Running on Desktop](./1-desktop)
8+
- [With the Devserver](./2-devserver/2-devserver)
9+
- [With the frontend](./3-frontend)
10+
- [Unit Testing](./4-unit)

lib/repotools/src/utils.ts

Lines changed: 0 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -45,34 +45,6 @@ export function findSeverity<T>(items: T[], mapper: (each: T) => Severity): Seve
4545
return output;
4646
}
4747

48-
/*
49-
export function processSeverities(items: { severity: Severity }[]) {
50-
return findSeverity(items, ({ severity }) => severity);
51-
}
52-
53-
type CollatedResult<T> = {
54-
[k: `bundle-${string}`]: T
55-
} | {
56-
[k: `tab-${string}`]: T
57-
};
58-
59-
export function collateResults<T extends { bundle: ResolvedBundle } | { tab: ResolvedTab }>(results: T[]) {
60-
return results.reduce<CollatedResult<T>>((res, each) => {
61-
if ('bundle' in each) {
62-
return {
63-
...res,
64-
[`bundle-${each.bundle.name}`]: each
65-
};
66-
}
67-
68-
return {
69-
...res,
70-
[`tab-${each.tab.name}`]: each
71-
};
72-
}, {});
73-
}
74-
*/
75-
7648
export const divideAndRound = (n: number, divisor: number) => (n / divisor).toFixed(2);
7749

7850
export function isNodeError(error: unknown): error is NodeJS.ErrnoException {

0 commit comments

Comments
 (0)