Skip to content

Commit

Permalink
Use anchorlinks rather than permalinks (#13471)
Browse files Browse the repository at this point in the history
## Summary

See: astral-sh/uv#7626
  • Loading branch information
charliermarsh authored Sep 23, 2024
1 parent a2ed1e1 commit db76000
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 3 deletions.
15 changes: 13 additions & 2 deletions docs/stylesheets/extra.css
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,7 @@
.md-typeset__table {
min-width: 100%;
}

.md-typeset table:not([class]) {
display: table;
}
Expand All @@ -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;
}
3 changes: 2 additions & 1 deletion mkdocs.template.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,8 @@ markdown_extensions:
- admonition
- pymdownx.details
- toc:
permalink: "#"
anchorlink: true
anchorlink_class: "toclink"
- pymdownx.snippets:
- pymdownx.magiclink:
- attr_list:
Expand Down

0 comments on commit db76000

Please sign in to comment.