File tree 1 file changed +5
-13
lines changed
docs/content/documentation/getting-started
1 file changed +5
-13
lines changed Original file line number Diff line number Diff line change @@ -236,29 +236,21 @@ Zola does not work in PowerShell ISE.
236
236
237
237
## From source
238
238
239
- To build Zola from source, you will need to have Git, [ Rust and Cargo] ( https://www.rust-lang.org/ )
239
+ To build Zola from source, you will need to have [ Rust and Cargo] ( https://www.rust-lang.org/ )
240
240
installed.
241
241
242
242
From a terminal, you can now run the following commands:
243
243
244
244
``` sh
245
- $ git clone https://github.com/getzola/zola.git
246
- $ cd zola
247
- $ cargo install --path . --locked
245
+ $ cargo install --locked --git https://github.com/getzola/zola
248
246
$ zola --version
249
247
```
250
248
251
249
If you encountered compilation errors like ` error: failed to run custom build command for 'ring v0.16.20' ` , you can try the command below instead:
252
250
253
251
``` sh
254
- $ cargo build --release -- locked --no-default-features --features=native-tls
252
+ $ cargo install --locked --no-default-features --features=native-tls --git https://github.com/getzola/zola
255
253
```
256
254
257
- The binary will be available in the ` target/release ` directory. You can move it in your ` $PATH ` to have the
258
- ` zola ` command available globally:
259
-
260
- ``` sh
261
- $ cp target/release/zola ~ /.cargo/bin/zola
262
- ```
263
-
264
- or in a directory if you want for example to have the binary in the same repository as the site.
255
+ Cargo will install the ` zola ` binary in ` ~/.cargo/bin/ ` .
256
+ You can move it into the repository of your site if you want.
You can’t perform that action at this time.
0 commit comments