Skip to content

Commit 14813aa

Browse files
authored
Adjust Wasip1 & Wasip2 docs links (#343)
Signed-off-by: MA3CIN <marcinziolkowskicloud@gmail.com>
1 parent 5ef8bdd commit 14813aa

3 files changed

Lines changed: 5 additions & 5 deletions

File tree

component-model/src/language-support/building-a-simple-component/c.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -95,9 +95,9 @@ that is, code which fulfills the definition of the interface function declared i
9595
9696
## 4. Compile a WebAssembly Preview 2 component with `wasi-sdk`'s `wasm32-wasip2-clang`
9797
98-
"P1" refers to [WASI Preview 1](https://github.com/WebAssembly/WASI/blob/main/legacy/README.md),
98+
"P1" refers to [WASI Preview 1](https://github.com/WebAssembly/WASI/tree/wasi-0.1),
9999
the initial version of the WASI APIs.
100-
"P2" refers to [WASI Preview 2](https://github.com/WebAssembly/WASI/blob/main/wasip2/README.md),
100+
"P2" refers to [WASI Preview 2](https://github.com/WebAssembly/WASI/blob/main/docs/Preview2.md),
101101
which introduced the component model.
102102
103103
While in the past building a P2 component required conversion from a P1 component,

component-model/src/reference/faq.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -79,9 +79,9 @@ expect to access—WASI enables building interfaces on top of a shared standard
7979

8080
## Q: I see the terms Preview 1 and Preview 2 frequently. What do those refer to?
8181

82-
Preview 1 refers to [the first iteration of the Component Model](https://github.com/WebAssembly/WASI/tree/main/legacy)
82+
Preview 1 refers to [the first iteration of the Component Model](https://github.com/WebAssembly/WASI/tree/wasi-0.1)
8383
which was based on WITX and is now deprecated.
84-
Preview 2 refers to [a newer iteration of the Component Model](https://github.com/WebAssembly/WASI/tree/main/wasip2)
84+
Preview 2 refers to [a newer iteration of the Component Model](https://github.com/WebAssembly/WASI/blob/main/docs/Preview2.md)
8585
which uses WebAssembly Interface Types (WIT).
8686

8787
Many programming language toolchains may only support Preview 1 components natively,

component-model/src/reference/useful-links.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ The following references are helpful in understanding the Component Model and re
1010
- [Canonical ABI][canonical-abi]
1111

1212
[wasm-cm-repo]: https://github.com/WebAssembly/component-model
13-
[wasi-p2]: https://github.com/WebAssembly/WASI/tree/main/wasip2
13+
[wasi-p2]: https://github.com/WebAssembly/WASI/blob/main/docs/Preview2.md
1414
[ast-explainer]: https://github.com/WebAssembly/component-model/blob/main/design/mvp/Explainer.md
1515
[canonical-abi]: https://github.com/WebAssembly/component-model/blob/main/design/mvp/CanonicalABI.md
1616
[wac]: https://github.com/bytecodealliance/wac

0 commit comments

Comments
 (0)