[ty] Linkify lint names (#23771)
Summary
--
I noticed a broken link to another rule in the
`unsupported-dynamic-base` docs,
and I was initially going to copy over this hack from Ruff's
documentation
generator:
https://github.com/astral-sh/ruff/blob/2185bec02b3c7e9e16cc2572e49ecc065c15c875/crates/ruff_dev/src/generate_docs.rs#L165-L169
but then I opted to adapt something more like our shorthand for options
links,
which is to expand references like `lint.option` into the appropriate
link. This
PR now expands any rule name in backticks into the corresponding link.
This fixes the broken link I ran into initially and also adds a couple
of
additional cross-links to other rules.
Test Plan
--
I built the docs locally and confirmed that the broken link was fixed:
[Before](https://docs.astral.sh/ty/reference/rules/#unsupported-dynamic-base):
<img width="558" height="220" alt="image"
src="https://github.com/user-attachments/assets/a215f4a4-d374-4cc1-b7c7-b0a6a1e1b321"
/>
After:
<img width="420" height="219" alt="image"
src="https://github.com/user-attachments/assets/aa3460bd-9130-422b-9257-df5a45a1bd64"
/>