You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+5-3
Original file line number
Diff line number
Diff line change
@@ -61,13 +61,15 @@ To build the Reference locally (in `build/`) and open it in a web
61
61
browser, run:
62
62
63
63
```sh
64
-
mdbook build --open
64
+
SPEC_RELATIVE=0 mdbook build --open
65
65
```
66
66
67
67
This will open a browser with a websocket live-link to automatically reload whenever the source is updated.
68
68
69
-
You can also open any current build of the reference by running:
69
+
The `SPEC_RELATIVE=0` environment variable makes links to the standard library go to <https://doc.rust-lang.org/> instead of being relative, which is useful when viewing locally since you normally don't have a copy of the standard library.
70
+
71
+
You can also use mdbook's live webserver option, which will automatically rebuild the book and reload your web browser whenever a source file is modified:
0 commit comments