diff --git a/guide/src/contributing/js-sys/index.md b/guide/src/contributing/js-sys/index.md index 497081f6..28658b21 100644 --- a/guide/src/contributing/js-sys/index.md +++ b/guide/src/contributing/js-sys/index.md @@ -34,13 +34,14 @@ pub fn timed(callback: &js_sys::Function) -> f64 { The `js-sys` crate doesn't contain bindings to any Web APIs like [`document.querySelectorAll`][mdn-qsa]. These will be part of the -[`web-sys`](./web-sys.html) crate. +[`web-sys`][web-sys] crate. [MDN]: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects [js-sys]: https://crates.io/crates/js-sys [issue]: https://github.com/rustwasm/wasm-bindgen/issues/275 [mdn-function]: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Function [mdn-qsa]: https://developer.mozilla.org/en-US/docs/Web/API/Document/querySelectorAll +[web-sys]: https://crates.io/crates/web-sys [web-sys-contributing]: https://rustwasm.github.io/wasm-bindgen/web-sys.html [web-sys-issues]: https://github.com/rustwasm/wasm-bindgen/issues?q=is%3Aissue+is%3Aopen+label%3Aweb-sys [mdn-date-now]: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date/now diff --git a/guide/src/examples/todomvc.md b/guide/src/examples/todomvc.md index 6edee535..fa85ca82 100644 --- a/guide/src/examples/todomvc.md +++ b/guide/src/examples/todomvc.md @@ -3,15 +3,16 @@ [View full source code][code] or [view the compiled example online][online] [online]: https://rustwasm.github.io/wasm-bindgen/exbuild/todomvc/ -[code]: https://github.com/rustwasm/wasm-bindgen/tree/master/examples/todomvc +[element]: https://github.com/rustwasm/wasm-bindgen/tree/master/examples/todomvc/src/element.rs +[scheduler]: https://github.com/rustwasm/wasm-bindgen/tree/master/examples/todomvc/src/scheduler.rs [wasm-bindgen](https://github.com/rustwasm/wasm-bindgen) and [web-sys](https://rustwasm.github.io/wasm-bindgen/api/web_sys/) coded [TODO MVC](http://todomvc.com/) The code was rewritten from the [ES6 version](http://todomvc.com/examples/vanilla-es6/). The core differences are: -- Having an [Element wrapper](/src/element.rs) that takes care of dyn and into refs in web-sys, -- A [Scheduler](/src/scheduler.rs) that allows Controller and View to communicate to each other by emulating something similar to the JS event loop. +- Having an [Element wrapper][element] that takes care of dyn and into refs in web-sys, +- A [Scheduler][scheduler] that allows Controller and View to communicate to each other by emulating something similar to the JS event loop. ## Size diff --git a/guide/src/examples/wasm2js.md b/guide/src/examples/wasm2js.md index 604ad2fc..82946484 100644 --- a/guide/src/examples/wasm2js.md +++ b/guide/src/examples/wasm2js.md @@ -14,7 +14,7 @@ file (albeit a little bit larger and slower), and can be loaded into practically any browser. This example is relatively simple (cribbing from the [`console.log` -example][console_log]): +example](console-log.md)): ```rust {{#include ../../../examples/wasm2js/src/lib.rs}} diff --git a/guide/src/reference/no-esm.md b/guide/src/reference/no-esm.md index 09309d12..52c923b9 100644 --- a/guide/src/reference/no-esm.md +++ b/guide/src/reference/no-esm.md @@ -1,6 +1,6 @@ # No ES Modules -Explained a bit more in the [internal design](design.html) section one of the +Explained a bit more in the [internal design](../contributing/design/index.md) section one of the key foundational principles of `wasm-bindgen` is ES modules. It supports working without ES modules, however! Not all JS tooling and browsers are ready for ES modules by default, so it can sometimes be helpful to quickly get up and running