Skip to content

Commit

Permalink
Use anchorlinks rather than permalinks
Browse files Browse the repository at this point in the history
  • Loading branch information
charliermarsh committed Sep 22, 2024
1 parent 5d328a4 commit 3cb07e4
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 2 deletions.
9 changes: 9 additions & 0 deletions docs/stylesheets/extra.css
Original file line number Diff line number Diff line change
Expand Up @@ -186,3 +186,12 @@ h3.cli-reference {
font-size: 1.1em;
margin: 0 0 0 0;
}

/* Styling for anchor link headers */
.toclink {
color: unset !important;
}

.toclink:hover {
color: var(--md-accent-fg-color) !important;
}
5 changes: 3 additions & 2 deletions mkdocs.template.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,11 +42,12 @@ site_dir: site/uv
markdown_extensions:
- admonition
- pymdownx.details
- toc:
permalink: "#"
- pymdownx.snippets:
- pymdownx.magiclink:
- attr_list:
- toc:
anchorlink: true
anchorlink_class: "toclink"
- md_in_html:
- pymdownx.inlinehilite:
- pymdownx.superfences:
Expand Down

0 comments on commit 3cb07e4

Please sign in to comment.