mirror of
https://github.com/astral-sh/ruff.git
synced 2025-07-07 21:25:24 +00:00
Use anchorlinks rather than permalinks (#13471)
## Summary See: https://github.com/astral-sh/uv/pull/7626
This commit is contained in:
parent
a2ed1e1cd1
commit
db76000521
2 changed files with 15 additions and 3 deletions
|
@ -89,6 +89,7 @@
|
|||
.md-typeset__table {
|
||||
min-width: 100%;
|
||||
}
|
||||
|
||||
.md-typeset table:not([class]) {
|
||||
display: table;
|
||||
}
|
||||
|
@ -105,7 +106,17 @@
|
|||
}
|
||||
|
||||
/* See: https://mkdocstrings.github.io/recipes/#prevent-selection-of-prompts-and-output-in-python-code-blocks */
|
||||
.highlight .gp, .highlight .go { /* Generic.Prompt, Generic.Output */
|
||||
user-select: none;
|
||||
.highlight .gp,
|
||||
.highlight .go {
|
||||
/* Generic.Prompt, Generic.Output */
|
||||
user-select: none;
|
||||
}
|
||||
|
||||
/* Styling for anchor link headers */
|
||||
.toclink {
|
||||
color: unset !important;
|
||||
}
|
||||
|
||||
.toclink:hover {
|
||||
color: var(--md-accent-fg-color) !important;
|
||||
}
|
||||
|
|
|
@ -42,7 +42,8 @@ markdown_extensions:
|
|||
- admonition
|
||||
- pymdownx.details
|
||||
- toc:
|
||||
permalink: "#"
|
||||
anchorlink: true
|
||||
anchorlink_class: "toclink"
|
||||
- pymdownx.snippets:
|
||||
- pymdownx.magiclink:
|
||||
- attr_list:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue