From c9e439532201b48206f7f899dbca9f7faf564183 Mon Sep 17 00:00:00 2001 From: Mathieu Kniewallner Date: Sun, 1 Sep 2024 01:04:19 +0200 Subject: [PATCH] docs: add missing `console` highlights (#6900) ## Summary Spotted a few missing `console` highlights in the documentation. --- README.md | 4 ++-- docs/concepts/tools.md | 4 ++-- docs/guides/install-python.md | 2 +- docs/index.md | 4 ++-- 4 files changed, 7 insertions(+), 7 deletions(-) diff --git a/README.md b/README.md index e8280f95f..3975d146e 100644 --- a/README.md +++ b/README.md @@ -167,7 +167,7 @@ Type "help", "copyright", "credits" or "license" for more information. Use a specific Python version in the current directory: -``` +```console $ uv python pin pypy@3.11 Pinned `.python-version` to `pypy@3.11` ``` @@ -190,7 +190,7 @@ Updated `example.py` Then, run the script in an isolated virtual environment: -``` +```console $ uv run example.py Reading inline script metadata from: example.py Installed 5 packages in 12ms diff --git a/docs/concepts/tools.md b/docs/concepts/tools.md index 0748d398d..c80f8d158 100644 --- a/docs/concepts/tools.md +++ b/docs/concepts/tools.md @@ -73,13 +73,13 @@ Once a tool is installed with `uv tool install`, `uvx` will use the installed ve For example, after installing an older version of Ruff: -``` +```console $ uv tool install ruff==0.5.0 ``` The version of `ruff` and `uvx ruff` is the same: -``` +```console $ ruff --version ruff 0.5.0 $ uvx ruff --version diff --git a/docs/guides/install-python.md b/docs/guides/install-python.md index 2ea6e198c..5589114ee 100644 --- a/docs/guides/install-python.md +++ b/docs/guides/install-python.md @@ -62,7 +62,7 @@ $ uv python install 3.11 3.12 To install an alternative Python implementation, e.g. PyPy: -``` +```console $ uv python install pypy@3.12 ``` diff --git a/docs/index.md b/docs/index.md index 130b4c258..482ad0bab 100644 --- a/docs/index.md +++ b/docs/index.md @@ -155,7 +155,7 @@ Type "help", "copyright", "credits" or "license" for more information. Use a specific Python version in the current directory: -``` +```console $ uv python pin pypy@3.11 Pinned `.python-version` to `pypy@3.11` ``` @@ -177,7 +177,7 @@ Updated `example.py` Then, run the script in an isolated virtual environment: -``` +```console $ uv run example.py Reading inline script metadata from: example.py Installed 5 packages in 12ms