Brent Westbrook
67b3bd4122
Update rules table with category information ( #28651 )
...
Summary
--
This PR updates our rules page with a big table inspired by [oxlint] and
[clippy]. I'm afraid this
might be a bit of a pain to review, as Codex added a ton of JS and CSS
to achieve our desired
functionality. I iterated with it a few times trying to shrink the diff
but without much luck.
Supersedes https://github.com/astral-sh/ruff/pull/28099
[clippy]: https://rust-lang.github.io/rust-clippy/master/
[oxlint]: https://oxc.rs/docs/guide/usage/linter/rules.html
Test Plan
--
Mostly local testing:
https://github.com/user-attachments/assets/fbf70dd0-1e43-467f-8d35-2767203aab3f
2026-09-21 12:51:35 -04:00
Auguste Lalande
ae5e5b9ba9
[docs] Improve rules table accessibility ( #24711 )
2026-04-21 14:27:23 +01:00
Micha Reiser
1ba32684da
Fix copy and line separator colors in dark mode ( #19630 )
2025-07-30 15:08:31 +01:00
Charlie Marsh
db76000521
Use anchorlinks rather than permalinks ( #13471 )
...
## Summary
See: https://github.com/astral-sh/uv/pull/7626
2024-09-23 02:44:45 +00:00
eth3lbert and Micha Reiser
59f712a566
Improvements to documentation ( #12712 )
...
Co-authored-by: Micha Reiser <micha@reiser.io >
2024-08-12 07:17:32 +00:00
pabepadu
ef2798f758
fix(docs): admonition in dark mode ( #9502 )
...
## Summary
The admonition in dark mode are in actually same as in light mode here:
https://docs.astral.sh/ruff/formatter/#ruff-format
I propose to move admonition in real dark mode as shown below:
- Before the PR https://github.com/astral-sh/ruff/pull/9385

- Current version

- Proposal

Close #9501
## Test Plan
Documentation was regenerated via mkdocs and the supplied requirements.
2024-01-13 07:43:13 -05:00
Noah Jenner
1293383cdc
[docs] - Fix admonition hyperlink colouring ( #9385 )
...
<!--
Thank you for contributing to Ruff! To help us out with reviewing,
please consider the following:
- Does this pull request include a summary of the change? (See below.)
- Does this pull request include a descriptive title?
- Does this pull request include references to any relevant issues?
-->
## Summary
<!-- What's the purpose of the change? What does it do, and why? -->
Fix the colouration of hyperlinks within admonitions on dark theme to be
more readable. Closes #9046
## Test Plan
<!-- How was it tested? -->
Documentation was regenerated via mkdocs and the supplied requirements.
Signed-off-by: 64815328+Eutropios@users.noreply.github.com
2024-01-03 19:41:27 -05:00
Charlie Marsh
621e98f452
Improve detail link contrast in dark mode ( #8548 )
...
Use our light-mode styling for links in that context.
<img width="627" alt="Screen Shot 2023-11-07 at 4 34 48 PM"
src="https://github.com/astral-sh/ruff/assets/1309177/1e30c3ac-18e2-4663-876c-75c6f8b67d53 ">
Closes https://github.com/astral-sh/ruff/issues/8519 .
2023-11-07 21:41:34 +00:00
Charlie Marsh
eb69fe37bf
Render full-width tables in rules reference ( #5636 )
2023-07-10 02:39:07 +00:00
Charlie Marsh
50f0edd2cb
Add dark- and light-mode image modifiers for custom MkDocs themes ( #5318 )
...
## Summary
Roughly following the docs
[here](https://squidfunk.github.io/mkdocs-material/reference/images/#custom-light-scheme ).
Closes #5311 .
2023-06-22 16:11:38 -04:00
Charlie Marsh
5dd00b19e6
Remove off-palette colors from code ( #5305 )
2023-06-22 16:31:22 +00:00
Charlie Marsh
96ecfae1c5
Remove off-palette colors ( #5302 )
2023-06-22 15:52:03 +00:00
trag1c
e8ebe0a425
Update docs to match updated logo and color palette ( #5283 )
...

## Summary
Supersedes #5277 , includes redesigned dark mode.
## Test Plan
* `python scripts/generate_mkdocs.py`
* `mkdocs serve`
2023-06-22 11:19:34 -04:00