Fix broken links in book by replacing absolute paths with relative paths

master
Mason Stallmo 7 years ago committed by Mason Stallmo
parent 37349a63f0
commit 090fd15ce6
  1. 2
      docs/src/SUMMARY.md
  2. 4
      docs/src/commands/index.md
  3. 2
      docs/src/commands/init.md
  4. 10
      docs/src/contributing.md
  5. 4
      docs/src/getting-started/index.md
  6. 4
      docs/src/getting-started/project-setup/index.md
  7. 4
      docs/src/prerequisites/index.md
  8. 6
      docs/src/tutorial/index.md

@ -11,7 +11,7 @@
- [Commands](./commands/index.md) - [Commands](./commands/index.md)
- [`init` (DEPRECATED)](./commands/init.md) - [`init` (DEPRECATED)](./commands/init.md)
- [`build`](./commands/build.md) - [`build`](./commands/build.md)
- [`pack` and `publish`](./command/pack-and-publish.md) - [`pack` and `publish`](./commands/pack-and-publish.md)
- [Tutorial](./tutorial/index.md) - [Tutorial](./tutorial/index.md)
- [Writing a Rust-WebAssembly Library](./tutorial/writing-a-rust-webassembly-library.md) - [Writing a Rust-WebAssembly Library](./tutorial/writing-a-rust-webassembly-library.md)
- [Packaging and Publishing](./tutorial/packaging-and-publishing.md) - [Packaging and Publishing](./tutorial/packaging-and-publishing.md)

@ -7,5 +7,5 @@ a Rust-generated WebAssembly project.
- `build`: This command builds a `pkg` directory for you with compiled wasm and generated JS. [Learn more][build] - `build`: This command builds a `pkg` directory for you with compiled wasm and generated JS. [Learn more][build]
- `pack` and `publish`: These command will create a tarball, and optionally publish it to a registry, such as npm. [Learn more][pack-pub] - `pack` and `publish`: These command will create a tarball, and optionally publish it to a registry, such as npm. [Learn more][pack-pub]
[build]: /commands/build.html [build]: ./build.html
[pack-pub]: /commands/pack-and-publish.html [pack-pub]: ./pack-and-publish.html

@ -3,4 +3,4 @@
This command has been deprecated in favor of `build`, which does the same thing, but is This command has been deprecated in favor of `build`, which does the same thing, but is
a much more representative name for the command. [Read the docs for `build`.][build] a much more representative name for the command. [Read the docs for `build`.][build]
[build]: /commands/build.html [build]: ./build.html

@ -7,8 +7,8 @@ using it. You can find them documented [here][1].
You'll also want to check out the contributing [guidelines]. You'll also want to check out the contributing [guidelines].
[1]: docs/prerequisites.md [1]: ./prerequisites/index.html
[guidelines]: CONTRIBUTING.md [guidelines]: https://github.com/rustwasm/wasm-pack/blob/master/CONTRIBUTING.md
## 🏃 Up and Running ## 🏃 Up and Running
@ -19,13 +19,13 @@ You'll also want to check out the contributing [guidelines].
## Documentation ## Documentation
Documentation lives in the [`/docs`](docs) directory. Each command has it's own page. Documentation lives in the `/docs` directory. Each command has it's own page.
Additionally there are extra pages explaining the prerequisites, setup, and how to Additionally there are extra pages explaining the prerequisites, setup, and how to
contribute (which you are reading now!). contribute (which you are reading now!).
## Tests ## Tests
Tests live in the [`/tests`](tests) directory. To run the tests you can run: Tests live in the `/tests` directory. To run the tests you can run:
``` ```
cargo test cargo test

@ -3,5 +3,5 @@
In this section, we'll teach you how to get `wasm-pack` installed and how to setup a project In this section, we'll teach you how to get `wasm-pack` installed and how to setup a project
to use `wasm-pack` with. to use `wasm-pack` with.
- [Installation](/getting-started/installation.html) - [Installation](./installation.html)
- [Project Setup](/getting-started/project-setup/index.html) - [Project Setup](./project-setup/index.html)

@ -4,5 +4,5 @@ There are a few things you need to do to setup a project for `wasm-pack`.
We strongly recommending [using a template], but you can also set the project We strongly recommending [using a template], but you can also set the project
up [manually]. up [manually].
[using a template]: /getting-started/project-setup/using-a-template.html [using a template]: ./using-a-template.html
[manually]: /getting-started/project-setup/manual-setup.html [manually]: ./manual-setup.html

@ -2,5 +2,5 @@
To run `wasm-pack` you'll need to have both Rust and npm installed and configured. To run `wasm-pack` you'll need to have both Rust and npm installed and configured.
- [Rust](/prerequisites/rust.html) - [Rust](./rust.html)
- [npm](/prerequisites/npm.html) - [npm](./npm.html)

@ -7,6 +7,6 @@ much Rust knowledge to complete this tutorial.
Be sure to have done the following before starting: Be sure to have done the following before starting:
1. Read and install all the [Prerequisites](/prerequisites.html). 1. Read and install all the [Prerequisites](../prerequisites/index.html).
2. [Install `wasm-pack`](/getting-started/installation.html). 2. [Install `wasm-pack`](../../getting-started/installation.html).
3. [Setup a new project](/getting-started/project-setup/using-a-template.html). 3. [Setup a new project](../../getting-started/project-setup/using-a-template.html).

Loading…
Cancel
Save