Fix benchmark image in documentation (#5102)

This commit is contained in:
Charlie Marsh 2024-07-16 09:54:06 -04:00 committed by GitHub
parent 81ee17f8e5
commit f992532f78
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 3 additions and 2 deletions

View file

@ -9,11 +9,11 @@ An extremely fast Python package installer and resolver, written in Rust. Design
replacement for common `pip` and `pip-tools` workflows. replacement for common `pip` and `pip-tools` workflows.
<p align="center"> <p align="center">
<img alt="Shows a bar chart with benchmark results." src="{URL_LIGHT}#only-light"> <img alt="Shows a bar chart with benchmark results." src="https://github.com/astral-sh/uv/assets/1309177/629e59c0-9c6e-4013-9ad4-adb2bcf5080d#only-light">
</p> </p>
<p align="center"> <p align="center">
<img alt="Shows a bar chart with benchmark results." src="{URL_DARK}#only-dark"> <img alt="Shows a bar chart with benchmark results." src="https://github.com/astral-sh/uv/assets/1309177/03aa9163-1c79-4a87-a31d-7a9311ed9310#only-dark">
</p> </p>
<p align="center"> <p align="center">

View file

@ -14,6 +14,7 @@ from pathlib import Path
import tomllib import tomllib
# To be kept in sync with: `docs/index.md`
URL = "https://github.com/astral-sh/uv/assets/1309177/{}" URL = "https://github.com/astral-sh/uv/assets/1309177/{}"
URL_LIGHT = URL.format("629e59c0-9c6e-4013-9ad4-adb2bcf5080d") URL_LIGHT = URL.format("629e59c0-9c6e-4013-9ad4-adb2bcf5080d")
URL_DARK = URL.format("03aa9163-1c79-4a87-a31d-7a9311ed9310") URL_DARK = URL.format("03aa9163-1c79-4a87-a31d-7a9311ed9310")