Iain Stenson c7f64046dd Fix the docs links to the benchmark results (#2459)
## Summary

This PR corrects the HTML `<src=...>` attributes in `index.md` such that
they point to the right SVG files.

Note:

1. There is a bar chart on the docs home page
<https://docs.astral.sh/ty/>.
2. There are two SVG files and we choose which one to display depending
on the theme (light or dark).
3. We currently get:
1. `ty-benchmark-cli.svg`, if we use the light theme. This has light
writing, which cannot be seen against the light theme background.
2. `ty-benchmark-cli-dark.svg`, if we use the dark theme. This does not
exist.
4. This PR changes these links so that we use
`ty-benchmark-cli-light.svg` for the light theme and
`ty-benchmark-cli.svg` for the dark theme. Both of these images already
existed.

## Test Plan

We manually compare the before and after appearance of the docs site.

### Light

| before | after |
| - | - | 
| <img width="775" height="300" alt="Screenshot 2026-01-12 at 10 17 27"
src="https://github.com/user-attachments/assets/da3854d2-49fd-4a93-980b-2fd43c059155"
/> | <img width="736" height="390" alt="Screenshot 2026-01-12 at 10 21
47"
src="https://github.com/user-attachments/assets/35ae397f-163a-411d-9470-da1a727eb261"
/> |

### Dark

| before | after |
| - | - | 
| <img width="775" height="300" alt="Screenshot 2026-01-12 at 10 17 19"
src="https://github.com/user-attachments/assets/48f0f19a-e57b-4b64-89d0-08bad5bcef60"
/> | <img width="775" height="300" alt="Screenshot 2026-01-12 at 10 21
43"
src="https://github.com/user-attachments/assets/f6c2388b-acfa-4ff1-92fd-2428c9e80d84"
/> |

## To the reviewer

The `CONTRIBUTING.md` guidelines recommend running

```shell
npx prettier --prose-wrap always --write "**/*.md"
```

after editing any markdown files. However, this changes 24 files, not
only `index.md`. Should I run this as a separate commit, a separate PR
or neither?
2026-01-13 05:29:50 +00:00
2025-07-28 20:35:08 +01:00
2025-05-08 09:00:10 -07:00
2026-01-09 15:51:38 -05:00
2025-05-02 11:37:31 -05:00
2025-05-02 11:41:08 -05:00
2026-01-12 12:17:47 +00:00
2025-05-05 15:48:32 -05:00
2025-12-17 14:20:38 +01:00
2026-01-09 15:51:38 -05:00
2025-05-05 15:18:41 +02:00
2026-01-09 15:51:38 -05:00

ty

ty PyPI Discord

An extremely fast Python type checker and language server, written in Rust.


Shows a bar chart with benchmark results.

Type checking the home-assistant project without caching.


ty is backed by Astral, the creators of uv and Ruff.

Highlights

Getting started

Run ty with uvx to get started quickly:

uvx ty check

Or, check out the ty playground to try it out in your browser.

To learn more about using ty, see the documentation.

Installation

To install ty, see the installation documentation.

To add the ty language server to your editor, see the editor integration guide.

Getting help

If you have questions or want to report a bug, please open an issue in this repository.

You may also join our Discord server.

Contributing

Development of this project takes place in the Ruff repository at this time. Please open pull requests there for changes to anything in the ruff submodule (which includes all of the Rust source code).

See the contributing guide for more details.

FAQ

Why is ty doing _____?

See our typing FAQ.

How do you pronounce ty?

It's pronounced as "tee - why" (/tiː waɪ/)

How should I stylize ty?

Just "ty", please.

License

ty is licensed under the MIT license (LICENSE or https://opensource.org/licenses/MIT).

Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in ty by you, as defined in the MIT license, shall be licensed as above, without any additional terms or conditions.

S
Description
No description provided
Readme MIT 7.5 MiB
Languages
Python 73.6%
Shell 17.7%
Dockerfile 8.7%