Use anchorlinks rather than permalinks (#13471)

## Summary

See: https://github.com/astral-sh/uv/pull/7626
This commit is contained in:
Charlie Marsh 2024-09-22 22:44:45 -04:00 committed by GitHub
parent a2ed1e1cd1
commit db76000521
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 15 additions and 3 deletions

View file

@ -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;
}

View file

@ -42,7 +42,8 @@ markdown_extensions:
- admonition
- pymdownx.details
- toc:
permalink: "#"
anchorlink: true
anchorlink_class: "toclink"
- pymdownx.snippets:
- pymdownx.magiclink:
- attr_list: