Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use Carbon link icon for header permalinks #2

Open
mzuliani-ibm opened this issue Nov 5, 2024 · 3 comments
Open

Use Carbon link icon for header permalinks #2

mzuliani-ibm opened this issue Nov 5, 2024 · 3 comments

Comments

@mzuliani-ibm
Copy link

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
Copy link
Owner

durera commented Nov 6, 2024

What is the carbon icon?

@mzuliani-ibm
Copy link
Author

mzuliani-ibm commented Nov 6, 2024

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
Copy link
Owner

durera commented Nov 7, 2024

Should be able to do this using something like the approach here: squidfunk/mkdocs-material#3535

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants