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
Support setting language and output directory in cargo xtask (#2776)
In addition to simplifying building locally (no need to set an
environment variable), this makes it possible to use the `cargo xtask
build` command in the CI and specify any output location, rather than
relying on the build.sh script.
---------
Co-authored-by: Eric Githinji <[email protected]>
|`cargo install-tools`| Install all the tools the project depends on. |
81
-
|`cargo serve`| Start a web server with the course. You'll find the content on http://localhost:3000.|
82
-
|`cargo rust-tests`| Test the included Rust snippets. |
83
-
|`cargo web-tests`| Run the web driver tests in the tests directory. |
84
-
|`cargo build-book`| Create a static version of the course in the `book/` directory. Note that you have to separately build and zip exercises and add them to book/html. To build any of the translated versions of the course, run MDBOOK_BOOK__LANGUAGE=xx mdbook build -d book/xx where xx is the ISO 639 language code (e.g. da for the Danish translation). [TRANSLATIONS.md](TRANSLATIONS.md) contains further instructions. |
|`cargo install-tools`| Install all the tools the project depends on. |
81
+
|`cargo serve`| Start a web server with the course. You'll find the content on http://localhost:3000. To serve any of the translated versions of the course, add the language flag (`--language` or `-l`) followed by xx, where xx is the ISO 639 language code (e.g. `cargo xtask serve -l da` for the Danish translation).|
82
+
|`cargo rust-tests`| Test the included Rust snippets. |
83
+
|`cargo web-tests`| Run the web driver tests in the tests directory. |
84
+
|`cargo build-book`| Create a static version of the course in the `book/` directory. Note that you have to separately build and zip exercises and add them to book/html. To build any of the translated versions of the course, add the language flag (`--language` or `-l`) followed by xx, where xx is the ISO 639 language code (e.g. `cargo xtask build -l da` for the Danish translation). [TRANSLATIONS.md](TRANSLATIONS.md) contains further instructions. |
85
85
86
86
> **Note** On Windows, you need to enable symlinks
87
87
> (`git config --global core.symlinks true`) and Developer Mode.
0 commit comments