Skip to content

How do the docs achieve this permalink icon? #1355

Answered by facelessuser
harry643 asked this question in Q&A
Discussion options

You must be logged in to vote
  1. By leaving the link icon blank via the TOC extension: https://github.com/facelessuser/pymdown-extensions/blob/main/mkdocs.yml#L73

  2. By providing CSS that adds the inlined image. https://github.com/facelessuser/pymdown-extensions/blob/main/docs/src/scss/extensions/_toc.scss

    We use SCSS to inline the image into the final CSS, but you don't have to. You could just as easily use some icon font or reference the image via a CDN, etc.

    Icon comes from: https://materialdesignicons.com/

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by harry643
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants