docs: use python to highlight requirements and use more content tabs (#6549)

## Summary

It appears that using `python` for code blocks containing requirements
works quite well.

![Screenshot from 2024-08-23
23-23-05](https://github.com/user-attachments/assets/38c92ef7-1f5e-40eb-8ea4-7024c8180bc4)

![Screenshot from 2024-08-23
23-23-31](https://github.com/user-attachments/assets/940dc7d5-22a8-4cd8-b54a-d56542d4345c)

Also using more content tabs for cases where we need to differentiate
macOS/Linux from Windows.

## Test Plan

Local run of the documentation.
This commit is contained in:
Mathieu Kniewallner 2024-08-27 13:05:14 +02:00 committed by GitHub
parent 6a988aca55
commit fd17f6d902
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
10 changed files with 69 additions and 48 deletions

View file

@ -8,13 +8,17 @@ Install uv with our standalone installers or your package manager of choice.
uv provides a standalone installer to download and install uv:
```console title="macOS and Linux"
$ curl -LsSf https://astral.sh/uv/install.sh | sh
```
=== "macOS and Linux"
```console title="Windows"
$ powershell -c "irm https://astral.sh/uv/install.ps1 | iex"
```
```console
$ curl -LsSf https://astral.sh/uv/install.sh | sh
```
=== "Windows"
```console
$ powershell -c "irm https://astral.sh/uv/install.ps1 | iex"
```
By default, uv is installed to `~/.cargo/bin`.
@ -22,25 +26,33 @@ By default, uv is installed to `~/.cargo/bin`.
The installation script may be inspected before use:
```console title="macOS and Linux"
$ curl -LsSf https://astral.sh/uv/install.sh | less
```
=== "macOS and Linux"
```console title="Windows"
$ powershell -c "irm https://astral.sh/uv/install.ps1 | more"
```
```console
$ curl -LsSf https://astral.sh/uv/install.sh | less
```
=== "Windows"
```console
$ powershell -c "irm https://astral.sh/uv/install.ps1 | more"
```
Alternatively, the installer or binaries can be downloaded directly from [GitHub](#github-releases).
Request a specific version by including it in the URL:
```console title="macOS and Linux"
$ curl -LsSf https://astral.sh/uv/0.3.4/install.sh | sh
```
=== "macOS and Linux"
```console title="Windows"
$ powershell -c "irm https://astral.sh/uv/0.3.4/install.ps1 | iex"
```
```console
$ curl -LsSf https://astral.sh/uv/0.3.4/install.sh | sh
```
=== "Windows"
```console
$ powershell -c "irm https://astral.sh/uv/0.3.4/install.ps1 | iex"
```
### PyPI