Skip to content

Commit 3d36c88

Browse files
committed
chore: fix broken links
1 parent 7c0f677 commit 3d36c88

File tree

8 files changed

+28
-29
lines changed

8 files changed

+28
-29
lines changed

vocs/docs/pages/config/reference/inline-test-config.mdx

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -84,11 +84,11 @@ contract MyInvariantTest is Test {
8484
}
8585
```
8686

87-
[Testing Reference]: ./testing.md
88-
[testing]: ./testing.md#runs
89-
[Max test rejects]: ./testing.md#max_test_rejects
90-
[Fuzz show logs]: ./testing.md#show_logs
91-
[Invariant runs]: ./testing.md#runs-1
92-
[Invariant depth]: ./testing.md#depth
93-
[Fail on revert]: ./testing.md#fail_on_revert
94-
[Invariant call override]: ./testing.md#call_override
87+
[Testing Reference]: ./testing
88+
[testing]: ./testing#runs
89+
[Max test rejects]: ./testing#max_test_rejects
90+
[Fuzz show logs]: ./testing#show_logs
91+
[Invariant runs]: ./testing#runs-1
92+
[Invariant depth]: ./testing#depth
93+
[Fail on revert]: ./testing#fail_on_revert
94+
[Invariant call override]: ./testing#call_override

vocs/docs/pages/guides/forking-mainnet-with-cast-anvil.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ cast call $DAI \
8686

8787
::::
8888

89-
[anvil]: ../reference/anvil/
90-
[cast]: ../cast/reference/
91-
[cast-call]: ../cast/reference/call.md
92-
[cast-send]: ../cast/reference/send.md
89+
[anvil]: /anvil/overview
90+
[cast]: /cast/overview
91+
[cast-call]: /cast/reference/call
92+
[cast-send]: /cast/reference/send

vocs/docs/pages/misc/faq.md

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -161,7 +161,7 @@ A common layout may look like:
161161

162162
Where the Foundry workspace is in `./contracts`, but packages in `./contracts/node_modules` are symlinked to `./node_modules`.
163163

164-
When running `forge build` in `./contracts/node_modules`, this can lead to an error like:
164+
When running [`forge build`][forge-build] in `./contracts/node_modules`, this can lead to an error like:
165165

166166
```console
167167
error[6275]: ParserError: Source "node_modules/@openzeppelin/contracts/utils/cryptography/draft-EIP712.sol" not found: File outside of allowed directories. The following are allowed: "<repo>/contracts", "<repo>/contracts/contracts", "<repo>/contracts/lib".
@@ -195,7 +195,7 @@ It has been [reported](https://github.com/foundry-rs/foundry/issues/3268) that o
195195

196196
### Connection refused when running `forge build`
197197

198-
If you're unable to access github URLs called by `forge build`, you will see an error like
198+
If you're unable to access github URLs called by [`forge build`][forge-build], you will see an error like
199199

200200
```console
201201
Error:
@@ -204,18 +204,18 @@ error sending request for url (https://raw.githubusercontent.com/roynalnaruto/so
204204

205205
Connection failed because access to the URL from your location may be restricted. To solve this, you should set proxy.
206206

207-
You could run `export http_proxy=http://127.0.0.1:7890 https_proxy=http://127.0.0.1:7890` first in the terminal then you will `forge build` successfully.
207+
You could run `export http_proxy=http://127.0.0.1:7890 https_proxy=http://127.0.0.1:7890` first in the terminal then you will [`forge build`][forge-build] successfully.
208208

209209
### I'm getting `[NotActivated] EvmError: NotActivated` error in my tests.
210210

211211
This error refers to an EVM version mismatch, make sure the `evm_version` configuration is inline with the test (forked chain) you're using (similar for errors like `prevrandao not set`). See [`evm_version` configuration](/config/reference/solidity-compiler#evm_version)
212212

213213
[tg-support]: https://t.me/foundry_support
214-
[forge-test]: ./forge/reference/test.md
215-
[traces]: ./forge/traces.md
216-
[config-solc]: ./config/reference/solidity-compiler.md#solc_version
217-
[config]: ./config/
218-
[forge-build]: ./forge/reference/build.md
219-
[console-log]: ./reference/forge-std/console-log.md
214+
[forge-test]: /forge/tests/overview
215+
[traces]: /forge/tests/traces
216+
[config-solc]: /config/reference/solidity-compiler#solc_version
217+
[config]: /config/overview
218+
[forge-build]: /forge/reference/build
219+
[console-log]: /reference/forge-std/console-log
220220
[forge-std]: https://github.com/foundry-rs/forge-std
221221
[dstestplus]: https://github.com/transmissions11/solmate/blob/19a4f345970ed39ee6369f343d145e0d4071c18a/src/test/utils/DSTestPlus.sol#L10

vocs/docs/pages/reference/cheatcodes/assume.mdx

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -42,9 +42,8 @@ function testSomethingElse(uint256 a) public {
4242
### SEE ALSO
4343

4444
Forge Standard Library
45+
[`bound`][forge-std-bound]
4546

46-
[`bound`](/reference/forge-std/bound.mdx)
47-
48-
[max-test-rejects]: ../config/reference/testing.md#max_test_rejects
49-
[forge-std-bound]: ../reference/forge-std/bound.md
47+
[max-test-rejects]: /config/reference/testing#max_test_rejects
48+
[forge-std-bound]: /reference/forge-std/bound
5049
[filtering-guide]: https://altsysrq.github.io/proptest-book/proptest/tutorial/filtering.html#filtering

vocs/docs/pages/reference/cheatcodes/difficulty.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,4 +20,4 @@ emit log_uint(block.difficulty); // 25
2020
```
2121

2222

23-
[prevrandao]: ./prevrandao.md
23+
[prevrandao]: ./prevrandao

vocs/docs/pages/reference/cheatcodes/get-code.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,4 +70,4 @@ Forge Standard Library
7070
[`deployCode`](/reference/forge-std/deployCode.mdx)
7171
[`deployCodeTo`](/reference/forge-std/deployCodeTo.mdx)
7272

73-
[forge-std]: ../reference/forge-std
73+
[forge-std]: /reference/forge-std/overview

vocs/docs/pages/reference/cheatcodes/get-deployed-code.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,4 +66,4 @@ Forge Standard Library
6666
[`getCode`](/reference/cheatcodes/get-code.mdx)
6767
[`etch`](/reference/cheatcodes/etch.mdx)
6868

69-
[forge-std]: ../reference/forge-std
69+
[forge-std]: /reference/forge-std/overview

vocs/docs/pages/reference/cheatcodes/prevrandao.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,4 +20,4 @@ emit log_uint(block.prevrandao); // 42
2020
```
2121

2222

23-
[prevrandao]: ./difficulty.md
23+
[prevrandao]: ./difficulty

0 commit comments

Comments
 (0)