Skip to content

Commit

Permalink
Merge #2041
Browse files Browse the repository at this point in the history
2041: doc(example) Add white background and reduce diagram sizes r=Hywan a=Hywan

# Description

This PR adds a white background to the diagrams instead of having a transparent background. It fixes #2029.

The diagrams have also been compressed to reduce their file size (-32.3Kb, -45.8Kb, -19.5Kb saved).

Edit: This PR also fixes missing links and fix issues in the `examples/README.md` file.

# Review

- [ ] Add a short description of the the change to the CHANGELOG.md file


Co-authored-by: Ivan Enderlin <[email protected]>
  • Loading branch information
bors[bot] and Hywan authored Jan 22, 2021
2 parents c48fdde + a935f11 commit 4378b22
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 3 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
- [#2026](https://github.com/wasmerio/wasmer/pull/2010) Expose trap code of a `RuntimeError`, if it's a `Trap`.

### Changed
- [#2041](https://github.com/wasmerio/wasmer/pull/2041) Documentation diagrams now have a solid white background rather than a transparent background.

### Fixed

Expand Down
Binary file modified assets/diagrams/Diagram_module_compilation.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified assets/diagrams/Diagram_module_instantiation.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified assets/diagrams/Diagram_module_serialization.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
9 changes: 6 additions & 3 deletions examples/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -70,13 +70,13 @@ example.
3. [**Handling errors**][errors], explains the basics of interacting with
Wasm module memory.

_Keywords_: memory, module.
_Keywords_: instance, error.

<details>
<summary><em>Execute the example</em></summary>

```shell
$ cargo run --example memory --release --features "cranelift"
$ cargo run --example errors --release --features "cranelift"
```

</details>
Expand Down Expand Up @@ -204,7 +204,7 @@ example.

### Tunables

1. **Limit memory**, explains how to use Tunables to limit the
1. [**Limit memory**][tunables-limit-memory], explains how to use Tunables to limit the
size of an exported Wasm memory

_Keywords_: basic, tunables, memory
Expand Down Expand Up @@ -360,6 +360,7 @@ example.

</details>

[hello-world]: ./hello_world.rs
[engine-jit]: ./engine_jit.rs
[engine-native]: ./engine_native.rs
[engine-headless]: ./engine_headless.rs
Expand All @@ -377,6 +378,8 @@ example.
[wasi-pipes]: ./wasi_pipes.rs
[table]: ./table.rs
[memory]: ./memory.rs
[errors]: ./errors.rs
[tunables-limit-memory]: ./tunables_limit_memory.rs
[`wasmer-compiler-singlepass`]: https://github.com/wasmerio/wasmer/tree/master/lib/compiler-singlepass
[`wasmer-compiler-cranelift`]: https://github.com/wasmerio/wasmer/tree/master/lib/compiler-cranelift
[`wasmer-compiler-llvm`]: https://github.com/wasmerio/wasmer/tree/master/lib/compiler-llvm
Expand Down

0 comments on commit 4378b22

Please sign in to comment.