Skip to content

Commit ac3358b

Browse files
authored
Fix various broken links in docs. (#12125)
We've gotten a few one-off link-fix PRs, so in the Wasmtime meeting today we decided to just fix them all ourselves so we don't get these drive-by PRs anymore (or at least not for a while, until links start to rot again). This PR fixes all applicable broken links we could find via the `lychee` link-checker (thanks abrown for running that!). There are a few broken links in subrepositories that this doesn't fix. And the link-checker doesn't like links to subheaders on `.html` paths derived from `.md` files by mdbook -- mdbook doesn't support these (rust-lang/mdBook#167) but they render fine once published to the Web.
1 parent 058a9bc commit ac3358b

File tree

10 files changed

+11
-15
lines changed

10 files changed

+11
-15
lines changed

cranelift/isle/docs/language-reference.md

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -952,7 +952,7 @@ and also to use constructors in place of extractors during the match
952952
phase when this is more convenient.
953953

954954
To introduce the concept, an example follows (this is taken from the
955-
[RFC](https://github.com/bytecodealliance/rfcs/tree/main/isle-extended-patterns.md)
955+
[RFC](https://github.com/bytecodealliance/rfcs/tree/main/accepted/isle-extended-patterns.md)
956956
that proposed if-lets):
957957

958958
```lisp
@@ -1413,10 +1413,6 @@ various edges; we can use a Rust `match` statement in the generated
14131413
source and have `O(1)` (or close to it) cost for the dispatch at this
14141414
level.[^8]
14151415

1416-
Building the trie is a somewhat subtle procedure; see [this block
1417-
comment](https://github.com/bytecodealliance/wasmtime/blob/main/cranelift/isle/isle/src/trie.rs#L15-L166)
1418-
for more information regarding the trie construction algorithm.
1419-
14201416
[^8]: The worst-case complexity for a single term rewriting operation
14211417
is still the cost of evaluating each rule's left-hand side
14221418
sequentially, because in general there is no guarantee of

crates/wasi-common/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ In our *nix implementation, we currently support the entire [WASI API]
3535
with the exception of the `proc_raise` hostcall, as it is expected to
3636
be dropped entirely from WASI.
3737

38-
[WASI API]: https://github.com/WebAssembly/WASI/blob/master/phases/snapshot/docs.md
38+
[WASI API]: https://github.com/WebAssembly/WASI/blob/main/legacy/preview1/docs.md
3939

4040
### Windows
4141
In our Windows implementation, we currently support the minimal subset of [WASI API]

crates/wizer/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,8 +46,8 @@ initialization with Wizer, depending on the workload:
4646
| [`regex`][regex-bench] | 248.85 us | 183.99 us | **1.35x faster** |
4747
| [UAP][uap-bench] | 98.297 ms | 16.385 ms | **6.00x faster** |
4848

49-
[regex-bench]: https://github.com/bytecodealliance/wizer/tree/main/benches/regex-bench
50-
[uap-bench]: https://github.com/bytecodealliance/wizer/tree/main/benches/uap-bench
49+
[regex-bench]: https://github.com/bytecodealliance/wasmtime/tree/main/crates/wizer/benches/regex-bench
50+
[uap-bench]: https://github.com/bytecodealliance/wasmtime/tree/main/crates/wizer/benches/uap-bench
5151

5252
Not every program will see an improvement to instantiation and start up
5353
latency. For example, Wizer will often increase the size of the Wasm module's

docs/contributing-implementing-wasm-proposals.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ multiple pull requests.
2121
* [ ] Add `-Wyour-proposal` to the `wasmtime-cli-flags` crate.
2222
* [ ] Update `tests/wast.rs` to spec tests should pass for this proposal.
2323
* [ ] Write custom tests in `tests/misc_testsuite/*.wast` for this proposal.
24-
* [ ] Enable the proposal in [the fuzz targets](./contributing-fuzzing.html).
24+
* [ ] Enable the proposal in [the fuzz targets](./contributing-fuzzing.md).
2525
* [ ] Write a custom fuzz target, oracle, and/or test
2626
case generator for fuzzing this proposal in particular.
2727

docs/contributing-reducing-test-cases.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ need to wade through megabytes of unrelated Wasm that isn't necessary to
77
showcase the bug. The process of taking a large test case and stripping out the
88
unnecessary bits is called *test case reduction*.
99

10-
[The `wasm-tools shrink` tool](github.com/bytecodealliance/wasm-tools) can
10+
[The `wasm-tools shrink` tool](https://github.com/bytecodealliance/wasm-tools) can
1111
automatically reduce Wasm test cases when given
1212

1313
1. the original, unreduced test case, and

docs/contributing.md

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

33
We're excited to work on Wasmtime and/or Cranelift together with you! This guide
44
should help you get up and running with Wasmtime and Cranelift development. But
5-
first, make sure you've read the [Code of Conduct](./contributing-coc.html)!
5+
first, make sure you've read the [Code of Conduct](./contributing-coc.md)!
66

77
Wasmtime and Cranelift are very ambitious projects with many goals, and while
88
we're confident we can achieve some of them, we see many opportunities for

docs/examples-debugging-core-dumps.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ consumed by external tooling (such as [`wasmgdb`][wasmgdb]) for post-mortem anal
77
This page focuses on generating and inspecting core dumps via the Wasmtime
88
command-line interface. For details on how to generate core dumps via the
99
`wasmtime` embedding API, see [Core Dumps in a Rust
10-
Embedding](./examples-rust-core-dumps.md).
10+
Embedding](./examples-core-dumps.md).
1111

1212
First, we need to compile some code to Wasm that can trap. Consider the
1313
following Rust code:

docs/examples-debugging-native-debugger.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ the same time:
1313

1414
2. Run Wasmtime with the debug info enabled; this is `-D debug-info` from the
1515
CLI and `Config::debug_info(true)` in an embedding (e.g. see [debugging in a
16-
Rust embedding](./examples-rust-debugging.md)). It's also recommended to use
16+
Rust embedding](./examples-debugging.md)). It's also recommended to use
1717
`-O opt-level=0` for better inspection of local variables if desired.
1818

1919
3. Use a supported debugger:

docs/lang.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ Rust code.
3838
The C API can also be installed through `*-c-api-*` [release artifacts].
3939

4040
[README of the C API]: https://github.com/bytecodealliance/wasmtime/blob/main/crates/c-api/README.md
41-
[release artifacts]: github.com/bytecodealliance/wasmtime/releases/latest
41+
[release artifacts]: https://github.com/bytecodealliance/wasmtime/releases/latest
4242

4343
## C++
4444

docs/stability-tiers.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ For explanations of what each tier means see below.
9292
[`memory64`]: https://github.com/WebAssembly/memory64/blob/master/proposals/memory64/Overview.md
9393
[`custom-page-sizes`]: https://github.com/WebAssembly/custom-page-sizes
9494
[`multi-memory`]: https://github.com/WebAssembly/multi-memory/blob/master/proposals/multi-memory/Overview.md
95-
[`threads`]: https://github.com/WebAssembly/threads/blob/master/proposals/threads/Overview.md
95+
[`threads`]: https://github.com/WebAssembly/threads/blob/main-legacy/proposals/threads/Overview.md
9696
[`component-model`]: https://github.com/WebAssembly/component-model/blob/main/design/mvp/Explainer.md
9797
[`relaxed-simd`]: https://github.com/WebAssembly/relaxed-simd/blob/main/proposals/relaxed-simd/Overview.md
9898
[`function-references`]: https://github.com/WebAssembly/function-references/blob/main/proposals/function-references/Overview.md

0 commit comments

Comments
 (0)