Skip to content

Commit 4b35993

Browse files
authored
docs: Simplify installation instructions (#2849)
1 parent c9f3565 commit 4b35993

File tree

1 file changed

+5
-13
lines changed

1 file changed

+5
-13
lines changed

Diff for: docs/content/documentation/getting-started/installation.md

+5-13
Original file line numberDiff line numberDiff line change
@@ -236,29 +236,21 @@ Zola does not work in PowerShell ISE.
236236

237237
## From source
238238

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/)
240240
installed.
241241

242242
From a terminal, you can now run the following commands:
243243

244244
```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
248246
$ zola --version
249247
```
250248

251249
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:
252250

253251
```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
255253
```
256254

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.

0 commit comments

Comments
 (0)