Replies: 1 comment
-
For adding a single icon, downloading the icon's
Note I assume you thought that the icon sets functioned like the MkDocs plugins, which are primarily based on Python packages. However, they are not. To manually update the icon set to their latest package, you'd have to start with looking into their build process for how it's bundled. However, I wouldn't recommend this, as it's more work than the method that is already documented. If you want to go down the rabbit-hole:
Otherwise, you can manually inject the HTML code for the icon, for every instance that you need to use it. You just need to wrap it with the <span class="twemoji">
<svg xmlns="http://www.w3.org/2000/svg" ...>...</svg>
</span> |
Beta Was this translation helpful? Give feedback.
-
Was wondering if there was a way to update the collections of Icons Material for MkDocs offers locally, without having to download the SVG in question and include it via theme overriding.
There's an icon I would like to use, but from what I can tell does it require me to either use the main branch of this repo as a Pip install (which can be risky due to possible bugs), or wait for the next update to become available.
Perhaps it could be an idea to have this as a sort of separate dependency, so that it could be updated separately by people when needed (if there isn't another option already I've not mentioned)?
Beta Was this translation helpful? Give feedback.
All reactions