durera / mkdocs-carbon

https://durera.github.io/mkdocs-carbon/
2 stars 0 forks source link

Use Carbon link icon for header permalinks #2

Open mzuliani-ibm opened 2 days ago

mzuliani-ibm commented 2 days ago

Feature and motivation

Is there an easy way to use the Carbon icon instead of a unicode character for getting the URL for a within-page header link?

It doesn't have to autohide like Carbon Gatsby's AutolinkHeader

Current configuration in mkdocs.yml

markdown_extensions:
  - toc:
      permalink: "¤"

Usage example

Might be less obtrusive than the current implementation: ¤

durera commented 2 days ago

What is the carbon icon?

mzuliani-ibm commented 1 day ago

Gatsby uses the <Link /> Carbon icon. In Carbon Gatsby the icon only appears on hover over the heading, in the left margin, using the $link-01 color. (Blue)

durera commented 21 hours ago

Should be able to do this using something like the approach here: https://github.com/squidfunk/mkdocs-material/discussions/3535